Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Use Ctrl-Up to change to parent directory

Jun
877
18
I have a keystroke alias

@@Ctrl-Up=*cd ..

In 36.50, it doesn't work. It seems Shell Integration is using Ctrl-Up. In TCMD Options > Advanced, I unchecked "Command Output Folding" and "Show Marks and Result". Did not help. I checked TCC Options > Keyboard, but don't see Ctrl-Up assigned to any command. I assigned Ctrl-Up to TCC Options > Keyboard > System > ParentDirectory. But, Ctrl-Up still does not work.

(I guess ParentDirectory is the same as my alias. Maybe I started using the alias before ParentDirectory existed or I didn't realize it existed.)

TCC 36.50.68 x64 Windows 11 [Version 10.0.26200.8655]
 
I am not going to change the Ctrl-Up / Ctrl-Down handling, as Microsoft has decreed it to be the standard for shell integration. So you might want to get used to it and find another keystroke combo for your parent directory alias.

TCMD does not do anything with those keys if shell integration is not enabled; however TCC always enables integration. (Telling TCMD to ignore ANSI integration sequences doesn't stop TCC from sending them.)

However, I have made a change for build 69 that if prompt marks are disabled, TCMD will not try to process Ctrl-Up / Ctrl-Down itself, but will pass them on to the console app.
 
Is this all there is to shell integration? TCMD is still processing Ctrl+Up.

1782924937763.webp
 
Thanks. (Microsoft didn't ask me whether I wanted shell integration.) Until version 69 is released, I thought I'd use Ctrl-Shift-Up. But it doesn't seem to work in TCMD or in TCC in Windows Terminal.

If I'm trying to find which command is using a key, the Options UI isn't convenient since you have to go through all the categories and all the commands in each category. Are all the key bindings in the ini file so I could just search there?
 
Last edited:
I have ParentDirectory=Ctrl-Shift-Up in the INI file's [4NT]. That only works in a console. In WT it scrolls (no surprize). It does nothing in TCMD. What's up with that?
 
I have ParentDirectory=Ctrl-Shift-Up in the INI file's [4NT]. That only works in a console. In WT it scrolls (no surprize). It does nothing in TCMD. What's up with that?

Oh, I see. It acts like Ctrl-Up. ... with either Ctrl key.
 
Considering I generally do Ctrl-Up several times an hour (and have been doing so for decades), I would like a keystroke that works in both TCMD and TCC in Windows Terminal (since I've been letting Windows use Windows Terminal for TCC, since it wants to). If I need to change, I could. But, what is a good choice?
 
TCC's built-in keystroke to do the same thing is Ctrl-Shift-Up. You can use that if you disable Windows Terminal's keybinding:

terminal-fix.webp
 
Ctrl-Shift-Up does not work for me in a TCMD tab. I do have it set in Options > TCC > Keyboard > System > ParentDirectory.
 
I am hoping that will change in build 69 — at least, if prompt marks are disabled. I use Ctrl-Shift-Up a lot myself.

But we'll just have to wait and see.
 
Back
Top