Giter VIP home page Giter VIP logo

Comments (6)

marlonrichert avatar marlonrichert commented on June 16, 2024 1

Fixed.

from zsh-snap.

marlonrichert avatar marlonrichert commented on June 16, 2024

This is not a bug in zsh-autocomplete, but actually an incompatibility between Prezto and Znap. I should be able to fix it, though.

from zsh-snap.

patrickli avatar patrickli commented on June 16, 2024

Thanks for this. However I feel like this is too much of a hack.

  • This fix is specifically for people who use znap. If they don't then they will still encounter this problem.

  • Would it be easier if you just check if the menuselect keymap exists? If not just recreate it. I'm not too familiar with how zsh works so that might be an invalid idea.

from zsh-snap.

patrickli avatar patrickli commented on June 16, 2024

@marlonrichert I think I've made this bug report in the wrong place. This shouldn't be the job for a plugin manager.

How about we revert this and I will create an issue in zsh-autocomplete? Maybe I'll even do a PR.

Sorry for the trouble.

from zsh-snap.

marlonrichert avatar marlonrichert commented on June 16, 2024

@patrickli

This fix is specifically for people who use znap. If they don't then they will still encounter this problem.

No, they won’t. I tested it and the bug doesn’t occur without Znap.

I think I've made this bug report in the wrong place. This shouldn't be the job for a plugin manager.

You filed this bug report against zsh-autocomplete, but I transferred it to the Znap repo, because of the reason above.

Would it be easier if you just check if the menuselect keymap exists? If not just recreate it. I'm not too familiar with how zsh works so that might be an invalid idea.

No, that wouldn’t work. Zsh doesn’t let you run a module more than once. What I’m doing instead is to run the complist module on demand when any code tries to modify the menuselect keymap. That was already the intention of the old code; I’m just doing it a bit more smartly now.

How about we revert this and I will create an issue in zsh-autocomplete? Maybe I'll even do a PR.

The problem does not lie in zsh-autocomplete. The problem is that Znap calls zmodload zsh/complist, which (among other things) initializes the menuselect keymap, but then Prezto calls bindkey -d, which resets all keymaps to default state and deletes all non-default keymaps.

I fixed it by making it so that complist gets called only when any code actually tries to use the menuselect keymap (instead of calling it the first time bindkey gets called).

from zsh-snap.

patrickli avatar patrickli commented on June 16, 2024

OK understood. Thanks for the explanation.

from zsh-snap.

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.