News for hackers. Stuff that matters.
Re:Chocolat - the new editor by snprbob86 on Monday August 01, 2011 @10:18PM (#2835420)
"Who doesn't like tabs?"

In text editors? Me.

I don't like thinking about which individual files are open. Any file under the root of my project (i.e. the editor's current working directory) is fair game for an open buffer. I treat open file as "go to class".

Re:Chocolat - the new editor by alextgordon on Tuesday August 02, 2011 @10:16AM (#2837166)
[developer here]

Honestly, that line betrays my own apathy towards the feature. I hardly ever use them. They probably should be dead.

However! There is currently a plan (with associated scary-looking diagrams) to change how tabs behave[1].

Essentially, you'd be able to use a tab for each logical grouping of open files.

For example, in a django project, you might create a tab for each separate app you're working on. Or maybe a tab for your views, and another for your templates.

I understand that, even with that change, tabs won't fit many people's workflow. So they will always remain out of the way, unless you actually create more than one.

[1]: https://github.com/fileability/chocolat-public/issues/159

Re:Chocolat - the new editor by wahnfrieden on Monday August 01, 2011 @10:27PM (#2835446)
I like vim's tabs as a way of grouping kinds of buffers into a few categories, eg each tab might gave several split buffers representing a Django app per tab. This isn't how tabs work in most editors though.
Re:Chocolat - the new editor by olsonjeffery on Monday August 01, 2011 @10:35PM (#2835472)
Is there a way to expose only certain buffers in certain tabs? My experience has been that all tabs show all loaded buffers...

For this reason, I've pretty much forgone tabs in favor of minibufexpl.vim (https://github.com/fholgado/minibufexpl.vim), which gives me a pretty robust buffer-display window on the top of the editor and easy navigation keybindings ([shift+]ctrl+tab).

Re:Chocolat - the new editor by wahnfrieden on Tuesday August 02, 2011 @03:51AM (#2836263)
Nope, but I have enough space to use several splits within a tab (which is also why I stick to 80 columns for most of my code) so it's not a huge issue.

You should take a look at FuzzyFinder as an alternative to minibufexpl: http://www.vim.org/scripts/script.php?script_id=1984 I mapped <leader>b to fuzzy search my open buffers. Much quicker and less cognitive overhead for me than managing a list of buffers manually and scanning it visually for what I need.

Re:Chocolat - the new editor by oinksoft on Monday August 01, 2011 @11:10PM (#2835559)
Not that I know of. I mostly use tabs when I run out of room with all the splits I have.
Re:Chocolat - the new editor by snprbob86 on Wednesday August 03, 2011 @03:30AM (#2840174)
Hmmm, very cool. I generally open multiple instances of MacVim for multiple projects. Apparently tabs can have a working directory each. Really interesting... going to have to experiment with this.
Re:Chocolat - the new editor by kenneth_reitz on Monday August 01, 2011 @10:26PM (#2835444)
You should try Sublime Text 2 w/ the tabs and sidebar hidden. It's a dream :)
Re:Chocolat - the new editor by swah on Monday August 01, 2011 @11:15PM (#2835575)
Emacs user.
Re:Chocolat - the new editor by Ixiaus on Monday August 01, 2011 @11:18PM (#2835581)
Buffers are truly amazing - combined with powerful buffer naming patterns, it's a breeze switching between buffers blindly (included with autocomplete) and if you forget about which buffers are open it's a keystroke away to see an overview of the buffers open...

20-25 buffers open at once? Easy!

Re:Chocolat - the new editor by davidw on Tuesday August 02, 2011 @04:09AM (#2836308)
> 20-25

I get that many in a day of hacking. With emacs open for a couple of weeks, I can hit a hundred pretty easily.

Re:Chocolat - the new editor by swah on Monday August 01, 2011 @11:26PM (#2835603)
^ Ido mode user!
Re:Chocolat - the new editor by baddox on Tuesday August 02, 2011 @12:05AM (#2835730)
Ido with fuzzy searching is an absolute must. Type "mobusmai" to get to "mobile_user_mailer.rb" in an instant.
Re:Chocolat - the new editor by marcmarc on Tuesday August 02, 2011 @01:51PM (#2838018)
When you have 100 or more buffers open, you may have two files with the same name. Using uniquify (require 'uniquify) helps differentiate them. Instead of getting file<1> and file<2> you get file:"directory_1" and file:"directory_2".
Re:Chocolat - the new editor by Ixiaus on Tuesday August 02, 2011 @02:05PM (#2838096)
That's exactly what I use, Uniquify and Ido.
Re:Chocolat - the new editor by burgerbrain on Tuesday August 02, 2011 @12:22AM (#2835773)
Hmm.. I am a Vi user with the same attitude.
Re:Chocolat - the new editor by snprbob86 on Tuesday August 02, 2011 @05:43AM (#2836544)
Nope, I'm a Vim guy.
Re:Chocolat - the new editor by swah on Tuesday August 02, 2011 @08:27AM (#2836860)
Cool. How do you get to that state (of having lots of buffers open) without accidentally closing Vim? My Vim sessions don't last long because I always :q with a single window and its gone.
Re:Chocolat - the new editor by snprbob86 on Wednesday August 03, 2011 @03:28AM (#2840165)
I use :Ack pretty aggressively, so it is quite rare that I don't have a little search window open. If I close my last buffer, then the quickfix window takes up the whole screen and I quickly use :FuzzyFinderTextMate to open the next file.

So the only time I accidentally :q the last buffer is when I close all files, override my search results, don't run a new search, then close the only file. Needless to say, that is pretty rare.