focus_visual_tab is a useful keymapping helper function that selects a
tab based on the its location visually in the tabline. This is useful
when tabs are moved around. The tab id's or count's might not be in the
correct order. This function helps to create a mapping that will select
the tab based on its place on the tabline.
This is an example pr from the initial issue. Not sure on the naming because that is always hard but it gives an idea of the usecase. If you are interested in this pr I would also update the readme.
focus_visual_tab
is a useful keymapping helper function that selects a tab based on the its location visually in the tabline. This is useful when tabs are moved around. The tab id's or count's might not be in the correct order. This function helps to create a mapping that will select the tab based on its place on the tabline.Example mappings:
nnoremap1 :lua require("tabby.mappings.").focus_visual_tab(1)
nnoremap 2 :lua require("tabby.mappings.").focus_visual_tab(2)
nnoremap 3 :lua require("tabby.mappings.").focus_visual_tab(3)
nnoremap 4 :lua require("tabby.mappings.").focus_visual_tab(4)
...
Reference: #9