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

(Filename and)Directory completion keystroke: "stop cycling here and cycle through one level deeper"

Discussion in 'Suggestions' started by mfarah, Jul 20, 2017.

  1. mfarah

    Joined:
    Nov 2, 2009
    Messages:
    226
    Likes Received:
    5
    Say I am on the the directory C:\Users\Miguel (the tree is full of subdirectories on each level) and need to change to C:\Users\Miguel\Documents\example\further\down\the\line . I'll end typing something like:

    cd <tab> [n times, until getting to further ] <space> <backspace> <tab> [n times, until getting to down ] <space> <backspace> <tab> [n times, until getting to the ] <space> <backspace> .....

    I'd like to have a keystroke (say, F9) to tell TCC to stop cycling on "this" directory and immediately start cycling on its contents.

    cd <tab> [n times, until getting to further ] <F9> <tab> [n-1 times, until getting to down ] <F9> <tab> [n-1 times, until getting to the ] <F9> .....

    This would be rather more comfortable to use, and even more so in the cases where there's exactly one subdirectory under the "current" one:

    cd <F9> <F9> <F9> <F9> DONE!
     
  2. TEA-Time

    Joined:
    Jun 2, 2008
    Messages:
    282
    Likes Received:
    1
    Do you mean <backslash>?
     
  3. mfarah

    Joined:
    Nov 2, 2009
    Messages:
    226
    Likes Received:
    5
    No. <space> then <backspace>, so TCC will break the cycling and start anew under the subdirectory. Although typing <backspace> <backslash> has the same effect.
     
  4. TEA-Time

    Joined:
    Jun 2, 2008
    Messages:
    282
    Likes Received:
    1
    Ah, I have "Add '\' to Directories" unchecked and Options set to "cd cdd rd:dirs", so just a backslash is needed to start on the next level down, but one key to go the next level down and display the 1st directory would definitely be handy.
     
  5. mfarah

    Joined:
    Nov 2, 2009
    Messages:
    226
    Likes Received:
    5
    Indeed. Also, the US layout has the \ key as a base assignment, but on the Spanish layouts (all of them, and several others in other languages) it's on an AltGr assignment, so it's not as direct.
     
  6. TEA-Time

    Joined:
    Jun 2, 2008
    Messages:
    282
    Likes Received:
    1
    Interesting...
     
  7. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,287
    Likes Received:
    39
    Asterisk, Tab? Well, that's two keystrokes.
     
  8. samintz

    samintz Scott Mintz

    Joined:
    May 20, 2008
    Messages:
    1,188
    Likes Received:
    11
    I typically just hit <End> then <Tab>.

    I tried to create a keystroke alias, but I cannot get ^i to be expanded as a tab. I can press Ctrl+I and it works like the TAB key. But ^i unlike ^e, doesn't work.
     
  9. dcantor

    Joined:
    May 29, 2008
    Messages:
    507
    Likes Received:
    3
    Try ^t.
     
  10. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,287
    Likes Received:
    39
    Oh, elegant! I was thinking keystroke plugin, but your way is much simpler.
     
  11. samintz

    samintz Scott Mintz

    Joined:
    May 20, 2008
    Messages:
    1,188
    Likes Received:
    11
    Is there someplace in the help that shows all the magic ^ combos? Or did you just happen to guess that?
     
  12. samintz

    samintz Scott Mintz

    Joined:
    May 20, 2008
    Messages:
    1,188
    Likes Received:
    11
    a very simple keystroke alias that works is:
    alias F9=\^t

    However, when the end of the tree is reached, that keeps tacking on backslashes. If there's a ^ combo that says "go to the end of the line" or a way to specify <Space><backspace> that would eliminate the extra \'s.
     
  13. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,287
    Likes Received:
    39
    Try HELP ESCAPE.
     
  14. samintz

    samintz Scott Mintz

    Joined:
    May 20, 2008
    Messages:
    1,188
    Likes Received:
    11
    Nifty!
    I was not able to get <space><backspace><tab> to work. But, <backspace>\<tab> does.
    alias @F9=^b\^t
     

Share This Page