vim-vixen icon indicating copy to clipboard operation
vim-vixen copied to clipboard

Jump to specific tab

Open stevanov opened this issue 4 years ago • 3 comments

I'm opening this issue because:

  • [ ] I'll report a bug
  • [x] I'll propose a new feature

Description

Would be nice to be able to jump to an n-th tab kind of like jumping to a specific line in vim. So for example having :4 or g4 (kind of like g0 g$) to go to the 4th tab from the left would be nice.

A nice addition to this would be to have similar behavior as pressing f where the yellow markers pop up next to the tabs when you press the key (g for example) to select the specific tab that you want to go to.

I can see people being against this feature since Firefox already has this in the form of ctrl-4 (ctrl-n) but the same could be said for ctrl-tab and ctrl-shift-tab being the same as gt and gT.

stevanov avatar May 25 '20 12:05 stevanov

The current way I do this is with the :buffers command.

Press b, type the tab number according to the list that pops-up, and then hit enter. It works well as long as your tabs don't share similar page titles/favicons. However, I would prefer something like the f key but for switching tabs. That said, it sounds like an extension limitation.

LeonT-A avatar Sep 01 '20 19:09 LeonT-A

The b command already does this. It lists your tabs in order and lets you switch with either numbers or by searching for the tab.

snprajwal avatar Dec 08 '20 07:12 snprajwal

The b command does work great for this. I'm just commenting to thank you for the g0 and g$ commands! 👍

wraiford avatar Dec 30 '21 14:12 wraiford