-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] unexpected behavior when ABBR_EXPANSION_CURSOR_MARKER
set to caret
#140
Comments
ABBR_EXPANSION_CURSOR_MARKER
set to caretABBR_EXPANSION_CURSOR_MARKER
set to caret
Instead of fixing this bug and supporting a caret as I did change the default By the way, after reading the documentation again, I learned about "context-dependent abbreviations" and "building command templates", which are both very cool features! |
Good idea. Rather than doing that exactly, I've added callouts for a few limitations |
For future reference: changing the special character to
|
Previously, setting one or both markers to '+' resulted in an error: > zsh: failed to compile regex: repetition-operator operand invalid And when one or both markers was '^', expansions without the cursor marker were doubled, with the cursor between them.
The upcoming v6.0.0 will fix this |
Nice. I'm looking forward to v6. I guess I'll stick to using that Unicode character though, as I'll never use it in a command, unlike the caret. |
Cool yeah I like the idea of using a Unicode character that I'd have to paste, that I can't type Released in v6.0.0 |
Is there an existing issue for this?
Update the issue title
Expected Behavior
Can use an arbitrary string as the
ABBR_EXPANSION_CURSOR_MARKER
.Actual Behavior
If
ABBR_EXPANSION_CURSOR_MARKER
is^
,\^
,'^'
, expansions without the cursor marker are doubled, with the cursor between them.Steps To Reproduce
Environment
Installation method
Plugin manager
Installation method details
zcomet
Anything else?
!
is escaped in v5, but wasn’t in v4 #84The text was updated successfully, but these errors were encountered: