Giter Club home page Giter Club logo

Comments (5)

excited-bore avatar excited-bore commented on July 17, 2024 1

I forgot a relevant line. Also set this in your .bashrc (bash --noprofile --rcfile <(fzf --bash) isn't completely similar):

[ -f ~/.fzf.bash ] && source ~/.fzf.bash

# Unset suspend signal shortcut (Ctrl+z)
stty susp undef

bind -m emacs-standard  '"\C-z": vi-undo'
bind -m vi-command      '"\C-z": vi-undo'
bind -m vi-insert       '"\C-z": vi-undo' 

in your .bashrc gives the 'readline: maximum macro execution nesting level exceeded' when using Alt-C

Sourcing [ -f ~/.fzf.bash ] && source ~/.fzf.bash after these lines will fix this mostly

# Unset suspend signal shortcut (Ctrl+z)
stty susp undef

bind -m emacs-standard  '"\C-z": vi-undo'
bind -m vi-command      '"\C-z": vi-undo'
bind -m vi-insert       '"\C-z": vi-undo' 

[ -f ~/.fzf.bash ] && source ~/.fzf.bash

Now Alt-C works, but Ctrl-z will now be bound to changing editing-modes (vi/emacs).
Removing stty susp undef stops this behaviour but also breaks `vi-undo

from fzf.

junegunn avatar junegunn commented on July 17, 2024 1

Found out that it can only be reproduced in vi mode (which I don't use).

$ bash --noprofile --rcfile <(fzf --bash)
bash-5.2$ bind -m emacs-standard  '"\C-z": vi-undo'
bind -m vi-command      '"\C-z": vi-undo'
bind -m vi-insert       '"\C-z": vi-undo'
bash-5.2$
bash-5.2$ set -o vi
bash-5.2$ readline: maximum macro execution nesting level exceeded

Related: #1876 (comment)

So the current implementation relies on its internal C-Z binding, and overriding it breaks it. Patches are welcome.

from fzf.

excited-bore avatar excited-bore commented on July 17, 2024

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

from fzf.

junegunn avatar junegunn commented on July 17, 2024

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'

from fzf.

sebastiancarlos avatar sebastiancarlos commented on July 17, 2024

I'm having the exact same issue.

from fzf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.