Page 1 of 1

Rule for auto-switch view mode with tab state

Posted: 2016-07-19, 20:18 UTC
by paravion
Dear Christian, please make a rule for auto-switching view mode depend on the tab state: locked, locked but directory changes allowed. This can set to identify a locked tabs

Posted: 2016-08-30, 21:41 UTC
by air
Yes. Internal variables for headers states can help solve many problems with icons and colorizing. And I think, colors must be as in all another places: not gradient, but bg & fg. Auto-swithing rules - the best plase for this in config.

Posted: 2016-08-31, 06:21 UTC
by Lefteous
Hm I'm not sure if it could work this way. In which cases would add such a condition to the rule and in which not? Can you give an example? What problem would be solved by this new rule?

Posted: 2016-08-31, 07:06 UTC
by MVV
I can't also see any practical usage of this rule. Auto-switching rules are for events that occur frequently, like path change, but tab locking usually is a rare event...
Or is there any sense in distinguishing folder A in an unlocked tab and folder A in a locked one?

Posted: 2016-08-31, 10:47 UTC
by air
Lefteous wrote:Hm I'm not sure if it could work this way. In which cases would add such a condition to the rule and in which not? Can you give an example? What problem would be solved by this new rule?
Colors on locked, active and other tabs, and icons - all in one place in config.

Posted: 2016-08-31, 10:51 UTC
by air
MVV wrote:I can't also see any practical usage of this rule. Auto-switching rules are for events that occur frequently, like path change, but tab locking usually is a rare event...
Or is there any sense in distinguishing folder A in an unlocked tab and folder A in a locked one?
It's rare but continuos event.
Yes. It's too.

Posted: 2016-08-31, 12:04 UTC
by Lefteous
2air
Colors on locked, active and other tabs, and icons - all in one place in config.
Sorry, I don't see how this answers my question.

Posted: 2016-08-31, 13:49 UTC
by air
Add rule header == %locked% and set fg/bg value for it, for example.