How to create preset filtered views for the panels?

English support forum

Moderators: white, Hacker, petermad, Stefan2

hiccup
Junior Member
Junior Member
Posts: 63
Joined: 2018-05-13, 08:04 UTC

How to create preset filtered views for the panels?

Post by *hiccup »

I would like to create shortcuts for some preset filtered views.

E.g.:
Only display files with a certain extension, or only display files with a modification date within the last 30 minures, etc.

I know how to perform a search using such filters, but I have no clue how I could create preset shortcuts for such filtered views in the panels?
User avatar
Stefan2
Power Member
Power Member
Posts: 4133
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Use saved Search to filter current file list

Post by *Stefan2 »

Use TCs command "CD" with ">" and the name of your saved search, like


CD >mySearchFor_Last30Minutes

-or-

CD >mySearchFor_PDFfiles




More in German language: viewtopic.php?p=336315#336315






 
hiccup
Junior Member
Junior Member
Posts: 63
Joined: 2018-05-13, 08:04 UTC

Post by *hiccup »

I am probably misunderstanding and doing something very wrong.

I have a saved search: 30Mins

If I create a button like this:
Image: https://i.imgur.com/nmN8N2a.png
nothing happens.

(And isn't CD standing for 'change directory'?)
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3854
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

Works with lower case (seems to be case sensitive)
cd >30Mins
#5767 Personal license
hiccup
Junior Member
Junior Member
Posts: 63
Joined: 2018-05-13, 08:04 UTC

Post by *hiccup »

Ah, it now works (also with capitals).

But I see it doesn't filter out folders, only files?
I'm sure there must be a setting for that too somewhere?
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

sqa_wizard wrote:Works with lower case (seems to be case sensitive)
cd >30Mins
Is not case sensitive for me.
Works fine regardless of upper/lower case.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
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
Stefan2
Power Member
Power Member
Posts: 4133
Joined: 2007-09-13, 22:20 UTC
Location: Europa

'CD' is at first place the name of an DOS command. But...

Post by *Stefan2 »

hiccup wrote:(And isn't CD standing for 'change directory'?)

That's right, 'CD' is at first place the name of an DOS command.


But since this is here an TC command, the author can let it do what he want.
So if after 'CD' an expected string is found, the app can react in several ways.
But without that trigger it does the same as the DOS command.





 
hiccup
Junior Member
Junior Member
Posts: 63
Joined: 2018-05-13, 08:04 UTC

Post by *hiccup »

Thanks for the solution and your explanation Stefan2.
Sometimes I'm glad Mother Earth suffers from Homo Sapiens ;-)

I'm still trying to see if I can filter out folders ('older than 30Mins') too.
Checking 'Attributes' and then unchecking 'Directory' doesn't solve it.
Nor setting something like 'filesize > 1000 bytes'.

I'm running out of creative ideas here, so if somebody has a solution for that too, it's very welcome.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

hiccup wrote:Thanks for the solution and your explanation Stefan2.
Sometimes I'm glad Mother Earth suffers from Homo Sapiens ;-)

I'm still trying to see if I can filter out folders ('older than 30Mins') too.
Checking 'Attributes' and then unchecking 'Directory' doesn't solve it.
Nor setting something like 'filesize > 1000 bytes'.

I'm running out of creative ideas here, so if somebody has a solution for that too, it's very welcome.
Such a search works for files and dirs only when you load it in a search.
Using "CD >name" on a button only works for files and not for dirs.
Make a button with LOADSEARCH and your yourname as parameter.
Then press Start search and feed the results to a listbox.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
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
hiccup
Junior Member
Junior Member
Posts: 63
Joined: 2018-05-13, 08:04 UTC

Post by *hiccup »

Ok, so if I understand what you are saying, it is not possible to create a shortcut for a filter that will filter out files and folders the same way.
(such as: only display files and folders created in the last 30 minutes)

Just when I started to think that anything could be accomplished with TC ;-)
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

hiccup wrote:Ok, so if I understand what you are saying, it is not possible to create a shortcut for a filter that will filter out files and folders the same way.
(such as: only display files and folders created in the last 30 minutes)

Just when I started to think that anything could be accomplished with TC ;-)
Its my current knowledge after a few short tests.
But maybe Christian or one of our forum Gurus has an idea.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
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
tuska
Power Member
Power Member
Posts: 3740
Joined: 2007-05-21, 12:17 UTC

Files and folders modified in the last 30 minutes

Post by *tuska »

When you include the Everything search in TC then you can use TC-parameter ed: or ev: in field: "Search for:"
in "Find Files"-window in TC
-> Commands - Search... Alt+F7 or
-> Commands - Search in separate process... Alt+Shift+F7
to be able to search with parameters of Everything in TC.

Examples:
Search for:

Code: Select all

ed:dm:last30minutes <folder:|file:> name*
ed:d: dm:last30minutes <folder:|file:>  (only drive D:\ … search from the directory where you are in TC)
ev:d: dm:last30minutes <folder:|file:>  (only drive D:\)
dm:last30minutes file: name*
dm:last30minutes folder: name*
dm:last30minutes file:ext:db name*

*name: optional --> a name (or part of a name) further restricts the search results
From Everything-Help/Search Syntax: dm:<date> Search for files and folders with the specified date modified.
See also: http://www.voidtools.com/support/everything/searching/

ed:
Search in TC with Everything from current directory - adjustable directory depth! - even if field "Search in:" is empty
and find files and folders according to the examples modified within the last 30 minutes.

ev:
Search for: ev:dm:last30minutes <folder:|file:> name* *name = optional
If ev: is entered in the field "Search for:" then in TC the path and the drives in the field "Search in:" are ignored!
That means, the search is done in all drives with Everything (via TC search mask)
Files and folders modified within the last 30 minutes will be found, e.g. on drive C:, D:, I:,etc.

The Everything-checkbox in TC must then be checked(!)
The Everything-checkbox in TC must always be checked if you want to use Everything parameters.
-----------

Save your searches in "Find Files"-window under tab "Load/Save", e.g. Everything_last30minutes.

If you want to assign a shortcut to a command, you must first create an em_command.
1.  Type in: cm_CommandBrowser <ENTER> in command line of TC
2.  Click on usercmd.ini (under Category)
3.  Click on button "New..." - new command name, e.g.: em_Everything_last30minutes
4.  OK, Command: LOADSEARCH Everything_last30minutes ...
5.  Tooltip: LOADSEARCH Everything_last30minutes|viewtopic.php?t=49945 ... OK, OK
6.  em_command FINISHED

Create a shortcut:
1.  Menu "Configuration" - "Options..." - "Misc." - Redefine hotkeys (Keyboard remapping)
2.  Choose your hotkey(s) by clicking the appropriate field(s), e.g. F12 - "Default command (no remapping)" is shown then
3.  Click on the magnifying glass to the right - click on "usercmd.ini" - choose your em_command: em_Everything_last30minutes - OK
4.  IMPORTANT: click on the green checkmark! - OK - FINISHED!

Button: (copy/paste)

Code: Select all

TOTALCMD#BAR#DATA
LOADSEARCH Everything_last30minutes

wcmicons.dll,22
LOADSEARCH Everything_last30minutes|ev:dm:last30minutes <folder:||file:> |https://ghisler.ch/board/viewtopic.php?t=49945


-1
Regards
Karl
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2tuska
The problem is that hiccup wants a FILTER not a search. and using the filter >Everything_last30minutes (with Ctrl+F12 or CD) from your example doesn't work.
Last edited by petermad on 2018-05-21, 14:36 UTC, edited 2 times 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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

petermad wrote:2tuska
The problem is that hiccup wnats a FILTER not a search. and using the filter >Everything_last30minutes (with Ctrl+F12 of CD) from your example doesn't work.
Thats the reason why I didn't said anything about Everything in my answers.
For me its an error that TC filters only work with files.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
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
tuska
Power Member
Power Member
Posts: 3740
Joined: 2007-05-21, 12:17 UTC

Post by *tuska »

Ahh, sorry - thank you all for the hints!
Post Reply