filtering with CD kept for each tab and not for all left/rig
Moderators: white, Hacker, petermad, Stefan2
filtering with CD kept for each tab and not for all left/rig
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 ?
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.
CD *.xyz only for current tab and keeped as tab property
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...
CD *.xyz only for current tab
unless i missed something...
- ghisler(Author)
- Site Admin
- Posts: 48162
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Sorry, this isn't possible, filters are not saved per tab.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
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.
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:
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 ...
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 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 ...
Re: filtering with CD kept for each tab and not for all left/rig
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.
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.
Re: filtering with CD kept for each tab and not for all left/rig
@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 ...
Re: filtering with CD kept for each tab and not for all left/rig
Support++.
I'd also prefer to keep a filter for each tab. At least for the duration of the session.
I'd also prefer to keep a filter for each tab. At least for the duration of the session.
Overquoting is evil! 👎
Re: filtering with CD kept for each tab and not for all left/rig
Support +++
Filtering per tab is annoying.
Its perfectly solved in XYplorer, my other file manager.
Filtering per tab is annoying.
Its perfectly solved in XYplorer, my other file manager.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3593)
TC 11.03 x64 / x86
Everything 1.5.0.1376a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.78
QAP 11.6.3.3 x64
TC 11.03 x64 / x86
Everything 1.5.0.1376a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.78
QAP 11.6.3.3 x64
Re: filtering with CD kept for each tab and not for all left/rig
@ghisler(Author) Can you give at least a look at it ?
- ghisler(Author)
- Site Admin
- Posts: 48162
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: filtering with CD kept for each tab and not for all left/rig
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
https://www.ghisler.com
Re: filtering with CD kept for each tab and not for all left/rig
It would be the right decision.Maybe I should make it optional?
Overquoting is evil! 👎
Re: filtering with CD kept for each tab and not for all left/rig
Yes that is a good solution to have a switch to enable or disable support of new feature globally.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?
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.....
Re: filtering with CD kept for each tab and not for all left/rig
Wouldn't it be better with a new 0_usercpec field for that?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?
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.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
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.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: filtering with CD kept for each tab and not for all left/rig
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.