Improving the behavior of cm_FocusTrg and cm_RereadSource

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Stefan2, white, sheep, Hacker

Post Reply
AlexandrT
Junior Member
Junior Member
Posts: 17
Joined: 2016-06-19, 20:07 UTC
Location: Russia

Improving the behavior of cm_FocusTrg and cm_RereadSource

Post by *AlexandrT » 2017-12-04, 11:11 UTC

In version 9.12rc3 the behavior of the commands cm_Exchange and an cm_ExchangeWithTabs was fixed.
09.11.17 Release Total Commander 9.12 release candidate 3 (32/64)
08.11.17 Fixed: View modes: Re-apply view modes to current panels for commands cm_Exchange and cm_ExchangeWithTabs (32/64)
In my opinion, the behavior of cm_FocusTrg and cm_RereadSource should be fixed in the same way (Re-apply view modes).

As there is one incorrect feature when using View Mode.

For example:
- In left (active) file panel is set View Mode "Mode 1" (which has in Auto-run command "cm_100Percent 70" and active panel really has width of 70%)
- In right (inactive) panel also is set View Mode "Mode 1",

in case of transfer of focus to right panel of its automatic extension to 70% doesn't occur (Auto-run command for it isn't executed). Probably it is considered that View Mode for it was already set. But it doesn't consider switching between file panels. Add please re-apply View Mode when changing file panels.
#231783 Single user license

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 36232
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2017-12-04, 15:42 UTC

View modes are only applied automatically when the current directory goes from one zone to another. For example, when you set Mode 1 for c:\ and Mode 2 for c:\images, going from c:\to c:\images switches to mode 2.But if both panels show c:\images then tab between the two panels does not reapply Mode 2 each time.
Author of Total Commander
http://www.ghisler.com

AlexandrT
Junior Member
Junior Member
Posts: 17
Joined: 2016-06-19, 20:07 UTC
Location: Russia

Post by *AlexandrT » 2017-12-04, 19:59 UTC

But cm_Exchange and cm_ExchangeWithTabs commands do not re-open directories too. However for them re-apply view mode is made.

Or it is necessary adding new internal cm_ReapplyViewMode command applied to the active file panel. Which could be used, for example in command chain em_usercmd...
#231783 Single user license

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 36232
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2017-12-07, 11:08 UTC

Actually they do - they change the directory which was on the left side to another directory (the one which was on the right side), and vice versa.
Author of Total Commander
http://www.ghisler.com

AlexandrT
Junior Member
Junior Member
Posts: 17
Joined: 2016-06-19, 20:07 UTC
Location: Russia

Post by *AlexandrT » 2017-12-07, 11:17 UTC

I got it. But it seems to me that a like cm_ReapplyViewMode command is needed.
#231783 Single user license

Post Reply