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

Support ctrl+hjkl in more apps and command history search #16

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tombruijn
Copy link

@tombruijn tombruijn commented Nov 27, 2024

Hi there! Great plugin!

I ran into some issues with other apps like fzf no longer receiving ctrl-hjkl, and made some changes to make it work better with it. I couldn't figure out a way to detect when ctrl+r would show fzf in the current pane. I don't know if that's even possible. Instead, this solution supports toggling the plugin on and off and document keybinding config to make it work with those other apps.

## Add config to disable plugin for more apps

When running fzf or other tools, it's nice if the plugin doesn't move panes or tabs when using the ctrl+h/j/k/l shortcuts, because those tools also use those shortcuts for navigation.

This change adds a configuration option to not switch panes or tabs when in the listed disabled apps, by default vim, nvim and fzf. People can add more apps if they need to.

Add enable and disable messages

Allow people to control if the plugin is active or not. This can be helpful when the plugin needs to be temporarily disabled when an application uses the ctrl/alt+hjkl keybindings and you wouldn't want the plugin to switch pane or tab.

Updated the README with an example use case I ran into myself.

When running fzf or other tools, it's nice if the plugin doesn't move
panes or tabs when using the ctrl+h/j/k/l shortcuts, because those tools
also use those shortcuts for navigation.

This change adds a configuration option to not switch panes or tabs when
in the listed disabled apps, by default vim, nvim and fzf. People can
add more apps if they need to.
Allow people to control if the plugin is active or not. This can be
helpful when the plugin needs to be temporarily disabled when an
application uses the ctrl/alt+hjkl keybindings and you wouldn't want the
plugin to switch pane or tab.

Updated the README with an example use case I ran into myself.
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.

1 participant