5 ms·
I don't know why you're being downvoted, it's a valid complaint. I tried Emacs/Spacemacs and for example, there's no decent tabbed interface. I mean a real tab
by oblio 10y ago
I don't know why you're being downvoted, it's a valid complaint.
I tried Emacs/Spacemacs and for example, there's no decent tabbed interface. I mean a real tabbed interface, at least as good as Vim's. The answers I got on this topic ranged from: "you're not going to need it" (how do you know what I need?) to "use this random package which kind of provides a limited subset of the tabbed interface UX" to "write it yourself" (...).
- josteink 10y ago> I tried Emacs/Spacemacs and for example, there's no decent tabbed interface. I mean a real tabbed interface, at least as good as Vim's. The answers I got on this topic ranged from: "you're not going to need it" (how do you know what I need?) to "use this random package which kind of provides a limited subset of the tabbed interface UX" to "write it yourself" (...). I'd like to offer a different explanation, which I think it much more truthful and reflects the Emacs way(tm). In Emacs everything (and I mean everything) is represented by the same type of primitives: Buffers made out of text. Every interaction with such a text-buffer is represented as lisp-code implementing an Emacs mode. This is the core of Emacs. Everything in Emacs must build on this. No exceptions. And that's incredibly powerful. Because of these "limitations" it means everything (and I mean everything) in Emacs can be processed using the same primitives, the same functions and the same keys. There's no magic buttons, or drop-down lists, or special UI elements exempt from this. I can search/grep for text in any buffer. I can recursively grep for results in my grep-result buffer. I can navigate these search results, the same way I would navigate a code-document. I can enable spell-check in any mode I like (like Git commit-mode). Etc etc. It also means that any customization I've done to any part of Emacs, I can apply to any third party extension as well. It means I can customize and interact with a extension which extends another extension. There's almost no limits to what you can do with these simple but powerful primitives. And all that in a simple and uniform way. Everything at your finger-tips. Both as a Emacs-package developer and an Emacs-user. Once you get used to it, it's really a captivating thing and everything else starts feeling wrong. If you want to make a tabbed interface... How are you going to represent that using those primitives? How will that work? How will you make sure you tab-line/row stays in place and is exempt from other rules which governs the current buffer and the Emacs mode it runs (not to mention the user-customized rules for this mode)? I'm not saying it can't be done. I'm just saying it wouldn't be very Emacsy, and it's probably not a trivial thing to implement either. Especially when you consider that all your code also needs to work in a terminal. Emacs should be able to work 100% in a SSH session too, you know. At least for me, that's one of it's many selling points :) So non-trivial and not very Emascy. That doesn't sound like anything which is going to get lots of developer-time. Neither core nor third-party.
- oblio 10y agoVim has (more or less) the same buffer paradigm. And it still has a proper tabbed interface. It can be done, it's just that there's no interest in the community or from the developers. I can understand that, on the other hand such things make sure that a large number of people won't ever enter the Emacs community, for good or bad. If you don't believe me about the popularity of the tabbed interface, I present: - the addition of tabs to Vim - the #1 feature request for Visual Studio Code, now implemented, tabs
- wtbob 10y agoSo you mean GUI tabs I guess? How would one even begin to display hundreds of tabs on a screen? I hate that Firefox doesn't make it as easy to switch tabs as emacs makes it easy to switch buffers.
- redacted 10y agoIIRC vim's tabs are just views into buffers - you don't need to have a tab per buffer at all. So you can switch between tabs, or between buffers in a tab etc.
- gkya 10y agoTabs are an inefficient representation of Emacs buffers, as they are not mere views into files, and sometimes not even intended for the user to see. That said, there are packages out there if you really want them. Or you implement it. There are the facilities. But the default Emacs is an API for other packages, and plugging in tabs would have implications on most of the elisp out there. Yet another option is not to use emacs if it does not fit your requirements and preferences.
- gnuvince 10y agoI typically open Emacs when I boot my laptop, and close it when I shut down (which happens only every few weeks); this is typical of a lot of Emacs users. In those few weeks, I open hundreds of buffers and I rarely close them: my buffer list contains all the TeX files from the paper I'm working on, the code files of a couple different projects, many one-off files, IRC buffers, twitter buffers, etc. Yet, switching to the buffer I want is easy, fast, and painless. Using ivy (helm or ido-flx are good too), I can quickly switch to any buffer by typing part of its name. This paradigm would be totally impossible (or at the very least, most impractical) if I had one tab-per-buffer. I think if Vim or Visual Studio Code had a similar quick way of switching between buffers, people would be less reliant on tabs. As for Emacs, it seems like a waste of time and effort to implement a feature that most Emacs users would not use.
- easytiger 10y agoYou might as well be a lisp programmer who doesn't think recursively.
- oblio 10y agoThe analogy would hold if Emacs would be used only for Lisp. But I see it recommended from time to time as the development environment for various non-Lisp programming languages. And if you create artificial barriers to entry, don't expect many people to stick around to enjoy the supposed benefits at the end of the rainbow.
- easytiger 10y agoMy point was in emacs you don't think in tabs.
- oblio 10y agoAnd my point was that I should be free to think in whatever I want. If the other bastion of go-your-own-way, Vim, has tabs, I'm pretty sure the Emacs could have them as well. Especially since Emacs prides itself on being a jack of all trades, unlike the "limited" Sublime or Notepad++, for example.
- easytiger 10y agoHmm, your tone indicates were this is likely to go.. but... Emacs can have tabs and it can have goto next etc. What do you want? for them to override out of the box the default method of buffer and frame mgmt in emacs?
- oblio 10y agoI've tried Emacs and I've tried several tab packages. None of them seemed to work properly, and I wasn't expecting much. I just wanted a visual list of frames or whatever they're called, preferably at the top of the screen, preferably visible despite whatever mode I was in and preferably easily manageable through keyboard commands. For an exact example of what I wanted, just open GVim. You will notice that tabs are added on top of the existing Vim concepts, such as buffers, and you can easily use Vim/Gvim without actually using tabs. You can even disable the tabbar. I couldn't get that without major hassle. I don't really want anything from Emacs, I'm just pointing out that: - Emacs is frequently aggressively promoted as some sort of holy grail of text editing - people say that they are using an editor such as Sublime which does what they want - Emacs folks then point out that Emacs can do whatever Sublime can and more To which I'm just giving 1 data point of Emacs not being able to do what Sublime does out of the box. And "code it yourself" is not a valid reply since a flexible and robust tab management solution in the Emacs environment is not a trivial project. Anyway, different philosophies, both successful.
- wtbob 10y ago> I tried Emacs/Spacemacs and for example, there's no decent tabbed interface. I mean a real tabbed interface, at least as good as Vim's. It's been ages since I was a vi user, and I never used tabs. I took a look at http://vim.wikia.com/wiki/Using_tab_pages http://vim.wikia.com/wiki/Using_tab_pages, and it sounds like tabs are just what emacs would call windows, which have been there for decades at this point. I'm guessing that's not it, so … what is? Does https://github.com/krisajenkins/evil-tabs https://github.com/krisajenkins/evil-tabs not solve your problem? Also, what is wrong with 'write it yourself'? You are presumably an intelligent human being; the whole point of free software is that you are free to do whatever you like with it. If there's a feature you want, implement it (or hire someone to do so)!
- curiousdude99 10y agoYou don't need tabs in Emacs; use buffer instead. Helm has a really good interface to navigate open buffers. I usually have 30-50 buffers open in my emacs. Now how does vim handle that many buffers?
- gpderetta 10y agoFor what is worth, I have currently 755 buffers open on my emacs session. That's probably on the low side as I restarted my session recently (i.e. in the last 7 days). I usually have 8 buffers showing (vertical + horizontal split across two windows) at any one time. I don't even known how a tabbed interface would look like in this setup. I use ido-switch-buffer instead of helm for quick switching. Should I switch to helm?
- brewski 10y agoI have an elisp function that opens every file in the projects I'm currently working on. I run it when I start a new session. 1790 buffers 20295782 1774 files, 1 process
- unhammer 10y agoI prefer lazy-loading both packages and files, but still having recently-worked-on files available for quick opening, since I sometimes do restart Emacs :) With the below form in my .emacs.d/init.el, I can restart Emacs and the first time I do C-x b I get to pick from files I had opened in the previous session: (use-package ido :init (setq ido-use-virtual-buffers t) ; treat closed files as open buffers for C-x b :config (ido-mode 1) (ido-everywhere 1) (use-package recentf :init (setq recentf-auto-cleanup 7200 ; clean list on idle rather than startup recentf-max-saved-items 2000) :config (recentf-mode 1))) That is, ido-use-virtual-buffers will put closed buffers at the end of the buffer list, while recentf makes that list of previously closed buffers persistent across sessions. Also, after opening vc-tracked files, I want subsequent find-file calls to match on all non-ignored subdirectories of that repo, not just the directory of the current file, so I use ffir to add tracked subdirectories to ido's work directories: (use-package find-file-in-repository :ensure t :config (setq ffir-avoid-HOME-repository nil) (defun ffir-repo-subdirectories () "Use ffir to put projects into ido-work-directories. This makes useful files show up even if you haven't been to that sub-folder yet." ;; TODO: compare emacs25 project-find-file (interactive) (let* ((repo-directory (expand-file-name (ffir-locate-dominating-file default-directory (lambda (directory) (ffir-directory-contains-which-file ffir-repository-types directory))))) (file-list (funcall (ffir-directory-contains-which-file ffir-repository-types repo-directory) repo-directory)) dir-list) (mapc (lambda (p) (add-to-list 'dir-list (file-name-directory (cdr p)))) file-list) dir-list)) (defadvice ido-merge-work-directories (before advice-merge-repo-subdirs first nil activate) (mapc (lambda (d) (add-to-list 'ido-work-directory-list d)) (ffir-repo-subdirectories)))) (ffir is a fairly small dependency for a vc-general "list-non-ignored-files", though perhaps there's something built-in in Emacs' vc.el I should be using instead)
- okasaki 10y agoWhat's wrong with speedbar-mode?
- shabble 10y agoIIRC it used to be impossible to display it in a split, it required a separate frame (that is, windowmanager-level window). There were some dirty hacks to fix that, but led to more problems with window & buffer switch ordering (and layouts for things like ediff) May all be fixed now, this was years ago when I last played with it, but haven't really found the need for it, instead of ibuffer-mode, ido-everywhere, and smex. (Probably helm too if I can ever be bothered to set it up properly)