Show commented files/folders only?

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
bogordo
Member
Member
Posts: 150
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,
TC license #346559
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: 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 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
bogordo
Member
Member
Posts: 150
Joined: 2019-12-06, 09:07 UTC

Re: Show commented files/folders only?

Post by *bogordo »

Amazing!! thank you very much (...again and again) ;)
TC license #346559
bogordo
Member
Member
Posts: 150
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
TC license #346559
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: 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 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
bogordo
Member
Member
Posts: 150
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.
TC license #346559
Post Reply