49
edits
(Created page with "{{dev/uiccmd}} Creates a new key binding, replacing existing key binding if any. <kua>bind Z "echo fred"</kua> == Arguments == * name - name of binding, which corresponds to a particular key, button, or other device. * value (optional) - script string or command to run. If not supplied, then prints the script or command value, if the binding exists. == Associations == *Key bindings are global, and not a part of any context. == Details == An 'alias' acts like a custom...") |
No edit summary |
||
| Line 11: | Line 11: | ||
== Details == | == Details == | ||
A 'bind' acts like a custom command for a key. It runs the assigned text as a script, which can contain a single-word command, statement, or script. | |||
Aliases do not have any parameters and will run the command, statement, or script verbatim. If for example, an alias named 'bob' is set to 'echo', it will always run exactly 'echo' which will print nothing, even if you run 'bob "some text". Here the second parameter was ignored. | Aliases do not have any parameters and will run the command, statement, or script verbatim. If for example, an alias named 'bob' is set to 'echo', it will always run exactly 'echo' which will print nothing, even if you run 'bob "some text". Here the second parameter was ignored. | ||