How to? v15: Can't alias Alt-Z

Jul 21, 2012
32
0
I historically use this alias:
@@Alt-Z @dir

Now with v15, Alt-Z is bound to Undo. Tried to reconfigure it to use Ctrl-Z in TCMD.INI, but this just adds Ctrl-Z as Undo - doesn't unbind Alt-Z. Can't use Alt-Z for my alias.

Any ideas?
 
Sep 11, 2012
88
1
As a preliminary solution: Remap Alt-Z to another key in your TCMD.INI - I am not sure if a "permanent solution" is acutally necessary....
 
May 20, 2008
3,520
3
Elkridge, MD, USA
Use the directive
NormalEditKey=Alt-Z
to unmap Alt-Z (Help > Configuration > Initialization Files > Directives > Key Mapping Directives > Command Line Editing Keys > NormalEditKey)
 
May 20, 2008
3,520
3
Elkridge, MD, USA
As a preliminary solution: Remap Alt-Z to another key in your TCMD.INI - I am not sure if a "permanent solution" is acutally necessary....
You cannot "remap" a key which is assigned a special function; what you need to do is unmap the key. A key which is mapped as the default to perform a specific action is during a specific phase of TCC operation is unmapped by one of the directives NormalKey, NormalEditKey, NormalListKey, or NormalPopupKey. See HELP for the list of key mappings and the applicability of each of these unmapping directives.
 
May 20, 2008
3,520
3
Elkridge, MD, USA
Oh, and you can always assign more than one key to a specific operation. Assigning the same key to more than one operation in the same input phase is an error; typically the first assigned operation results, but there are no guarantees.