Menu

#22 ER: Command Aliases

Enhancement Request
open
5
2005-12-02
2005-12-02
No

Allow the user to define aliases for commands. That
way, the short form for /join, /j, won't require a
seperate BeanShell file which is basically a copy of
/join's file.

Two types of aliases:

1. Simple Aliases
Simple aliases just map a short form to a command name.
If the user supplies any arguments when calling the
alias, all arguments are forwarded to the command.
Mappings to other aliases should either be forbidden,
or some sort of algorithm should be implemented to
recognize and prevent circular references leading to an
infinite loop.

2. Complex Aliases
Complex aliases specify a number of arguments and are
mapped to a sequence of commands. Thus it becomes
possible to execute a complex sequence of commands by
typing a single command with two arguments, for instance.

Allow simple and complex aliases to be defined in the
options dialog.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB