AgonConsole8 / agon-mos

Official AGON QUARK Firmware for Console8: eZ80 MOS
MIT License
31 stars 10 forks source link

Command aliases #76

Open stevesims opened 1 month ago

stevesims commented 1 month ago

Building on #54, we should add support for "alias" variables, as per RISC OS, to allow for commands to be aliased

Setting an alias is done like so: *set Alias$xxx yyy which would mean that when the command xxx is entered then yyy will be performed

aliasing is essentially a simple string substitution - so arguments can be set by default against an alias, for instance: *set Alias$longdir dir -l would set up a longdir command, which could be used as just calling longdir or longdir filepattern etc.

We should use this mechanism to provide for the inbuilt aliases that we already have, rather than the current mechanism of just having duplicate entries into the MOS command table

stevesims commented 3 weeks ago

this functionality is present in #91