Custom filter defaults
Moderators: white, Hacker, petermad, Stefan2
Custom filter defaults
I use custom filters (^F12) quite often, mostly to filter by file name extension only (*.xls, *.dwg etc.), not some more complicated masks (aaa*bbb.ccc).
After ^F12, the dialog shows the last used filter as a default. I think it would be much better to offer the default filter "*.ext" based on the currently highlighted file. (Similar to what F7 offers as a default). Alternatively, for those preferring the current behaviour, add an option in settings dialog to let the user choose which default to use.
Please could you consider this modification?
Many thanks,
Vaclav
After ^F12, the dialog shows the last used filter as a default. I think it would be much better to offer the default filter "*.ext" based on the currently highlighted file. (Similar to what F7 offers as a default). Alternatively, for those preferring the current behaviour, add an option in settings dialog to let the user choose which default to use.
Please could you consider this modification?
Many thanks,
Vaclav
You can create a button or usercommand with shortcut:
It will select all files with extension of focused file and then hide other files. Or you can pass a command cm_SrcUserDef and then keystrokes according to focused file's extension, e.g. with command:
You can even finally pass Enter:
This topic may also be useful for you, you can e.g. combine both ideas.
Code: Select all
Command: cm_SelectCurrentExtension, cm_ShowOnlySelected
Code: Select all
Command: TCFS2.exe
Parameters: /ef "tcm(314, 1) send(`*.%E`)"
Code: Select all
Command: TCFS2.exe
Parameters: /ef "tcm(314, 1) send(`*.%E{ENTER}`)"
Sadly, this is not possible:
Code: Select all
cm_SelectCurrentExtension, cm_ShowOnlySelected; cm_UnselectCurrentExtension
Code: Select all
TOTALCMD#BAR#DATA
cm_ClearAll, cm_SelectCurrentExtension, cm_ShowOnlySelected, cm_ClearAll
wcmicons.dll,73
Show only files with current extension
-1
Holger
2vq
I have sevaral premade filters in my extended menus (see signature below) - one is for using the same filetype as filter.
Or copy this an paste it to the button bar:
I have sevaral premade filters in my extended menus (see signature below) - one is for using the same filetype as filter.
Or copy this an paste it to the button bar:
Code: Select all
TOTALCMD#BAR#DATA
cd
%Z;"*.%E"
wcmicons.dll,25
Show Only Files with Same Extension
0
-1
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
I like all solutions (from MVV, HolgerK and Petermad) and I will keep both final versions for daily work, but I have another question regarding this code from Petermad:
Code:
Would it be possible to change this code, that in addition I get this result: ... If filter is set folders will be hidden?
Thanks!
Kind regards,
Karl
Code:
Code: Select all
cd
%Z;"*.%E"
Thanks!
Kind regards,
Karl
2tuska
Try this:
Try this:
Code: Select all
TOTALCMD#BAR#DATA
cd
%Z;"*.%E" |*.*\
wcmicons.dll,25
Show Only Files with Same Extension
0
-1
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