GithubHelp home page GithubHelp logo

Comments (16)

mavam avatar mavam commented on August 10, 2024 2

Looks like you're loading the plugin via zplug, Adding defer:2 fixed it for me:

zplug 'knu/zsh-manydots-magic', use:manydots-magic, defer:2

from zsh-manydots-magic.

twang817 avatar twang817 commented on August 10, 2024 2

You guys might take a look at this hack that I did to solve the problem for me:

twang817@6525d31

from zsh-manydots-magic.

knu avatar knu commented on August 10, 2024

I'm not using zplug. Is there anything I can do in manydots-magic?

from zsh-manydots-magic.

mavam avatar mavam commented on August 10, 2024

Good question. The error message that crept up was probably occurring due to the order of how packages are loaded. The defer directive changes that order. In the README, you write:

If you are enabling url-quote-magic, make sure to load url-quote-magic first and then load manydots-magic.

I assume that this was the culprit.

from zsh-manydots-magic.

Jomik avatar Jomik commented on August 10, 2024

@mavam I wasn't enabling url-quote-magic at the time.
I've however gone to using fish shell now.

from zsh-manydots-magic.

Virako avatar Virako commented on August 10, 2024

I fixed the error with the next: https://unix.stackexchange.com/questions/368231/going-over-start-of-insert-action-in-z-shell-vi-mode

from zsh-manydots-magic.

twang817 avatar twang817 commented on August 10, 2024

I've solved this problem for myself by loading it after zsh-autosuggestions:

zinit wait'0c' for \
    atload'_zsh_autosuggest_start' zsh-users/zsh-autosuggestions \
    pick'manydots-magic' compile'manydots-magic' knu/zsh-manydots-magic \
    ;

EDIT: I actually think this may be in conflict with fast-syntax-highlighting, not zsh-autosuggestions.

from zsh-manydots-magic.

protist avatar protist commented on August 10, 2024

It looks like the recent zsh update to 5.8.1 has broken this for me too. Every time I press backspace, I get the same error and cannot delete text. I tried reverting to zsh 5.8 and backspace works perfectly again.

I'm not using zplug or url-quote-magic. I don't really understand either fix proposed by the two previous commentors, but this might be something new and unrelated anyway.

from zsh-manydots-magic.

knu avatar knu commented on August 10, 2024

You need to respawn the shell after upgrading zsh as long as you use autoload. It's not specific to this widget.

from zsh-manydots-magic.

protist avatar protist commented on August 10, 2024

@knu Sorry I'm not entirely sure what you mean. Do you mean if I open a new zsh shell, then it should work fine? If so, this doesn't work for me. I am using the autoload method.

from zsh-manydots-magic.

protist avatar protist commented on August 10, 2024

I'm also using zim, and I thought I should update reinstall this too. After updating reinstalling, I can use the backspace key fine now (I don't get the error), but backspace just does its "normal" role, and doesn't delete groups of /..

from zsh-manydots-magic.

knu avatar knu commented on August 10, 2024

@protist Do you happen to have zsh-autosuggestions installed? I confirmed that zsh-autosuggestions overwrites LASTWIDGET that manydots-magit uses to know if backspace should delete the last /.. part. With it disabled, manydots-magic works fine for me including the backspace behavior.

from zsh-manydots-magic.

knu avatar knu commented on August 10, 2024

I think I'll loosen the conditions so that it only checks if LBUFFER ends with ../.. to see if backspace should delete the last /.. part.

from zsh-manydots-magic.

protist avatar protist commented on August 10, 2024

@knu Yes, that is exactly it! If I disable zsh-autosuggestions, manydots-magic's backspace functionally does indeed work. Thanks for the detective work!

from zsh-manydots-magic.

protist avatar protist commented on August 10, 2024

Thank @twang817. I can confirm that with this fork I can both use zsh-autosuggestions and manydots-magic's backspace still works.

from zsh-manydots-magic.

kergoth avatar kergoth commented on August 10, 2024

You guys might take a look at this hack that I did to solve the problem for me:

twang817@6525d31

Just as an FYI, with your fork I get this instead:

_zsh_autosuggest_bound_1_manydots-magic.self-insert:74: maximum nested function level reached; increase FUNCNEST?

from zsh-manydots-magic.

Related Issues (4)

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.