Code Monkey home page Code Monkey logo

Comments (9)

DanDobrick avatar DanDobrick commented on May 18, 2024 1

@marlonrichert Works perfectly, thanks!

from zsh-autocomplete.

DanDobrick avatar DanDobrick commented on May 18, 2024

Stepping through the commits and trying them all out it looks to have happened in this commit: 9d0e92e

from zsh-autocomplete.

marlonrichert avatar marlonrichert commented on May 18, 2024

Thanks, I’ll have to see if I can reproduce that.

from zsh-autocomplete.

marlonrichert avatar marlonrichert commented on May 18, 2024

This seems to happen when you don't have Fzf installed, which causes zsh-autocomplete to fall back to the history-search-backward widget. And for some reason, this crashes Zsh. I've experienced similar crashes when trying to use the _history completer. Not sure why or how to work around it. I'll have to investigate some more.

from zsh-autocomplete.

andreypopp avatar andreypopp commented on May 18, 2024

Have fzf installed and in PATH but it happens for me as well, if I comment a line which binds an up arrow in this plugin then it works ok.

from zsh-autocomplete.

marlonrichert avatar marlonrichert commented on May 18, 2024

@andreypopp Are you sourcing Fzf's keybindings? Without them, the code falls back to using history-search-backward. Simply having Fzf in your path is not enough.

from zsh-autocomplete.

andreypopp avatar andreypopp commented on May 18, 2024

@marlonrichert no, I'm not. Still a bit confusing why it closes the shell on "Up" in that case.

from zsh-autocomplete.

marlonrichert avatar marlonrichert commented on May 18, 2024

OK, you should source Fzf's keybindings if you want zsh-autocomplete to use Fzf for history search. 🙂

As to why calling any of Zsh's history widgets inside another widget closes the shell, I have no idea. It only works if you call them right away, but if you do anything before that, the shell crashes.

from zsh-autocomplete.

marlonrichert avatar marlonrichert commented on May 18, 2024

@DanDobrick @andreypopp I pushed in a fix. Please git pull and let me know if it works for you. 🙂

from zsh-autocomplete.

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.