A key for filter images, videos, recently files

English support forum

Moderators: white, Hacker, petermad, Stefan2

User avatar
randysejas
Junior Member
Junior Member
Posts: 30
Joined: 2016-02-27, 14:12 UTC

A key for filter images, videos, recently files

Post by *randysejas »

Hi... i want to press i for filter images (jpg, jpeg, png, tiff, gif), press v for filter videos (mp4, avi, mov, ts) and press r for filter the recently files (for example the last 30 minutes of the creation of them).... thanks in advance‼
User avatar
petermad
Power Member
Power Member
Posts: 14829
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: A key for filter images, videos, recently files

Post by *petermad »

Make these commands in your usercmd.ini file:

Code: Select all

[em_show_images]
cmd=cd *.gif *.jpg *.jpeg *.png *.tiff

[em_show_videos]
cmd=cd *.mp4 *.avi *.mov *.ts

[em_show_30minutesold]
cmd=cd >30 minutes
Put these lines to your wincmd.ini file:

Code: Select all

[Searches]
30 minutes_SearchFor=
30 minutes_SearchIn=>
30 minutes_SearchText=
30 minutes_SearchFlags=0|002002010021|||30|-1|||||0000|||

[Shortcuts]
I=em_show_images
V=em_show_videos
R=em_show_30minutesold
If you already have the sections [Searches] and [Shortcuts] in your wincmd.ini file, you just add the lines to the already existing sections
Last edited by petermad on 2020-07-30, 15:45 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
User avatar
petermad
Power Member
Power Member
Posts: 14829
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: A key for filter images, videos, recently files

Post by *petermad »

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
User avatar
randysejas
Junior Member
Junior Member
Posts: 30
Joined: 2016-02-27, 14:12 UTC

Re: A key for filter images, videos, recently files

Post by *randysejas »

@petermad i am basicly new in total commander what is a 404 error??... and i try to execute the code in this window... (i think it should work) Image: https://photos.google.com/album/AF1QipOaWdbiRiLuRmscOPdKBQkHfjXze1t15dB9g_lS/photo/AF1QipO7hJDYaf7WrSmz_P1508GJOXSYc2h3R9cRnnh2
User avatar
petermad
Power Member
Power Member
Posts: 14829
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: A key for filter images, videos, recently files

Post by *petermad »

2randysejas
It is the error that I get if I click on your link: https://photos.google.com/album/AF1QipOaWdbiRiLuRmscOPdKBQkHfjXze1t15dB9g_lS/photo/AF1QipO7hJDYaf7WrSmz_P1508GJOXSYc2h3R9cRnnh2

See: https://madsenworld.dk/tcmd/404error.png

BTW, you have to restart your TC after you mave made the change to wincmd.ini...
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
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6509
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: A key for filter images, videos, recently files

Post by *Horst.Epp »

Your link doesn't work at all.
I guess you are not familar with Google photos sharing
or your link is somehow destroyed while copied and pasted into the forum.
Try testing by clicking on your link in the forum.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1375a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.78
QAP 11.6.3.3 x64
User avatar
randysejas
Junior Member
Junior Member
Posts: 30
Joined: 2016-02-27, 14:12 UTC

Re: A key for filter images, videos, recently files

Post by *randysejas »

Ahh ok... but that is weird because i test the link in the forum and it works... well if i have problems with the new link.... it appears a window with this message "File not found! cmd=cmd=cd *.gif *.jpg *.jpeg *.png *.tiff" and yes... i restarted TC Image: https://ibb.co/vJXyJb6
User avatar
Stefan2
Power Member
Power Member
Posts: 4159
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: A key for filter images, videos, recently files

Post by *Stefan2 »

randysejas wrote: 2020-07-30, 18:10 UTC cmd=cmd=cd *.gif *.jpg *.jpeg *.png *.tiff







 
User avatar
Dalai
Power Member
Power Member
Posts: 9409
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: A key for filter images, videos, recently files

Post by *Dalai »

Just a side note: You should think carefully if you really want simple character/letter keys to switch views or filter the panel contents in TC. TC is a keyboard oriented file manager after all. And by default, pressing simple letters types them into the command line, or jumps to the file beginning with that letter - depending on the quick search settings.

You might want to change the hotkeys to something like Ctrl+<letter> or even Ctrl+Alt+<letter> instead. But it depends on how you use TC.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
randysejas
Junior Member
Junior Member
Posts: 30
Joined: 2016-02-27, 14:12 UTC

Re: A key for filter images, videos, recently files

Post by *randysejas »

@Stefan2 it was a typing error it's"cmd=cd *.gif *.jpg *.jpeg *.png *.tiff"... the link that contains the image works?? you can see the error there.

@Dalai yes i understand... it's only for test... later i'll change the hotkeys like you said.
User avatar
Dalai
Power Member
Power Member
Posts: 9409
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: A key for filter images, videos, recently files

Post by *Dalai »

Please don't post links to platforms that require an account to view their contents. That is, if you want people to actually be able to help you. There are a lot of free image hosters on the web that don't require an account, some of them not even to upload an image. There's a topic on the forum that contains a list of such hosters: How-to post image picture screenshot.

2Stefan2
For some reason this topic is missing from your Tips and tricks collection (it's present in the German one).

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
randysejas
Junior Member
Junior Member
Posts: 30
Joined: 2016-02-27, 14:12 UTC

Re: A key for filter images, videos, recently files

Post by *randysejas »

@Dalai Thanks i watched the topic and i hope you can see the image now... Image: https://i.imgur.com/2QbRyXJ.png... sorry for the bother... thanks in advance.
gdpr deleted 6
Power Member
Power Member
Posts: 872
Joined: 2013-09-04, 14:07 UTC

Re: A key for filter images, videos, recently files

Post by *gdpr deleted 6 »

It seems you made a mistake when editing usercmd.ini.

Veryify and double-check your edited usercmd.ini diligently.

It looks like you actually have an erroneous "cmd=cmd=..." in your usercmd.ini.
User avatar
randysejas
Junior Member
Junior Member
Posts: 30
Joined: 2016-02-27, 14:12 UTC

Re: A key for filter images, videos, recently files

Post by *randysejas »

It is an error typing here in the forum.... in the usercmd.ini it's ok (cmd=cd *.gif *.jpg *.jpeg *.png *.tiff)
Post Reply