filtering with CD kept for each tab and not for all left/rig

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

User avatar
nsp
Power Member
Power Member
Posts: 1802
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

filtering with CD kept for each tab and not for all left/rig

Post by *nsp »

I need to have different filtering for tabs on the same side and do not lost what i chose.

Ex: i have 4 tabs on Left and i would like to be able to see only images file on first tab, *.java in second tab, executable on third. and *.* on the last.

Currently using "cd <filter mask>" i can change filtering but this apply to the complete set of tabs for current side. Each time i change filtering want to go back the tab, previous state is lost (CD filtering, QuickSearch state).

Could it be possible to automatically save/restore the state of each tab when leaving it for another one i.e changing back to original tab ?

Could it be possible to have also a onLeave event for custom view ?
Last edited by nsp on 2018-05-18, 07:48 UTC, edited 1 time in total.
User avatar
nsp
Power Member
Power Member
Posts: 1802
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

CD *.xyz only for current tab and keeped as tab property

Post by *nsp »

Please, can you consider a way to have filtering not applied to all tabs of the same side ?
CD *.xyz only for current tab

unless i missed something...
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, this isn't possible, filters are not saved per tab.
Author of Total Commander
https://www.ghisler.com
User avatar
nsp
Power Member
Power Member
Posts: 1802
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

ghisler(Author) wrote:Sorry, this isn't possible, filters are not saved per tab.

I made a suggestion to have a new tab property to enhance current functionality...
You can have column, custom view, ... saved per tab but not filter.
I also use this filtering as auto run command with custom mode and it is anoying that other tabs are changed by a custom view and the custom view changed by a command in another unrelated tab.
User avatar
tuska
Power Member
Power Member
Posts: 3733
Joined: 2007-05-21, 12:17 UTC

Post by *tuska »

Maybe this could be of little help (example for .txt files):
1. In a View Mode in field "Auto-run commands:" em_ShowOnlyTextFiles|em_ClearAllFilters
2. Button with command: cm_SrcViewMode0,em_ClearAllFilters

|em_ClearAllFilters .. from Help (F1): To run commands when a view mode is left, put them behind | (vertical line).
em_ShowOnlyTextFiles: cd *.txt
em_ClearAllFilters: cd *.*
cm_SrcViewMode0 8500 Source: Default view mode (no colors or icons)

Example:

Code: Select all

em_ShowOnlyTextFiles		cd *.txt
Path: 				        D:\Data\zzz\
Tab*:				         D:\Data\zzz\ 		* Tab - Locked, but directory changes allowed
View Mode - Title:		  Only *.txt
View Mode - Background:	[Background & Background 2 color due to filtering]
View Mode - Auto-run commands:	em_ShowOnlyTextFiles|em_ClearAllFilters
Auto Switch Mode:		   +: Must match ... Directory: D:\Data\zzz\ ... Set this mode: Only *.txt
If you get into the directory "D:\Data\zzz\" then only text files will be displayed - filter is switched on.
If this directory is left by calling another directory or by clicking on another tab, then there is no filter in the other/current directory.
If you return to the directory "D:\Data\zzz\" by clicking on the tab, then the filter will be available again because of the "Auto Switch Mode".
Whereby, on this occasion, this proposal immediately comes to mind.

To make the whole thing more flexible ...
Auto Switch Mode: +: Must match ... Directory: D:\Data\zzz\ ... Set this mode: Only *.txt
... you can make the path drive independent (*\) and include subdirectories (\*) as follows:
Auto Switch Mode: +: Must match ... Directory: *\zzz\* ........ Set this mode: Only *.txt

A button with command: cm_SrcViewModeList Only *.txt (NameOfYourViewMode) also allows this filter to be applied to any directory at any time.
A button with command: cm_SrcViewMode0,em_ClearAllFilters turns the filter off again at any time.

Maybe Auto Switch Mode rules would be interesting for you, which is something like that:
%: At least 50% match ... File types: *.ani *.bmp *.gif *.ico *.jpe *.jpeg *.jpg *.pcx *.png *.psd *.tga *.tif *.tiff *.wmf
Set this mode: NameOfYourViewMode

It is certainly not quite what you imagine, but ...
User avatar
nsp
Power Member
Power Member
Posts: 1802
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: filtering with CD kept for each tab and not for all left/rig

Post by *nsp »

Does this feature will be taken into consideration ?
The same apply to custom view !
This is more than annoying if I type *.java in one tab and switch to the next one same filter apply.
I use many tabs on each side and do not want to open multiple instance of TC.
User avatar
nsp
Power Member
Power Member
Posts: 1802
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: filtering with CD kept for each tab and not for all left/rig

Post by *nsp »

@ghisler it is more and more annoying to no be able to just work in a tab as an independent container. More an more user have tons of tab and complain about not being able to set multiple filer by side. Tab 1 with java or go files, tab 2 with jpg and png tab 3 with pdf ...
Fla$her
Power Member
Power Member
Posts: 2223
Joined: 2020-01-18, 04:03 UTC

Re: filtering with CD kept for each tab and not for all left/rig

Post by *Fla$her »

Support++.
I'd also prefer to keep a filter for each tab. At least for the duration of the session.
Overquoting is evil! 👎
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6429
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: filtering with CD kept for each tab and not for all left/rig

Post by *Horst.Epp »

Support +++
Filtering per tab is annoying.
Its perfectly solved in XYplorer, my other file manager.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3296)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
nsp
Power Member
Power Member
Posts: 1802
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: filtering with CD kept for each tab and not for all left/rig

Post by *nsp »

@ghisler(Author) Can you give at least a look at it ?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: filtering with CD kept for each tab and not for all left/rig

Post by *ghisler(Author) »

It should be doable by storing the filter in the 0_options field of the [lefttabs]/[righttabs] section. Storing it in the 0_path field would break compatibility with older versions. Maybe I should make it optional?
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2223
Joined: 2020-01-18, 04:03 UTC

Re: filtering with CD kept for each tab and not for all left/rig

Post by *Fla$her »

Maybe I should make it optional?
It would be the right decision.
Overquoting is evil! 👎
User avatar
nsp
Power Member
Power Member
Posts: 1802
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: filtering with CD kept for each tab and not for all left/rig

Post by *nsp »

ghisler(Author) wrote: 2021-04-23, 07:44 UTC It should be doable by storing the filter in the 0_options field of the [lefttabs]/[righttabs] section. Storing it in the 0_path field would break compatibility with older versions. Maybe I should make it optional?
Yes that is a good solution to have a switch to enable or disable support of new feature globally.
xx_path should not be altered as it is better to keep it as path reference and easier switching capability.

On each tab in the xx_options add at the end with a new separator like :(| is used in filter expression for negative expression) To the end of field interpret as filter. or add new field xx_filter ?

If it could be implemented that will be great !
Many thanks in advance.....
User avatar
petermad
Power Member
Power Member
Posts: 14700
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: filtering with CD kept for each tab and not for all left/rig

Post by *petermad »

It should be doable by storing the filter in the 0_options field of the [lefttabs]/[righttabs] section. Storing it in the 0_path field would break compatibility with older versions. Maybe I should make it optional?
Wouldn't it be better with a new 0_usercpec field for that?

The 0_options field is separated with |'s - and | can be a part of a valid cd parameter like: cd *|"*.br2"
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
nsp
Power Member
Power Member
Posts: 1802
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: filtering with CD kept for each tab and not for all left/rig

Post by *nsp »

petermad wrote: 2021-04-23, 11:49 UTC Wouldn't it be better with a new 0_usercpec field for that?

The 0_options field is separated with |'s - and | can be a part of a valid cd parameter like: cd *|"*.br2"
0_path , 0_options are used for first tab or each side ...
xx_options, xx_userspec, xx_filter is better for understanding xx is the tab number IMO.

And yes | is used in filter to separate positive/negative logic. If xx_options is used, a new separator like : can be safe to have to still keep an extensible part with number and | and next part. ("|*\" is my favorite one)
xx_filter or xx_userspec are also a good alternatives as you will just use as it is without additional parsing.
Post Reply