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

Added jumpnext and jumpprevious as commands #668

Closed
wants to merge 0 commits into from
Closed

Added jumpnext and jumpprevious as commands #668

wants to merge 0 commits into from

Conversation

SlaynAndKorpil
Copy link
Contributor

When I was trying to change my keybindings for ncspot in config.toml, I noticed there was no way to change the 'vim like' jump-to-next-search-result command from their default keybindings "n" and "Shift+n".
This was especially annoying since I wanted to remove the default keybindings with default_keybindings = false, to only have my own keybindings which would mean losing these two keybindings.

This commit adds the "jumpnext" and "jumpprevious" commands which generate a Command::Jump(JumpMode::Next) and Command::Jump(JumpMode::Previous) to mimic the functionality of the default "n" and "Shift+n" keybindings.

This also makes it possible to use these as commands in the commandline.

@hrkfdn hrkfdn closed this Dec 7, 2021
@hrkfdn
Copy link
Owner

hrkfdn commented Dec 7, 2021

Thanks, merged! I added one small change to fix the serialization of jump commands as well :)

EDIT: Sorry, I messed up your merge branch 🙇

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

Successfully merging this pull request may close these issues.

2 participants