Possible to take View Mode in Source panel into account for a View Mode?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
hi5
Power Member
Power Member
Posts: 640
Joined: 2012-11-03, 11:35 UTC
Contact:

Possible to take View Mode in Source panel into account for a View Mode?

Post by *hi5 »

I have a View Mode that switches to cm_100Percent 70|cm_50Percent which is what I want, but what I'd like to see as well:

When I make the target & source panels the same (via Ctrl+Right/Left for example) what happens now is that the target panel becomes 70 percent wide.

What I'd actually like to see is when the view mode for both panels is the same, set the width to 50% automatically.

I tried to assign this to ctrl+right/left:

cm_TransferLeft,cm_50Percent
cm_TransferRight,cm_50Percent

but I don't think/see that works as it applies the view mode immediately afterwards so it sets it 70% in the target panel (as it matches the view mode 70% trule)

Is there a "rule" or method that you can apply that can look at the view mode in the source panel and then apply a rule based on that?
E.g. something like:

Code: Select all

If View Mode Source = My70PercentRule
Then cm_50Percent
I know I can create a button/shortcut to apply cm_50Percent manually, but automatically would be ideal of course.

If there isn't an automatic method, my suggestion would to introduce a new "Rule" in the Auto Switch Mode set up:

Code: Select all

< : Source Panel: View Mode   [select view mode listbox] 
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
User avatar
petermad
Power Member
Power Member
Posts: 16033
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Possible to take View Mode in Source panel into account for a View Mode?

Post by *petermad »

2hi5
Try and change:

Code: Select all

cm_TransferLeft,cm_50Percent
cm_TransferRight,cm_50Percent
in your usercmd.ini to:

Code: Select all

cm_TransferLeft,cm_Wait 100,cm_50Percent
cm_TransferRight,cm_Wait 100,cm_50Percent
It works for me.

And then I would suggest to also assign cm_MatchSrc to

Code: Select all

cm_MatchSrc,cm_Wait 100,cm_50Percent
Last edited by petermad on 2021-05-28, 20:34 UTC, edited 2 times in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
hi5
Power Member
Power Member
Posts: 640
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: Possible to take View Mode in Source panel into account for a View Mode?

Post by *hi5 »

Thanks, that works. cm_wait did it.
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
Post Reply