mihaifm / vimpanel

A modern side panel for Vim
106 stars 9 forks source link

how about tab page feature? #7

Closed mekery closed 11 years ago

mekery commented 11 years ago

Hi, mihaifm

Just like other modern editors, such as Sublime and VS2012, the opened files will be organized as tab pages in the right area, how about open a new file as a new tab page (tabnew command in vim) in the right area in Vimpanel?

mihaifm commented 11 years ago

I wouldn't mind adding this feature...although it's a bit complicated by the fact that if you have multiple panels, their state would need to be restored in the new tab (to make it 100% compliant with the other editors).

As a side note, I personally don't use tabs...I think you can get most out of Vim if you just use buffers. I made a buffer switcher for this purpose (Bufstop), and there are other similar plugins out there. I find it much more convenient to just switch buffers than to switch tabs.

mekery commented 11 years ago

good idea to use buffers, thanks :-)

mihaifm commented 11 years ago

Added the t hotkey to open a file in a new tab. Only works with files. You will only see the file in the new tab, without any panels. But I've also added two new commands, VimpanelToggleLeft and VimpanelToggleRight, so you can quickly access the panel in the new tab if you need to.

cheers!