11 ms·
> give a lot of people scared off by emacs I'm not even scared off, but I won't use Emacs because it doesn't have tabs. I know about the alternatives presented
by oblio 9y ago
> give a lot of people scared off by emacs
I'm not even scared off, but I won't use Emacs because it doesn't have tabs. I know about the alternatives presented, but I just want tabs. I find it funny that the kitchen sink "Eight Megabytes and Constantly Swapping" Emacs doesn't have a built in tab implementation while the supposedly small Vim has one :)
- turndown 9y agoI won't lie, when I first started using Spacemacs it kinda blew my mind there were no tabs; I don't really mind it now that I've installed unimpaired and can cycle through buffers with ]b and [b.
- oblio 9y agoI'm mostly a Vim user and I could navigate the buffers with its buffer commands, yet I prefer tabs.
- hiq 9y agoDo you see in advance how many times you will have to do ]b or [b? For me this is the advantage of tabs over buffers, and it's faster than checking the buffer every time it changes.
- barrkel 9y agoI've found tabs to not scale as a UI idiom, generally. They're ok for up to about 10 documents, after that, I'm looking for something else. I normally use IntelliJ with two panes open, and about 120 tabs between the two of them. But because IntelliJ tabs can't scroll and Java filenames are long, the tab I want to switch to is never visible, and the tab list dropdown is painful to scan. C-n and C-S-n are what I end up using. And for the browser, I use tree-style tabs. The hierarchy keeps related tabs together, and I can collapse when I do a context switch. The fact I can see all the (top-level) tabs at once in a long list means spatial memory works better. In emacs, I use Helm and Projectile, bound to F11 and F12 for buffer and project searches. I've bound buffer switching to C-prior and C-next (those are PgUp and PgDown), and since the buffer order is basically a LIFO of whatever buffer you jumped to, the buffer you're looking for is usually within easy scrolling reach.
- z3t4 9y agoI close all tabs now and then, it feels very refreshing.
- vvillena 9y agoI'm curious. Do you end up with so many tabs open because you don't bother to close them when you're finished with them? Or is there another reason? I also use a really big amount of open tabs in my web browsers (I group them in different windows). On IntelliJ, though, I use tabs as my "working area", and it never spans more than 8-10 files. It helps me keep my commits small and focused, never touching too many files. PS: You can disable tabs entirely by setting tab placement to "None".
- barrkel 9y agoI can only see three to five tab titles at a time per pane given the screen width and long class names, and I'm generally navigating across 10+ files at a time (jumping to definition and uses, usually). This means the right tabs are never available for me to click on, so I just ignore the tab bar altogether for selection purposes. And since I never close them, the open set expands to my working set including reference code. I can't hide the tab bar because I need it to control which pane a file is showing in. E.g. I want test and implementation visible at the same time; this usually requires that I drag one or the other tab to the other pane, because IntelliJ brings tabs to the front of whatever pane they're already living in, rather than moving them to the currently focused pane. I do my commits from magit in emacs. I generally don't commit at all until I've done something somewhat significant, but I'll break it down into commits on a diff hunk by hunk basis, which magit makes easy. I don't use the IntelliJ SCC tooling.
- qwerty456127 9y agoIn the current reality as it is tabs seem an essential part of a web browser and some other apps. But I feel like tabs should not be done by any app - a window manager is to take care of this IMHO. I especially don't like tabs in IntelliJ Idea: I never (except the cases when I want to detach one to a separate window) actually use them, every time I want to switch to a particular file in a project I choose it in the project tree in the left panel, the tabs only pile up atop of the editor pane and annoy me so I close them every now and then.
- cup-of-tea 9y agoWhen I first started using emacs I wanted tabs. I actually almost started using gvim instead just because it has them (shudders). But before long I realised they are completely unnecessary. Why do I need to spend screen space on knowing what files I have open constantly? I don't. I only care when I'm actually ready to switch files, and ido makes that a breeze. Not only that, but I have hundreds of files open in emacs because I leave it running for weeks on end. I use something called midnight-mode to kill the idle ones but still have hundreds sometimes. How would tabs work?
- tomsthumb 9y agoI use tabs for managing multiple contexts, where each context is a set of open files. Some tabs might have four different files open at once.
- jpeloquin 9y agoUsing tabs as contexts sounds interesting. What do you use for this? TabBarMode (https://www.emacswiki.org/emacs/TabBarMode https://www.emacswiki.org/emacs/TabBarMode)?
- cup-of-tea 9y agoHow about opening multiple emacs frames and letting your window manager act as the "tabber"?
- tomsthumb 9y agoMixing the contexts of my text editing with the contexts of every other application running in my wm doesn’t sound like an improvement. Maybe if window managers were substantially better.
- vvillena 9y agoTabs are amazing for visual thinking. I use them as a shortlist of my mental workspace. As for Emacs, "open files" mean nothing for me as an end user. The editor could hide that feature away and I would still work in the same way. I just use projectile and neotree to switch to the file I want. And efficient as that may be, I still lack a visual cue of what I'm doing. Tabs do that job perfectly.
- kleiba 9y agoThe reason for that is probably that Emacs has buffers to support parallel editing of multiple documents, and has had them long before TABs where popularized by web browsers.
- saulrh 9y agoInstall the `tabbar` package using `M-x package-list-packages` or by adding `(use-package tabbar :ensure t)` to your init file and evaling it. To change what buffers show in a bar you can point `tabbar-buffer-groups-function` at a function of your own devising (`C-h v tabbar-buffer-groups-function`) patterned off the default `tabbar-buffer-groups` (`C-h f tabbar-buffer-groups` and follow the link to its definition in `tabbar.el`). That said, instead of tabs, I recommend getting used to something like helm. When you have 150 files open even windowing and LRU won't help you enough. Switching to buffers by typing in a few characters of their name and then hitting enter can be done open-loop and not having to find things with your eyes is a major speedup.
- ajarmst 9y agoMany Emacs users don't use a mouse much or at all, and the tab interface is primarily for people who do most navigation using their mouse. For those of us who find having to take a hand off the keyboard slow and irritating, tabs are a waste of valuable screen real estate. Also bear in mind that an Emacs session for many users lasts for days or months (I just checked---the Emacs server session running on the machine I do most of my work on has been running since last November, and I currently have more than 50 buffers open). In that sort of use-case, tabs don't make any sense, but tools like Helm and Projectile make it quite efficient and easy to navigate among your files and buffers. I don't have any great need or investment in convincing others to use Emacs. However, people might want to consider that, while new users often detest it, those who do spend the time to actually learn it---which, to be honest, probably requires an investment of time and focus few are willing to offer---then refuse to ever use anything else. Surely they're finding something of value that casual users aren't encountering. Complaints about Emacs invariably seem to be some variant of "it's not like my favourite editor, which has feature x, so I won't use it". Which always sounds to me a lot like an experienced car driver refusing to try a helicopter because it doesn't have a steering wheel.
- oblio 9y agoI don't use tabs with the mouse. There are many shortcuts for tab management: previous tab/next tab, open tab/close tab, switch to tab 1-9, move tabs around, etc. Also, with Vim you can mix and match tabs and splits to have many files open at the same time. You also have buffers, which I believe are the exact equivalent to Emacs buffers, you can have a gazillion buffers open at the same time and only a few visible.
- hiq 9y agoSame, I use tabs both in i3 and vim, and I never use my mouse (I use keynav when I have to, for instance with firefox). I've seen some vim workflows using only buffers instead of tabs, but they required doing :ls :b buff_number to switch to another file, which seems worse than looking at your tabs and repetitively do "gt" to access the corresponding tab. I could use the ctrlp plugin or one of its alternative to fuzzy search on the file name instead of manually changing the buffer, but I still don't see a real benefit over using tabs. I guess it makes sense with really big projects where you have to open more than 10 files at a time.
- terminalcommand 9y agoEmacs can have tabs, besides the obvious tab-bar mode, you could also just use i3. Set it to tabbed mode with super+w,then hit ctrl-x-5-2 to open new frames, they will open as tabs. (Frame means window in emacs lingo) With Emacs anything is possible. You don't have to settle for buffers. There is also speedbar for a tree-based view.
- noufalibrahim 9y agoAs a long time Emacs user, I feel the exact opposite. I wish my Window manager, browser, terminal and other things all had buffers which I could easily search through by name rather than tabs.
- ethelward 9y agoIf you're using a compatible window manager, you may like [rofi](https://github.com/DaveDavenport/rofi/ https://github.com/DaveDavenport/rofi/), which in one of its mode, allows you to jump from window to window through their name, a bit like the buffer selector in emacs.