Page 1 of 3

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

Posted: 2018-02-02, 13:13 UTC
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 ?

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

Posted: 2018-05-18, 07:42 UTC
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...

Posted: 2018-05-18, 09:42 UTC
by ghisler(Author)
Sorry, this isn't possible, filters are not saved per tab.

Posted: 2018-05-18, 16:16 UTC
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.

Posted: 2018-05-18, 17:01 UTC
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 ...

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

Posted: 2021-03-20, 09:06 UTC
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.

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

Posted: 2021-03-25, 21:12 UTC
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 ...

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

Posted: 2021-04-20, 15:43 UTC
by Fla$her
Support++.
I'd also prefer to keep a filter for each tab. At least for the duration of the session.

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

Posted: 2021-04-20, 16:08 UTC
by Horst.Epp
Support +++
Filtering per tab is annoying.
Its perfectly solved in XYplorer, my other file manager.

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

Posted: 2021-04-23, 07:16 UTC
by nsp
@ghisler(Author) Can you give at least a look at it ?

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

Posted: 2021-04-23, 07:44 UTC
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?

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

Posted: 2021-04-23, 08:35 UTC
by Fla$her
Maybe I should make it optional?
It would be the right decision.

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

Posted: 2021-04-23, 10:57 UTC
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.....

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

Posted: 2021-04-23, 11:49 UTC
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"

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

Posted: 2021-04-23, 13:12 UTC
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.