vimr icon indicating copy to clipboard operation
vimr copied to clipboard

Use custom tabs

Open qvacua opened this issue 8 years ago • 15 comments

  • Use Sierra's native tabs?
  • Use a tab framework? What are the options?

qvacua avatar Nov 23 '16 21:11 qvacua

I would love to use native tabs instead of Vim tabs, like MacVim does (I guess with a preference option). Using Sierra native tabs would be great as every tab framework I've seen has been a bit dodgy e.g. MacVim uses some framework but tabs can only be dragged left, dragging right doesn't work and other weird bugs.

sfcgeorge avatar Dec 06 '16 09:12 sfcgeorge

Not so worried - most of the time I have vimr running in fullscreen and am quite happy with vim tabs. As note by @sfcgeorge, if this could be implemented with a preference option then that would likely work for everyone.

timhatch avatar Dec 29 '16 14:12 timhatch

If vimr could implement tabs like the guys over at iterm2 are currently testing out that would be dope!

Also just the darkmode feature on it's own seems nice...

robertgzr avatar Jan 08 '17 11:01 robertgzr

For people coming from MacVim (I'm looking at you, me) the tab widget is the first thing they (we) notice. Looks kinda janky.

CBSears avatar Feb 17 '17 00:02 CBSears

Yes, just ... need ... some ... more ... free ... time ... 😌

qvacua avatar Feb 23 '17 21:02 qvacua

I second iTerm3 tabs -- they're absolutely flawless, and very beautiful (both light and dark, like the image above). It's the main reason I want to switch away from MacVim... The other reason is how frustrating it is that MacVims outer window doesnt line up per pixel, so its always off by a few pixels when I use a window manager

9mm avatar Jan 05 '20 01:01 9mm

Is this even remotely on a roadmap somewhere? I love VimR so much more than macvim except on this 1 area 👍

9mm avatar Jan 05 '20 01:01 9mm

@qvacua please add this feature for the native tab.

DemonCloud avatar Mar 22 '20 23:03 DemonCloud

Until this feature makes it in, is there a quick hack I can do to toggle between open tabs with ] and [ (essentially map these shortcuts to a vim's :tabn and :tabp)

muxcmux avatar Nov 06 '20 13:11 muxcmux

@muxcmux Try adding this to your config.

  nnoremap <S-D-{> :tabp<CR>
  vnoremap <S-D-{> :tabp<CR>
  inoremap <S-D-{> :tabp<CR>
  nnoremap <S-D-}> :tabn<CR>
  vnoremap <S-D-}> :tabn<CR>
  inoremap <S-D-}> :tabn<CR>

rickyc avatar Nov 06 '20 15:11 rickyc

@rickyc you're a legend!

muxcmux avatar Nov 06 '20 15:11 muxcmux

First version of custom tabs is online: https://github.com/qvacua/vimr/releases/tag/snapshot%2F20201210.181940

qvacua avatar Dec 10 '20 17:12 qvacua

Improvements like keyboard shortcut for certain actions will follow soon.

qvacua avatar Dec 10 '20 19:12 qvacua

Wonderful feature, great!!! Some comments:

  • It looks the preference of whether to use custom tab implementation would be in effect only after restarting VimR. I would suggest to have a note like "Restart required" in the preference panel.

  • How can we change highlight groups for those custom tabs? For me, there is a slight glitch on the foreground/background color (which are all white). FYI I am using vim-xtabline plugin and its default theme.

image

wookayin avatar Dec 14 '20 20:12 wookayin

@wookayin

  1. It should be sufficient to open a new window, but, yes, I'll add a note.
  2. I think it'll be impossible (for me) to choose the correct colors for all colorschemes. I guess, we'll need a UI where the user can set the colors.

qvacua avatar Dec 18 '20 10:12 qvacua