helix-editor / helix

A post-modern modal text editor.
https://helix-editor.com
Mozilla Public License 2.0
33.64k stars 2.5k forks source link

Abbreviation #1471

Open pickfire opened 2 years ago

pickfire commented 2 years ago

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.

lazytanuki commented 1 year ago

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.

rajasegar commented 1 year ago

@lazytanuki The last commit on the snippets branch was on October last year. Is the branch actively developed?

TornaxO7 commented 7 months ago

Just mentioning: Here's the most up-to-date implementation of the snippet system