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

Not overriding fzf's Ctrl+R binding #6

Open
debnath-d opened this issue Feb 17, 2024 · 1 comment
Open

Not overriding fzf's Ctrl+R binding #6

debnath-d opened this issue Feb 17, 2024 · 1 comment

Comments

@debnath-d
Copy link

debnath-d commented Feb 17, 2024

If fzf's key-bindings.fish is enabled as described in the Arch Wiki, and mcfly-fzf is also enabled, mcfly-fzf is not overriding fzf's Ctrl+R binding. Here are the relevant config files:

~/.config/fish/config.fish:

if status is-interactive
    command -q mcfly && mcfly init fish | source
    command -q mcfly-fzf && mcfly-fzf init fish | source
end

~/.config/fish/functions/fish_user_key_bindings.fish:

function fish_user_key_bindings
    fzf_key_bindings
end

I should mention that it's not desirable to turn off fzf's key-bindings.fish because it also contains other key bindings apart from Ctrl+R, such as Ctrl+T and Alt+C.

@bnprks
Copy link
Owner

bnprks commented Feb 17, 2024

EDIT: sorry, posted a reply to the wrong place

Here, I suspect you'll want to make some manual changes to your fish config -- I'm not sure what mcfly-fzf can do to avoid conflicts. My first idea would be to make sure you're sourcing your fzf_key_bindings setup before you source the mcfly-fzf setup. Alternatively, you might try running bind \cr __mcfly-fzf-history-widget manually close to the end of your config.

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

No branches or pull requests

2 participants