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

Native vim keys for changing tabs #212

Open
Toeplitz opened this issue Jun 18, 2018 · 2 comments
Open

Native vim keys for changing tabs #212

Toeplitz opened this issue Jun 18, 2018 · 2 comments
Labels

Comments

@Toeplitz
Copy link

Is it possible to add keys for changing tabs similar to how it works in native vim?

For example:
2 gt (switch to tab number 2)
gt (switch to next tab)
gT (switch to previous tab)

@aioutecism
Copy link
Owner

Yes, this is possible.

@alisonatwork
Copy link
Collaborator

Just to add some context on why this isn't here yet: the difficulty is that if we add any chord command starting with g, it will break motions that start with g, like gg, g0 etc.

I have tested this locally by implementing it as a "fake" motion that by accident of switching to another editor tab will interrupt any chain that was in progress. So, dgt would unconditionally switch instead of flashing error bell like in vim. It's not an elegant solution, but it might be good enough to at least get tab navigation working.

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

No branches or pull requests

3 participants