barbar.nvim
barbar.nvim copied to clipboard
Navigate tabs by MRU, like Firefox [Request]
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
Related #91
@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.
huh! Thanks for the tip, had no idea :D