Skip to content
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

feat: abbreviations #299

Open
TorchedSammy opened this issue May 3, 2024 · 3 comments
Open

feat: abbreviations #299

TorchedSammy opened this issue May 3, 2024 · 3 comments

Comments

@TorchedSammy
Copy link
Member

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 TorchedSammy added this to the v2.4 (Celandine) milestone May 3, 2024
@perospirone
Copy link
Contributor

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

@TorchedSammy
Copy link
Member Author

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.

@perospirone
Copy link
Contributor

ok, tomorrow I'll start doing that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants