1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Support' started by Gilad Raz, Apr 2, 2013.

  1. Gilad Raz

    Joined:
    Jul 21, 2012
    Messages:
    32
    Likes Received:
    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?
     
  2. Stein Oiestad

    Joined:
    Sep 11, 2012
    Messages:
    56
    Likes Received:
    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....
     
  3. Stein Oiestad

    Joined:
    Sep 11, 2012
    Messages:
    56
    Likes Received:
    1
    Sorry, too fast...
     
  4. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,520
    Likes Received:
    4
    Use the directive
    NormalEditKey=Alt-Z
    to unmap Alt-Z (Help > Configuration > Initialization Files > Directives > Key Mapping Directives > Command Line Editing Keys > NormalEditKey)
     
  5. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,520
    Likes Received:
    4
    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.
     
  6. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,520
    Likes Received:
    4
    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.
     
  7. Gilad Raz

    Joined:
    Jul 21, 2012
    Messages:
    32
    Likes Received:
    0
    Fantastic! Thanks.
     
  8. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,952
    Likes Received:
    30
    This one works here.
    Code:
    NormalEditKey=Alt-Z
     

Share This Page