Hilbish icon indicating copy to clipboard operation
Hilbish copied to clipboard

feat: abbreviations

Open TorchedSammy opened this issue 9 months ago • 3 comments

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

TorchedSammy avatar May 03 '24 02:05 TorchedSammy

I'm going to do this, do you have any recommendations? I haven't looked at the project code in a while

perospirone avatar May 05 '24 03:05 perospirone

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.

TorchedSammy avatar May 05 '24 15:05 TorchedSammy

ok, tomorrow I'll start doing that!

perospirone avatar May 07 '24 02:05 perospirone