Comments (16)
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.
You guys might take a look at this hack that I did to solve the problem for me:
from zsh-manydots-magic.
I'm not using zplug. Is there anything I can do in manydots-magic?
from zsh-manydots-magic.
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 loadurl-quote-magic
first and then loadmanydots-magic
.
I assume that this was the culprit.
from zsh-manydots-magic.
@mavam I wasn't enabling url-quote-magic at the time.
I've however gone to using fish shell now.
from zsh-manydots-magic.
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.
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.
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.
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.
@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.
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.
@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.
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.
@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.
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.
You guys might take a look at this hack that I did to solve the problem for me:
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zsh-manydots-magic.