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

Navigating fzf.vim broken since tnoremap update #128

Closed
alexlafroscia opened this issue May 29, 2016 · 4 comments
Closed

Navigating fzf.vim broken since tnoremap update #128

alexlafroscia opened this issue May 29, 2016 · 4 comments
Labels

Comments

@alexlafroscia
Copy link

alexlafroscia commented May 29, 2016

The latest commit broke the ability to use ctrl-j and ctl-k to navigate up and down in a list in fzf.vim when using Neovim. I know that a cross-plugin compatibility issue is not really your problem, but it would be great to have this feature restored. For the time being, I had to pin my vim-plug dependency to the previous commit to keep things working the way I'm used to.

Since detecting when fzf.vim is open, it might be nice to just add a configuration option that can be turned off to prevent the terminal remaps from being set.

@blueyed
Copy link
Collaborator

blueyed commented May 29, 2016

Yeah, sorry.

We should probably revert this altogether, and not add these mappings for terminal windows (which fzf uses).

@blueyed blueyed added the bug label May 29, 2016
blueyed added a commit to blueyed/vim-tmux-navigator that referenced this issue May 29, 2016
blueyed added a commit that referenced this issue May 29, 2016
@adamyonk
Copy link

adamyonk commented Jul 6, 2016

I'm still seeing this issue on the latest commit (but in vim, not neovim). Is there some workaround to have it ignore J/K if you have the :Files pane open from FZF?

@blueyed
Copy link
Collaborator

blueyed commented Jul 6, 2016

@adamyonk
Cannot reproduce: <c-j>/<c-k> is used by FZF for me (both Neovim and Vim).
I think you would have to open a new issue and provide more information.

@uzxmx
Copy link

uzxmx commented Apr 19, 2022

I think fzf.vim also supports using <c-p>/<c-n> to navigate up/down, which is a same shortcut as navigating through shell history in a shell. The p(revious) and n(ext) is easier to remember than k, j when navigating in a list (Still hjkl is definitely the best choice for left/up/down/right when moving the cursor in the editor). So I prefer <c-p>/<c-n> in this situation.

So if most people can accept using <c-p>/<c-n>, then we can add these mappings back for terminal windows.

Or how about this? Add a switch to let the user enable these mappings if they want to navigate when using terminal in nvim.

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

4 participants