helix
helix copied to clipboard
Abbreviation
Describe your feature request
Add support for vim like abbr where as you type you can get the abbreviation. Also, it needs a mechanism to cancel out the abbreviation. For example, :abbr ctx context, then when you type ctx it will be changed to context.
Following a discussion on Matrix with @pascalkuthe about #3023, we came to the conclusion that abbreviations should be implemented as special snippets that trigger instantaneously. It would also require to implement a command to define them on-the-fly.
We'll have to wait for the snippet engine (for anyone wondering about it, there's a snippet branch where it is currently being developed).
For the impatient: feel free to merge #3023 into you own custom forks until we have this in the snippet engine.
@lazytanuki The last commit on the snippets branch was on October last year. Is the branch actively developed?
Just mentioning: Here's the most up-to-date implementation of the snippet system