ammo icon indicating copy to clipboard operation
ammo copied to clipboard

short command aliases

Open duran55 opened this issue 1 year ago • 3 comments

Hi, can you please add two short command aliases: h for help and r for refresh. Thanks.

duran55 avatar Sep 01 '24 17:09 duran55

h is done, it's just not documented in the help menu.

I'll have a think about a short alias for r. Right now the shortest unique identifier for refresh would be ref because we also have rename commands. I'll probably need to rename one of those commands to be able to shorten it to one character.

cyberrumor avatar Sep 21 '24 22:09 cyberrumor

Maybe refresh could be called init, since that's what it does under the hood. Then init could be aliased to i

cyberrumor avatar May 05 '25 19:05 cyberrumor

After having thought about this for quite some time, I think the best way to implement command aliases without overcrowding the help menu would be to add macros, and have macros available from typing /<macro_name> at the prompt. We could probably do aliases there too, like /r, but we could also do things like /aa which would might be made to enable all mods and plugins, sort, and commit.

I think these macros should not show up in the help menu, but perhaps there could be a macro command that explains which macros are available and that they're accessible via /.

This way we're only adding one command to the help menu (macro or similar) so it's generally free from clutter. Then we're free to add whatever aliases/macros/shortcuts we want behind a / prefix.

cyberrumor avatar Oct 07 '25 01:10 cyberrumor