nanozuki / tabby.nvim

A declarative, highly configurable, and neovim style tabline plugin. Use your nvim tabs as a workspace multiplexer!
MIT License
563 stars 21 forks source link

Feat: magic jump (jump to tab via letter) #143

Open ilan-schemoul opened 1 month ago

ilan-schemoul commented 1 month ago

Hey, Great plugin. The only problem I have is that I tend to have multiple (5/6 tabs) and selecting via UI.select is not fast compared to the great approach of barbar : you type the keybind to do the "magic jump" then the first letter (if available) of the tab name https://github.com/romgrk/barbar.nvim/blob/master/static/jump.gif?raw=true As I don't have the time to port this feature here (nor do I wanna use barbar) I use a package for telescope to select tabs but it's not as conveniant or cool If anybody has any interest for developing that it would be an awesome feature

nanozuki commented 1 month ago

Oh, it seems awesome. I am interested in developing this. But "tabby.nvim" is fully customized, so the details may not be the same as with "barbar." I'll try.

nanozuki commented 1 month ago

Do you have interest or time to add your telescope picker to "tabby.nvim"? Adding a more method to do this makes it more friendly for users.

ilan-schemoul commented 1 month ago

I'm glad you like the idea :)

Do you have interest or time to add your telescope picker to "tabby.nvim"? Adding a more method to do this makes it more friendly for users.

I didn't make the picker. This is what I'm using https://github.com/LukasPietzschmann/telescope-tabs

nanozuki commented 1 month ago

@ilan-schemoul How do you think about opening a popup window and setting some keybinding to pick a tab?

ilan-schemoul commented 1 month ago

Well I think what's nice about the magic jump is that it doesn't interrupt my flow of thoughts : I think I want to go to tabs xyz so I type tx (if t is to pick a tab). Popup tend to add mental overhead and breaks mental flow a little bit. I would even add that it's what I like about vim I can just do anything via keyboard without my mental flow being disturbed by any kind of UI.

So if we can manage to have something like barbar where when we start magic jump the first letter (or second if the first letter is already used) appears in red and we just type it it would be awesome. If it's too complex I'd understand I can stick with the telescope plugin it's not huge deal.

nanozuki commented 1 month ago

I think I found a way to implement this. I expect to complete it this month.