Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ilan-schemoul opened this issue Jun 4, 2024 · 6 comments
Open

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

ilan-schemoul opened this issue Jun 4, 2024 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@ilan-schemoul
Copy link

ilan-schemoul commented Jun 4, 2024

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
Copy link
Owner

nanozuki commented Jun 5, 2024

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
Copy link
Owner

nanozuki commented Jun 5, 2024

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.

@nanozuki nanozuki self-assigned this Jun 5, 2024
@nanozuki nanozuki added the enhancement New feature or request label Jun 5, 2024
@ilan-schemoul
Copy link
Author

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
Copy link
Owner

nanozuki commented Jun 5, 2024

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

@ilan-schemoul
Copy link
Author

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants