Charles Dye

Super Moderator
Staff member
May 20, 2008
Albuquerque, NM
Testing with the following command line:
echo %@lower[%_cwd]
With the cursor anywhere on %_CWD, Control-Shift-X expands the variable as expected, and leaves the cursor at the end of the command line. A second press of Control-Shift-X (in hopes of evaluating the function) erases the command line....

Using this command line:
echo %@left[5,The quick brown fox]
Putting the cursor anywhere on %@LEFT[ and pressing Control-Shift-X wipes the command line and displays an error message.

I think this hotkey works better with variables than with functions.
Having gotten rid of "NormalKey=Ctrl-X". With the insertion point on the 'w' of %_cwd in
echo %@lower[%_cwd]
Ctrl-X (no Shift) turns it into
echo v:\
expanding the function as well as the (internal) variable. That's nothing like the help's
Ctrl-X Expand an environment variable
As for Ctrl-Shift-X, it works as advertised when the insertion point is in %_cwd (unlike for Charles) and expands everything when its in @lower; I suppose that's correct. But as Charles observed, when it's in @lower in the command
echo %@lower[v:\]
it erases the command line and leaves
TCC: Syntax error "@lower[v"