Page 1 of 1

[WISH] do same action at once on both panels

Posted: 2006-11-16, 14:39 UTC
by jjk
I often compareDirs (cm_CompareDirs). Then to restore previous situation (eg. display all files then unselect all files on both panels) I have too many operations to do : 1) cm_LeftAllFiles 2) cm_RightAllFiles 3) goto left panel 4) cm_ClearAll (left panel) 5) goto right panel 6) cm_ClearAll (right panel).
I'd wish a solution to minimize the number of these operations.
I see 3 possibilities :
1) to be able to execute many internal commands at once (eg. in command line enter "cm_LeftAllFiles cm_RightAllFiles cm_FocusLeft cm_ClearAll cm_FocusRight cm_ClearAll"). One would be able to create a usercmd which contains all these internal commands.
2) to have cm_bothXXXX similar to all internal commands cm_leftXXXX but for the two panels
3) to have a flag (a bit like cm_SyncChangeDir), say cm_bothToggle. If on, cm_leftXXXX acts like cm_leftXXXX followed by cm_rightXXXX

What do you think ?

Posted: 2006-11-16, 15:54 UTC
by Sosna
1. TC won't execute more than 1 command simultaneously, because of risk of using same files and interference of their actions.
2. maybe, but than we should check if two deifferent folders are selected
3. don't understand you, what is it for?

Posted: 2006-11-16, 16:30 UTC
by Hacker
jjk,
Well, for now we use AutoHotkey for such tasks.

Roman

Posted: 2006-11-17, 07:48 UTC
by jjk
2Hacker
Well, for now we use AutoHotkey for such tasks
Yes, I tried code like this :

Code: Select all

!n::
;Alt-n
IfWinActive ahk_class TTOTAL_CMD
{
;send cm_clearAll
PostMessage, 1075, 524, , , ahk_class TTOTAL_CMD
;send cm_SrcAllFiles
PostMessage, 1075, 312, , , ahk_class TTOTAL_CMD
sleep,100
send, {Tab}
;idem on other pane
PostMessage, 1075, 524, , , ahk_class TTOTAL_CMD
PostMessage, 1075, 312, , , ahk_class TTOTAL_CMD
sleep,100
send, {Tab}
}
return
It works with Alt-N as AHK hotkey. With a Ctrl hotkey, here it works bad (it runs on each tab).

2Christian
Could you add
1) a system of usercmd which executes two or more internal commands in a row (separated by a blank)
2) cm_bothPanesXXXX for each ad hoc cm_scrXXXX

2Sosna

Code: Select all

1. TC won't execute more than 1 command simultaneously, because of risk of using same files and interference of their actions.
What I ask is only for cm_srcXXXX related to display, then no risk of interference.
to have a flag (a bit like cm_SyncChangeDir), say cm_bothToggle. If on, cm_leftXXXX acts like cm_leftXXXX followed by cm_rightXXXX
With cm_SyncChangeDir on, actually you go to the same subdir on both panes. With cm_bothToggle, while it is on, we could have the same display (same filter, same agencement of columns, same order of sort,...) on both panes. That is, the src display (filetr, sort...) would be applied automatically to other pane.

Posted: 2006-11-25, 23:01 UTC
by m^2
I wrote a quick and dirty solution.
Click.

Posted: 2006-11-26, 18:49 UTC
by jjk
I wrote a quick and dirty solution.
Cool. I've not yet tested it, but anyway, thanks.

Posted: 2006-11-30, 11:44 UTC
by Marieke
Mistake...how do i remove a post?

Posted: 2006-12-04, 12:04 UTC
by Marieke
m^2 wrote:I wrote a quick and dirty solution.
Click.
Many Thanks from Holland - (We love Quick and Dirty Solutions)