Hilbish
Hilbish copied to clipboard
feat: abbreviations
abbreviations are an alternative to aliases which are (short) words that are expanded when entered. this can be done on the space key or enter key (user selectable).
example:
if a user sets an abbreviation gp
to be git push
, when typing gp
and then the space and/or enter key, it will expand to git push
. this means the expanded form will be saved to history instead
I'm going to do this, do you have any recommendations? I haven't looked at the project code in a while
look at line 848 (seqAltDelete) which deletes a word. then you can just insert the expanded version. of course you have to check if the last word is a valid abbreviation.
ok, tomorrow I'll start doing that!