-
Notifications
You must be signed in to change notification settings - Fork 14
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
How to *not* choose the abbreviation #11
Comments
try to |
That works! Thank you :) |
@momo-lab |
Please tell me the execution result of the bindkey command. # bindkey | grep "\^X"
"^X^B" vi-match-bracket
"^X^F" vi-find-next-char
"^X^J" vi-join
"^X^K" kill-buffer
"^X^M" accept-line # <- Need this line
"^X^N" infer-next-history
"^X^O" overwrite-mode
"^X^R" _read_comp
"^X^U" undo
"^X^V" vi-cmd-mode
"^X^X" exchange-point-and-mark
"^X " __abbrev_alias::no_magic_abbrev_expand # <- Need this line
"^X*" expand-word
"^X=" what-cursor-position
"^X?" _complete_debug
"^XC" _correct_filename
"^XG" list-expand
"^Xa" _expand_alias
"^Xc" _correct_word
"^Xd" _list_expansions
"^Xe" _expand_word
"^Xg" list-expand
"^Xh" _complete_help
"^Xm" _most_recent_file
"^Xn" _next_tags
"^Xr" history-incremental-search-backward
"^Xs" history-incremental-search-forward
"^Xt" _complete_tag
"^Xu" undo
"^X~" _bash_list-choices |
It seems I have the two lines, but I still unable to avoid the expand
|
There seems to be no problem with the definition of bindkey. Since abbrev-alias also registers If you want to suppress the registration of alias, there are currently the following workarounds.
|
If |
The problem with |
I like the idea of this plugin a lot and want to move change all my aliases to this. However, i'm stuck with one use case. Say i have an abbrev defined like this:
abbrev-alias -g gs="git status"
Typing
gs<SPACE>
orgs<ENTER>
will expand the abbreviation, wonderful. But what if I want to run the commandgs
(ghostscript)? Is there a binding that will cancel the attempt to abbreviate?The text was updated successfully, but these errors were encountered: