-
Notifications
You must be signed in to change notification settings - Fork 29
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
Figure out what to do about abbreviations in modes other than insert mode #205
Comments
If you're looking for a quick partial solution, you could try digraphs ( |
Another option is finding a way to enable abbreviations in the |
What I want to try here as a first pass is via https://github.com/hrsh7th/cmp-cmdline -- specifically after #140, it should be possible to expand abbreviations in cmdline or search mode by just enabling that (which seems to work well for other cmp sources). |
What |
Yep I saw that, probably a good idea too. |
I've taken a strong interest in this recently. I was thinking that abbreviations are a more lightweight kind of snippet, but of course there isn't a one-to-one correspondence -- for example snippet completion is triggered on command while abbreviation completion is automatic, and there's no notion of reverse-lookup for snippets. The builtin Overall, I feel like the correct approach is to extend a plugin like LuaSnip for our purposes, then we could get other goodies like abbreviation autocompletion in the command line and search. And it has the " So, I think that going in this direction could eventually get this and #117 working, but let me know if you had something else in mind. |
Doesn't get all the way there for e.g. /, but at least gives one simple way to search with abbreviation support. See :h q/ if you haven't previously used the cmdline window. Ref: #205
It's quite annoying to search for non-ASCII characters via
/
, for instance, because you have to have yanked the character you're looking for ahead of time.Possibly there's some solution we can think of that'd allow abbreviations in more places. Nothing has occurred to me so far the past few months, but it may be there are things we can try.
The text was updated successfully, but these errors were encountered: