barbar.nvim icon indicating copy to clipboard operation
barbar.nvim copied to clipboard

Navigate tabs by MRU, like Firefox [Request]

Open Am3ra opened this issue 2 years ago • 3 comments

Love the plugin, one thing I would like is to have a function like BufferNext, or an option that modifies BufferNext that works on a Most Recently Used basis, like firefox.

How this would work:

Have three tabs, currently in a

[a*] [b] [c]

Move to B [a] [b*] [c]

Call function, would go back to a, as it is the most recently used, not c Call the funciton again, it would go back to B

This is super useful when having a lot of tabs open, but only navigating between few of them.

The only issue i see with this is navigating to the 2nd/3rd most recently used. Maybe have a timeout?

Firefox solves this by having you hold ctrl, and just counting the number of times you press tab before you let go of ctrl

Am3ra avatar Dec 22 '22 20:12 Am3ra

Related #91

Iron-E avatar Dec 28 '22 14:12 Iron-E

@Am3ra This is supported in stock Neovim using g<Tab>. There is some strange interaction between stock tabs and barbar, but if you open multiple files with :tabedit, you can g<Tab> between them.

levivk avatar Sep 12 '23 06:09 levivk

huh! Thanks for the tip, had no idea :D

Am3ra avatar Sep 13 '23 21:09 Am3ra