[WISH] do same action at once on both panels

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
jjk
Member
Member
Posts: 181
Joined: 2003-07-03, 10:41 UTC

[WISH] do same action at once on both panels

Post 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 ?
User avatar
Sosna
Member
Member
Posts: 143
Joined: 2006-10-24, 10:52 UTC

Post 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?
Ave Caesar Imperator,
moritari te salutant!
User avatar
Hacker
Moderator
Moderator
Posts: 13068
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

jjk,
Well, for now we use AutoHotkey for such tasks.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
jjk
Member
Member
Posts: 181
Joined: 2003-07-03, 10:41 UTC

Post 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.
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

I wrote a quick and dirty solution.
Click.
Last edited by m^2 on 2006-11-30, 14:32 UTC, edited 1 time in total.
jjk
Member
Member
Posts: 181
Joined: 2003-07-03, 10:41 UTC

Post by *jjk »

I wrote a quick and dirty solution.
Cool. I've not yet tested it, but anyway, thanks.
User avatar
Marieke
Junior Member
Junior Member
Posts: 69
Joined: 2006-05-17, 18:55 UTC
Location: Alkmaar
Contact:

Post by *Marieke »

Mistake...how do i remove a post?
Last edited by Marieke on 2006-12-04, 12:06 UTC, edited 1 time in total.
Groetjes - Marieke P. - #117942
User avatar
Marieke
Junior Member
Junior Member
Posts: 69
Joined: 2006-05-17, 18:55 UTC
Location: Alkmaar
Contact:

Post by *Marieke »

m^2 wrote:I wrote a quick and dirty solution.
Click.
Many Thanks from Holland - (We love Quick and Dirty Solutions)
Groetjes - Marieke P. - #117942
Post Reply