Multiple Ignore list activations

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
bogordo
Member
Member
Posts: 150
Joined: 2019-12-06, 09:07 UTC

Multiple Ignore list activations

Post by *bogordo »

Hi,

Was searching if there is some way so i can have my Desktop tab with Ignore list always active (hiding shortcuts...etc) and at the same time have the option to active/deactivate Ignore list in other tabs, thus, mantaining the Ignore list active in Desktop tab.

This comes because i really don't need to see ever some of stuff in desktop and other tabs/folders but would appreciate to change the view options inside another tabs/folder for project visualizing.

Maybe too crazy....??
TC license #346559
User avatar
Stefan2
Power Member
Power Member
Posts: 4159
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Multiple Ignore list activations

Post by *Stefan2 »

 
1) you can create an button to toggle the ignorelist on and off
>>> viewtopic.php?p=189458#p189458 (cm_SwitchIgnoreList)


2) maybe 2tuska knows an way how to use "Auto Switch Mode" for to toggle ignorelist on the fly?
>>> Menu "Show > Custom View Modes" // View Mode / Auto Switch Mode by tuska
How to automatically switch the list view based on defined rules, for example if you enter a folder with a specific string in name.
viewtopic.php?f=3&t=53559





 
User avatar
petermad
Power Member
Power Member
Posts: 14826
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Multiple Ignore list activations

Post by *petermad »

2bogordo
You can just define your ignore list items with full path - then they will only work in that path.
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
bogordo
Member
Member
Posts: 150
Joined: 2019-12-06, 09:07 UTC

Re: Multiple Ignore list activations

Post by *bogordo »

Thank you, yes petermad, but with this i don't get the option to toggle on/off for certain folders maintaining the Ignore list for Desktop tab on...
Will try too Stefan 2's workaround ;)
TC license #346559
User avatar
petermad
Power Member
Power Member
Posts: 14826
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Multiple Ignore list activations

Post by *petermad »

Using cm_SwitchIgnoreList always works on both panels, so you cannot have the ignore list disabled in one panel and not in the other.

What exactly do you mean with "Desktop tab" - is that just a TC forlder tab with the Desktop, and in that case it is the physical Desktop C:\users\username\Desktop or the virtual folder \\Desktop ?
Last edited by petermad on 2020-01-05, 11:36 UTC, edited 1 time in total.
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
bogordo
Member
Member
Posts: 150
Joined: 2019-12-06, 09:07 UTC

Re: Multiple Ignore list activations

Post by *bogordo »

Ok thanks, going to try the Custom view workaround...
TC license #346559
bogordo
Member
Member
Posts: 150
Joined: 2019-12-06, 09:07 UTC

Re: Multiple Ignore list activations

Post by *bogordo »

petermad wrote: 2020-01-05, 11:31 UTC Using cm_SwitchIgnoreList always works on both panels, so you cannot have the ignore list disabled in one panel and not in the other.

What exactly do you mean with "Desktop tab" - is that just a TC forlder tab with the Desktop, and in that case it is the physical Desktop C:\users\username\Desktop or the virtual folder \\Desktop ?
Hi Peter, i see you edited the post. I mean physical desktop, thus, in a tab with Desktop i would have always Ignore active and in other more flexible folder tabs i would have the option to activate/deactivate Ignore list (without affecting Desktop ignore list state).
TC license #346559
User avatar
petermad
Power Member
Power Member
Posts: 14826
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Multiple Ignore list activations

Post by *petermad »

2bogordo
The problem using cm_SwitchIgnoreList in Custom View Auto Switch is that cm_SwitchIgnoreList is a toggle command - it will always just set ignore list to the opposite of what it was, so if you make an Auto Switch Mode that executes cm_SwitchIgnoreList when entering %$DESKTOP%, then if you enter the desktop folder again, then cm_SwitchIgnoreList will be executed again toggling the ignore list back to its previous state. And, as I wrote cm_SwitchIgnoreList works on both panels, which might not be what you want.

What kind of ignore entries is it you want used in the desktop folder? Is it specific file types or exact file or folder names?

If only cm_SwitchIgnoreList supported parameters as suggested here: viewtopic.php?f=14&t=48615&p=333020&hilit=cm_switchignorelist#p333020
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
bogordo
Member
Member
Posts: 150
Joined: 2019-12-06, 09:07 UTC

Re: Multiple Ignore list activations

Post by *bogordo »

I understand, thank you for your detailed explanation!!

My goal is to hide the shortcuts mainly (.LNK) and some folders :)
TC license #346559
User avatar
petermad
Power Member
Power Member
Posts: 14826
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Multiple Ignore list activations

Post by *petermad »

Then just put this in your ignorelist:
%$DESKTOP%\*.lnk
%$DESKTOP%\*\

Note this will hide all folders - if you only want to hide specific folders, you have to state each folder separately like
%$DESKTOP%\foldername\
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
bogordo
Member
Member
Posts: 150
Joined: 2019-12-06, 09:07 UTC

Re: Multiple Ignore list activations

Post by *bogordo »

Yes, i noted this here, but when toggling off Ignore list they would be shown...
It's a little bit whim/tricky, like having a on/off toggle for specific folder tabs while maintaining others on...hehe

Thank youuu
TC license #346559
User avatar
petermad
Power Member
Power Member
Posts: 14826
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Multiple Ignore list activations

Post by *petermad »

like having a on/off toggle for specific folder tabs while maintaining others on
Yeah, that is currently not possible.

Also note that when the ignore list is toggled on, it affects all functions in TC, not just the two file panels, but also for example the Find Files utility, the Multi-Rename tool, Copying and Moving files - so I guess it would not be that easy to implement per foldertab.
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
bogordo
Member
Member
Posts: 150
Joined: 2019-12-06, 09:07 UTC

Re: Multiple Ignore list activations

Post by *bogordo »

Yes yes i understand, and possible no necessary :), KISS principle maybe ;)
TC license #346559
User avatar
tuska
Power Member
Power Member
Posts: 3765
Joined: 2007-05-21, 12:17 UTC

Re: Multiple Ignore list activations, Desktop, Filters, View mode, Auto Switch Mode

Post by *tuska »

Here's what I would do:
  1. Create buttons for the Desktop [optional]
  2. Define filter criteria
  3. Em_commands [Option: Create shortcuts to em_commands] and create buttons
  4. Create View mode(s)
  5. Create Auto Switch Mode(s)
1. Creation of 3 buttons for the Desktop (optional) ... (copy the CODE, paste in TC's buttonbar)
Reference: Pseudo environment variables

Code: Select all

TOTALCMD#BAR#DATA
cd %$DESKTOP%

C:\Windows\System32\desk.cpl
Desktop User|cd %$DESKTOP%|cd "%UserProfile%\Desktop"


-1

Code: Select all

TOTALCMD#BAR#DATA
cd %$COMMON_DESKTOPDIRECTORY%

C:\Windows\System32\desk.cpl
Desktop Public|cd %$COMMON_DESKTOPDIRECTORY%|cd C:\Users\Public\Desktop\

0
-1

Code: Select all

TOTALCMD#BAR#DATA
cm_OpenDesktop

C:\Windows\System32\desk.cpl
\\Desktop\ - Virtual folder|cm_OpenDesktop

0
2121
2. Define filter criteria

Code: Select all

Define filter criteria ......:  Examples (mainly include examples from petermad)
References (Stefan2) .......):  https://ghisler.ch/board/viewtopic.php?p=336315#p336315 (German language)
............................):  https://ghisler.ch/board/viewtopic.php?p=332810#p332810 (German language)
Google - Translate .........):  https://translate.google.de/#view=home&op=translate&sl=de&tl=en (left: paste link, right: click link)
............................):  Attention to the code from the original thread in the German forum!

Code: Select all

Name ........................:  Command:
---------------------------------------------------------------------------------------------------------------------------------
em_ClearAllFilters ..........:	cd *.*			     Show Folders and Files 
em_FilesExtensionFiltering ..:	cd *.* | *.lnk *.bak *.wbk   Show folders and files, but not file extensions .lnk, .bak and .wbk

em_DocumentsFiltering .......: 	cd *.doc *.docx *.xls *.xlsx *.pdf *.docm *.xlsm *.xltm *.dotm *.dotx *.dotm *.txt | *.lnk
							     Show Folders, Files with these extensions, but not *.lnk files

em_FilesFiltering ...........:  cd |*.*		       	     Show Only Folders (Hide All Files)
em_FolderFiltering ..........:  cd *|*\			     Show Only Files   (Hide All Folders)
em_ExtPdfAndFolderFiltering .:  cd *.pdf | *\		     Show Only Files   (Hide All Folders) with Extension .pdf
em_FilesAndFolderFiltering ..:  cd *|*\ *.lnk *.bak *.wbk    Show Only Files,  but not file extensions .lnk, etc. (Hide All Folders)
---------------------------------------------------------------------------------------------------------------------------------
QuickSearch eXtended (Optional)

Code: Select all

File Extensions - QuickSearch eXtended - Favorites - Examples ...
1	"!.aac|.ac3|.aif|.aifc|.aiff|.au|.cda|.dts|.fla|.flac|.it|.m1a|.m2a|.m3u|.m4a|.mid|.midi|.mka|.mod|.mp2|.mp3|.mpa|.ogg|.ra|.rmi|.spc|.rmi|.snd|.umx|.voc|.wav|.wma|.xm|.ani|.bmp|.gif|.ico|.jpe|.jpeg|.jpg|.pcx|.png|.psd|.tga|.tif|.tiff|.wmf|.3g2|.3gp|.3gp2|.3gpp|.amr|.amv|.asf|.avi|.bdmv|.bik|.d2v|.divx|.drc|.dsa|.dsm|.dss|.dsv|.evo|.f4v|.flc|.fli|.flic|.flv|.hdmov|.ifo|.ivf|.m1v|.m2p|.m2t|.m2ts|.m2v|.m4b|.m4p|.m4v|.mkv|.mp2v|.mp4|.mp4v|.mpe|.mpeg|.mpg|.mpls|.mpv2|.mpv4|.mov|.mts|.ogm|.ogv|.pss|.pva|.qt|.ram|.ratdvd|.rm|.rmm|.rmvb|.roq|.rpm|.smil|.smk|.swf|.tp|.tpr|.ts|.vob|.vp6|.webm|.wm|.wmp|.wmv"
a	.aac|.ac3|.aif|.aifc|.aiff|.au|.cda|.dts|.fla|.flac|.it|.m1a|.m2a|.m3u|.m4a|.mid|.midi|.mka|.mod|.mp2|.mp3|.mpa|.ogg|.ra|.rmi|.spc|.rmi|.snd|.umx|.voc|.wav|.wma|.xm
b	.ani|.bmp|.gif|.ico|.jpe|.jpeg|.jpg|.pcx|.png|.psd|.tga|.tif|.tiff|.wmf
d	.msg|.c|.chm|.cpp|.csv|.cxx|.doc|.docm|.docx|.dot|.dotm|.dotx|.h|.hpp|.htm|.html|.hxx|.ini|.java|.lua|.mht|.mhtml|.odt|.pdf|.potx|.potm|.ppam|.ppsm|.ppsx|.pps|.ppt|.pptm|.pptx|.rtf|.sldm|.sldx|.thmx|.txt|.vsd|.wpd|.wps|.wri|.xlam|.xla|.xls|.xlsb|.xlsm|.xlsx|.xltm|.xltx|.xml
e	.bat|.cmd|.exe|.msi|.msp|.msu|.scr
r	?\.3gp$|\.asf$|\.avi$|\.dat$|\.flv$|\.m4v$|\.mov$|\.mp4$|\.mpe$|\.mpeg$|\.mpg$|\.qt$|\.ra$|\.ram$|\.rm$|\.vob$|\.wmv$
t	*.txt|*.rtf
v	.3g2|.3gp|.3gp2|.3gpp|.amr|.amv|.asf|.avi|.bdmv|.bik|.d2v|.divx|.drc|.dsa|.dsm|.dss|.dsv|.evo|.f4v|.flc|.fli|.flic|.flv|.hdmov|.ifo|.ivf|.m1v|.m2p|.m2t|.m2ts|.m2v|.m4b|.m4p|.m4v|.mkv|.mp2v|.mp4|.mp4v|.mpe|.mpeg|.mpg|.mpls|.mpv2|.mpv4|.mov|.mts|.ogm|.ogv|.pss|.pva|.qt|.ram|.ratdvd|.rm|.rmm|.rmvb|.roq|.rpm|.smil|.smk|.swf|.tp|.tpr|.ts|.vob|.vp6|.webm|.wm|.wmp|.wmv
y	?^(?!\d\d\d\d\-\d\d-\d\d_).+
z	.7z|.ace|.arj|.bz2|.cab|.gz|.gzip|.jar|.r00|.r01|.r02|.r03|.r04|.r05|.r06|.r07|.r08|.r09|.r10|.r11|.r12|.r13|.r14|.r15|.r16|.r17|.r18|.r19|.r20|.r21|.r22|.r23|.r24|.r25|.r26|.r27|.r28|.r29|.rar|.tar|.tgz|.z|.zip

Ctrl+S >d filters the view according to filter "d" (folders are hidden). Then press ESC, Ctrl+R ...
3. Em_commands (Option: Create shortcuts to em_commands) and buttons
usercmd.ini (saved em_commands) | Redefine shortcuts for em_commands

Code: Select all

[em_ClearAllFilters]
button=
cmd=cd *.*
menu=cd *.*  Show Folders and Files
[em_FilesExtensionFiltering]
button=
cmd=cd *.* | *.lnk *.bak *.wbk
menu=cd *.* | *.lnk *.bak *.wbk  Show folders and files, but not file extensions .lnk, .bak and .wbk
[em_DocumentsFiltering]
button=
cmd=cd *.doc *.docx *.xls *.xlsx *.pdf *.docm *.xlsm *.xltm *.dotm *.dotx *.dotm *.txt | *.lnk
menu=cd *.doc *.docx *.xls *.xlsx *.pdf *.docm *.xlsm *.xltm *.dotm *.dotx *.dotm *.txt | *.lnk|Show Folders, Files with these extensions, but not *.lnk files
[em_FilesFiltering]
button=
cmd=cd |*.*
menu=cd |*.*  Show Only Folders (Hide All Files)
[em_FolderFiltering]
button=
cmd=cd *|*\
menu=cd *|*\  Show Only Files   (Hide All Folders)
[em_FilesAndFolderFiltering]
button=
cmd=cd *|*\ *.lnk *.bak *.wbk
menu=cd *|*\ *.lnk *.bak *.wbk  Show Only Files, but not file extensions .lnk, etc. (Hide All Folders)
[em_ExtPdfAndFolderFiltering]
button=
cmd=cd *.pdf | *\
menu=cd *.pdf | *\ Show Only Files with Extension .pdf  (Hide All Folders)
Buttons... (copy the CODE, paste in TC's buttonbar)

Code: Select all

TOTALCMD#BAR#DATA
em_ClearAllFilters

wcmicons.dll,13
em_ClearAllFilters:  cd *.*|Show Folders and Files


10051

Code: Select all

TOTALCMD#BAR#DATA
em_FilesExtensionFiltering

wcmicons.dll,24
em_FilesExtensionFiltering:  cd *.* || *.lnk *.bak *.wbk|Show folders and files, but not file extensions .lnk, .bak and .wbk


10052

Code: Select all

TOTALCMD#BAR#DATA
em_DocumentsFiltering

wcmicons.dll,25
em_DocumentsFiltering:|cd *.doc *.docx *.xls *.xlsx *.pdf *.docm *.xlsm *.xltm *.dotm *.dotx *.dotm *.txt || *.lnk|Show Folders, Files with these extensions, but not *.lnk files


10053

Code: Select all

TOTALCMD#BAR#DATA
em_FilesFiltering

wcmicons.dll,73
em_FilesFiltering:  cd ||*.*|Show Only Folders (Hide All Files)


10054

Code: Select all

TOTALCMD#BAR#DATA
em_FolderFiltering

wcmicons.dll,73
em_FolderFiltering:  cd *||*\|Show Only Files (Hide All Folders)


10055

Code: Select all

TOTALCMD#BAR#DATA
em_FilesAndFolderFiltering

wcmicons.dll,24
em_FilesAndFolderFiltering:  cd *||*\ *.lnk *.bak *.wbk|Show Only Files, but not file extensions .lnk, etc. (Hide All Folders)


10056

Code: Select all

TOTALCMD#BAR#DATA
em_ExtPdfAndFolderFiltering

wcmicons.DLL,24
em_ExtPdfAndFolderFiltering:  cd *.pdf || *\|Show Only Files with Extension .pdf  (Hide All Folders)


10057
4. Create View mode(s)

Code: Select all

Configuration - Options... - View mode
 
<Vorgabe>/<Default> ....): - Columns view: Full
........................): - Sort order:   Name

Add...
Filter - OK ............): - Columns view: Unchanged	[Option: Saved "Custom columns view" can be integrated!]
........................): - Sort order:   Unchanged
........................): - Auto-run commands: em_FilesExtensionFiltering|em_ClearAllFilters
OK 

"Filter" is the name of your View Mode.
"|em_ClearAllFilters" will be applied after leaving the View Mode.
5. Create Auto Switch Mode(s)

Code: Select all

Configuration - Options... - Auto Switch Mode
☑ Automatically switch view mode on directory change: ... Must be ticked!
Add...
Rule					Directory, e.g.
			+: Must match	%$DESKTOP%\			Click on "More sub-rules"
|  OR (any match)	+: Must match	%$COMMON_DESKTOPDIRECTORY%	Click on "More sub-rules"
|  OR (any match)	+: Must match	\\Desktop\			Click on "More sub-rules"
|  OR (any match)	+: Must match	%COMMANDER_PATH%\Language\	Click on "More sub-rules"
|  OR (any match)	+: Must match	I:\Data\Templates\*		Click on "More sub-rules"
|  OR (any match)	+: Must match	D:\Data\EXCEL\Formats\		...

Set this mode: Filter   (=NameOfYourViewMode)!
OK

Code: Select all

From now on, with these settings e.g. *.lnk files on the desktop should be automatically hidden.
However, please note the following important information: 

1. Clicking on a tab does not always start a saved Auto Switch Mode immediately.
   A click on another tab and then on the tab with Auto Switch Mode can help here.
   Sometimes it is necessary to change at least once [or more than once] from the parent directory to the one in Auto Switch Mode 
   defined directory! After that the tab can be clicked at any time and the Auto Switch Mode is always active.   

2. If the Auto Switch Mode is active (e.g. filter applied) and it is activated, and e.g. by a button with 
   command: "em_ClearAllFilters" is overridden (filter OFF), then it means back at the start, this is point 1.
   Alternatively, the Auto Switch Mode can also be restarted immediately, e.g. MANUALLY with a button 
   (command: cd *.* | *.lnk *.bak *.wbk OR em_command, e.g.: em_FilesExtensionFiltering OR command: cm_SrcViewModeList Filter).
   This is also the reason why buttons were specified with em_commands [also usable for undefined directories]!
Post Reply