You can use the evaluator to override the default behaviour of the Go USEQUALKEYS command.
Normally this auto-generates buttons that read a folder normally, in a dual display (with the Ctrl key), in a new tab (with the Alt key), or in a new Lister (with the Shift key).
The evaluator clause can return a string to replace the default arguments of the Go command and implement its own behaviour.
This is configured from via the go_usequalkeys_eval Advanced Preferences option.
In this evaluation context, the following variables are available:
Variable | Type | Description |
---|---|---|
alt |
bool |
True if the Alt key is down. |
ctrl |
bool |
True if the Ctrl key is down. |
shift |
bool |
True if the Shift key is down. |
cmdline |
string |
Provides the original command line for the function. |
The return value should be a string consisting of valid arguments for the Go command.
E.g., if (shift) return "NEW";.