Welcome!

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

SignUp Now!

Sync Folder Tree and Command Window?

Jul
325
1
Is it possible to sync those two so that when I am in TCMD the two are at the same place all the time?

Regards,
Chuck Billow
 
Is it possible to sync those two so that when I am in TCMD the two are at the same place all the time?

You want the folder view to follow TCC's current directory? I imagine you could do that using CDD /TO %_CWD in e.g. the PRE_INPUT alias. Though I haven't tried it.

Or do you want the other way, TCC's current directory following the folder window? Somehow that seems like a Bad Plan to me....
 
You want the folder view to follow TCC's current directory? I imagine you could do that using CDD /TO %_CWD in e.g. the PRE_INPUT alias. Though I haven't tried it.

Or do you want the other way, TCC's current directory following the folder window? Somehow that seems like a Bad Plan to me....

No, you're right the first time Charles. I used the tree to get to where I'm going and then work in the window, which often ends up taking me somewhere "new."

Chuck
 
CWBillow wrote:
| Is it possible to sync those two so that when I am in TCMD the two
| are at the same place all the time?

Sorry, what two should be in the same place? Not in msg body!
--
Steve
 
Steve, I apologize: the folder tree and the command window -- so that if I am in the folder tree and move to C:\Windows, the window will reflect the same folder location.

Chuck

CWBillow wrote:
| Is it possible to sync those two so that when I am in TCMD the two
| are at the same place all the time?

Sorry, what two should be in the same place? Not in msg body!
--
Steve
 
...so that if I am in the folder tree and move to C:\Windows, the window will reflect the same folder location.

Chuck
It sounds like he wants to click on a folder in the Folder View and have the CWD of the command line change to the folder selected in Folder View.
 
> ---Quote (Originally by ccb)---
> It sounds like he wants to click on a folder in the Folder View and have
the

> CWD of the command line change to the folder selected in Folder View.
> ---End Quote---
>
> Exactly!

It can be done (but you really don't want to do it!). People periodically
ask for either this or the reverse (moving the folder to match the CWD of
the command line), but they invariably change their minds after trying it.

There are several serious drawbacks:

1) It will only work with TCC. No CMD, bash, PowerShell, etc.

2) It is a really, really, really bad idea to try it if you have more than
one tabbed window.

3) TCC can only change its directory after executing a command line. You
REALLY don't want TCC doing it in the middle of a command.

4) It will make drag & drop between the view windows & the TCC windows
useless.

But if you want personally experience the pain before deciding it was a bad
idea, see "Take Command and TCC Integration" in the help.

Rex Conn
JP Software
 
Rex, that's fine, I don't need to try it. I can see your point and defer to your experience.

Thanks,
Chuck

the



It can be done (but you really don't want to do it!). People periodically
ask for either this or the reverse (moving the folder to match the CWD of
the command line), but they invariably change their minds after trying it.

There are several serious drawbacks:

1) It will only work with TCC. No CMD, bash, PowerShell, etc.

2) It is a really, really, really bad idea to try it if you have more than
one tabbed window.

3) TCC can only change its directory after executing a command line. You
REALLY don't want TCC doing it in the middle of a command.

4) It will make drag & drop between the view windows & the TCC windows
useless.

But if you want personally experience the pain before deciding it was a bad
idea, see "Take Command and TCC Integration" in the help.

Rex Conn
JP Software
 
On 7/24/2011 3:17 PM, rconn wrote:

> ---Quote---
>> ---Quote (Originally by ccb)---
>> It sounds like he wants to click on a folder in the Folder View and have the CWD of the command line change to the folder selected in Folder View.
>> ---End Quote---
>>
>> Exactly!
> ---End Quote---
> It can be done (but you really don't want to do it!). People periodically
> ask for either this or the reverse (moving the folder to match the CWD of
> the command line), but they invariably change their minds after trying it.
>
> There are several serious drawbacks:
>
> 1) It will only work with TCC. No CMD, bash, PowerShell, etc.
>
> 2) It is a really, really, really bad idea to try it if you have more than
> one tabbed window.
>
> 3) TCC can only change its directory after executing a command line. You
> REALLY don't want TCC doing it in the middle of a command.
>
> 4) It will make drag& drop between the view windows& the TCC windows
> useless.
>
> But if you want personally experience the pain before deciding it was a bad
> idea, see "Take Command and TCC Integration" in the help.
>

Personally, I *love* having TCMD's path follow TCC.

#1 I only use TCC (and very occasionally, CMD) under TCMD. A lot of
stuff doesn't work under CMD, so having this functionality break under
CMD isn't a big deal. I occasionally use PowerShell scripts, but never
as a command line interpreter.

#2 is alright, since I just have to hit "<dot><enter>" (an alias) to
refresh if needed. I mostly *use* a single tab anyway, even if I have
other tabs open. I'd love to have TCMD remember and adjust the view per
tab, but it's not worth arguing over.

#3 had never occurred to me (and I'd agree, sounds annoying)

#4 If I wanted to drag and drop, I'd use Explorer anyway. I can usually
tab-complete my way through a complete path in less time than it takes
me to grab my mouse, find the cursor and start to do anything. For drag
and droppers, having it update automatically might be annoying.

The benefit to me is that I can see a real time listing of the current
directory. It's virtually replaced my compulsive "DIR" statements.
I've been using this configuration since I figured out how, and aside
from getting annoyed when it doesn't work (UNC paths, iFTP, etc) it
meets my needs well.

I can understand how users might not want this behaviour in all cases,
but for me, it suits my needs.

I'm also not requesting any features or changes here, I've built
something useful out of the prompt command and a couple aliases, but I
disagree with the statement that they "invariably change their minds
after trying it"
 
On 7/24/2011 6:34 PM, David Marcus wrote:

> ---Quote (Originally by thedave)---
> The benefit to me is that I can see a real time listing of the current directory. It's virtually replaced my compulsive "DIR" statements.
> ---End Quote---
> That does sound useful. How exactly have you set it up?
>

Add this to your PROMPT:

%@if[%_tctab,%%@exec[@*CDD /to %@quote[%_cwd]],]

The IF avoids displaying errors if you're ever not in a TCC tab.

I also use this alias:

/=*CDD %_TCFOLDER

This will change the current directory to match TCC's directory, if it's
different. In other words, if I navigate elsewhere in the UI and want
to change the command prompt to match, I type "/<enter>"
 
Back
Top
[FOX] Ultimate Translator
Translate