Closed zigius closed 3 months ago
The remapping can be prevented by explicitly mapping ctrl-n and ctrl-p to down
and up
in your FZF_DEFAULT_OPTS
.
So something like this should work.
export FZF_DEFAULT_OPTS='--bind ctrl-n:down,ctrl-p:up,alt-n:next-history,alt-p:prev-history'
Or if you prefer to put it in your Vim configuration file.
let $FZF_DEFAULT_OPTS = '--bind ctrl-n:down,ctrl-p:up,alt-n:next-history,alt-p:prev-history'
man fzf
)Hey,
I saw in https://github.com/junegunn/fzf/blob/master/README-VIM.md#configuration that you can set
fzf_history_dir
to enable history navigation. However, setting the fzf_history_dir global flag overrides the CTRL-P and CTRL-N mappings to search through the history navigation. Is there a way to change the history mapping keys to something else? I would like to have history navigation and also keep the behavior where CTRL-P and CTRL-N navigate the results.Thanks :)