Control-Shift-X

Charles Dye

Super Moderator
Staff member
May 20, 2008
3,716
47
Albuquerque, NM
prospero.unm.edu
#1
Testing with the following command line:
Code:
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:
Code:
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.
 
#3
Having gotten rid of "NormalKey=Ctrl-X". With the insertion point on the 'w' of %_cwd in
Code:
echo %@lower[%_cwd]
Ctrl-X (no Shift) turns it into
Code:
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
Code:
echo %@lower[v:\]
it erases the command line and leaves
Code:
TCC: Syntax error "@lower[v"