Show commented files/folders only?

English support forum

Moderators: sheep, Hacker, Stefan2, white

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

Show commented files/folders only?

Post by *bogordo »

Hi,
Recently i created this command to filter and show onlye .pdf files inside a folder:

Code: Select all

[em_showPDFOnly]
cmd=cd ;"*.pdf"
I was wondering if it is an option to do a similar thing for files and folders that has a comment, thus, if a add comments (Ctrl+z) to files and folders, push this "em_showCommentedOnly" and filter commented staff....?? :)

Thank you,

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

Re: Show commented files/folders only?

Post by *petermad »

You first have to make saved Search:
1. Open the Find Files dialog (Alt+F7).
2. Clear the fields "Search for" and "Search in".
3. Click on the Plugins tab..
4. Click in the "Search in plugins" box.
5. Click on the button in the Property column and select "comment".
6. Click on the button in the OP column and select "!=".
7. Click on the Load/Save tab.
8. Click on the Save button and name the search "Comment" and close the Find Files dialog.
9. Now you can make this command:

Code: Select all

[em_showCommentedOnly]
cmd=cd >Comment

In stead of step 1-8 you can make this entry in the [Searches] section in your wincmd.ini file:

Code: Select all

Comment_SearchFor=
Comment_SearchIn=
Comment_SearchText=
Comment_SearchFlags=0|002002000020|||||||||0000|||
Comment_Plugin=tc.comment != ""
License #524 (1994)
Danish Total Commander Translator
TC 9.5b10 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1909) 64bit, 'Everything' 1.4.1.960 (x64)
TC 3.0b16 on Android 6.0
Get: Extended Total Commander Menus | TC Languagebar | PHSM-Calendar

bogordo
Junior Member
Junior Member
Posts: 78
Joined: 2019-12-06, 09:07 UTC

Re: Show commented files/folders only?

Post by *bogordo »

Amazing!! thank you very much (...again and again) ;)

bogordo
Junior Member
Junior Member
Posts: 78
Joined: 2019-12-06, 09:07 UTC

Re: Show commented files/folders only?

Post by *bogordo »

Sorry, it's not working 100%...mmm in this case, the orange folders are the only one with comments but after executing the command the yellow ones are still there (the files are hidden accordingly).

I guess is some character with the folder searching filter??

Image: https://i.ibb.co/znzHtZm/CAPT-0006.png

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

Re: Show commented files/folders only?

Post by *petermad »

I can not make it work as a permanent filter for files and folders, but I can make this, that will work until you leave the directory - or until TC looses focus:

usercmd.ini:

Code: Select all

[em_selectCommentedFilesAndFolders]
cmd=SELECTFILESB >Comment

[em_showCommentedOnly]
cmd=em_selectCommentedFilesAndFolders,cm_ShowOnlySelected,cm_ClearAll
An then use em_showCommentedOnly
License #524 (1994)
Danish Total Commander Translator
TC 9.5b10 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1909) 64bit, 'Everything' 1.4.1.960 (x64)
TC 3.0b16 on Android 6.0
Get: Extended Total Commander Menus | TC Languagebar | PHSM-Calendar

bogordo
Junior Member
Junior Member
Posts: 78
Joined: 2019-12-06, 09:07 UTC

Re: Show commented files/folders only?

Post by *bogordo »

Working perfect!! you are a machine :), thanks one more time.

Post Reply