-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Can't bind C-z to a readline function without getting 'readline: maximum macro execution nesting level exceeded' with fzf-cd - Alt-C #3838
Comments
Upon further inspection it seems like it had something to do with the order that i sourced my ~/.bashrc files more then a fzf bug. First readline (bind) keybinds, then fzf, then 'complete -F _complete_alias "${!BASH_ALIASES[@]}"' EDIT: Nevermind, it still seems to be a pure fzf issue and only comes up if I bind Ctrl-Z to something after sourceing ~/.fzf.bash |
Can't reproduce. bash --noprofile --rcfile <(fzf --bash)
bind -m emacs-standard '"\C-z": vi-undo'
bind -m vi-command '"\C-z": vi-undo'
bind -m vi-insert '"\C-z": vi-undo' |
I forgot a relevant line. Also set this in your .bashrc (bash --noprofile --rcfile <(fzf --bash) isn't completely similar):
in your .bashrc gives the 'readline: maximum macro execution nesting level exceeded' when using Alt-C Sourcing
Now Alt-C works, but Ctrl-z will now be bound to changing editing-modes (vi/emacs). |
Found out that it can only be reproduced in vi mode (which I don't use).
Related: #1876 (comment) So the current implementation relies on its internal C-Z binding, and overriding it breaks it. Patches are welcome. |
I'm having the exact same issue. |
Checklist
man fzf
)Output of
fzf --version
0.52.1 (6432f00)
OS
Shell
Problem / Steps to reproduce
This only seems to happen with readline functions for whatever reason.
'bind -x '"\C-z": exit' works without a hitch
The text was updated successfully, but these errors were encountered: