From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Re: Separate area at the top for a serious tab bar Date: Mon, 25 Jun 2018 11:28:00 +0200 Message-ID: <87a7rjw6zj.fsf@mbork.pl> References: <376678535.4221832.1529478419186.ref@mail.yahoo.com> <376678535.4221832.1529478419186@mail.yahoo.com> <87bmbz8o9f.fsf@gmail.com> <16868055.1966258.1529907863571@mail.yahoo.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1529918881 7065 195.159.176.226 (25 Jun 2018 09:28:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 25 Jun 2018 09:28:01 +0000 (UTC) User-Agent: mu4e 1.1.0; emacs 27.0.50 Cc: "help-gnu-emacs@gnu.org" , Jay Kamat To: "R. Diez" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 25 11:27:57 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fXNmt-0001eW-4W for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Jun 2018 11:27:55 +0200 Original-Received: from localhost ([::1]:45045 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fXNoy-0005ZP-8J for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Jun 2018 05:30:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57687) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fXNoZ-0005ZK-DK for help-gnu-emacs@gnu.org; Mon, 25 Jun 2018 05:29:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fXNoW-0006v1-6H for help-gnu-emacs@gnu.org; Mon, 25 Jun 2018 05:29:39 -0400 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:34212) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fXNoV-0006ua-Um for help-gnu-emacs@gnu.org; Mon, 25 Jun 2018 05:29:36 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id DAA73E64A4; Mon, 25 Jun 2018 11:29:32 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4rBFNDhQotwV; Mon, 25 Jun 2018 11:29:29 +0200 (CEST) Original-Received: from localhost (apn-46-76-135-163.dynamic.gprs.plus.pl [46.76.135.163]) by mail.mojserwer.eu (Postfix) with ESMTPSA id AA2FEE646C; Mon, 25 Jun 2018 11:29:29 +0200 (CEST) In-reply-to: <16868055.1966258.1529907863571@mail.yahoo.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.110.48.8 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:117276 Archived-At: On 2018-06-25, at 08:24, R. Diez wrote: >> [...] >> I would highly reccomend giving the buffer >> based workflow a try, however. Once I tried seriously >> dropping tabs, I can't imagine going back to a tabbed workflow. >> [...] > > You are not the first with that kind of suggestion. And not the last. ;-) > I still have not seen what makes that "buffer based workflow" better. Sometimes I do use ibuffer to clean buffers up, or to find some buffer I 'lost', but tabs give you a kind of positional orientation that is hard to beat. 1. Scalability. I have around 250 buffers open now, and I'm only at about 4 days emacs-uptime and on vacation. ;-) 2. Regex-based switching to tabs (I use Ivy). Though I understand the "positional orientation" idea. > I do not switch buffers with the mouse. I use Ctrl+Up and Ctrl+Down to navigate the tab bar. With Ctrl+Shift+Up and Ctrl+Shift+Down I can reorder the tabs with the keyboard. I do this all the time, so that the buffers I am working on at the moment are near each other. > > By the way, those are exactly the keys that Firefox uses for its tabbar. I plan to ditch the Firefox tabs, too, and use EXWM, so that I can make the tabbar->buffer kind of switch in web browsing, too. (BTW, those keys don't work in my FF.) > For example, when working on C/C++ code, I place the .h and .cpp files next to each other, the .h file to the left, and the .cpp file to the right. I know I can open the other one with 'other', but that is not reliable, for example, if the .h file is not next to the .cpp file, but in some other include/ directory. If I am moving code, I place the old source file to the left, and the new one next to it, to the right, so switching is immediate. I can open a script and have next to it a shell to test it out. And many such pairs happily coexist in the same, long tabbar. That is indeed neat, but isn't it fragile? It depends on you, the user, ordering the tabs. This looks like something a computer could do. I'd probably write a small Elisp command to do that kind of buffer switch for me. With something like projectile it should probably be at most a few lines of code, even if the "other" file is in some other directory. Also, I use windows/frames for similar things. /me thinking Thanks for a blog post idea. While I don't code in C-whatever, this might be useful more generally. JS web apps could benefit from that, and LaTeX to some extent, too. Best, -- Marcin Borkowski http://mbork.pl