Show commented files/folders only?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
bogordo
Member
Member
Posts: 172
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: 15997
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.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
bogordo
Member
Member
Posts: 172
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: 172
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: 15997
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.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
bogordo
Member
Member
Posts: 172
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
Hirszowski
Junior Member
Junior Member
Posts: 6
Joined: 2023-03-15, 22:43 UTC

Re: Show commented files/folders only?

Post by *Hirszowski »

6. Click on the button in the OP column and select "!=".

And what option shoul I select to search otherwiste, i.e. show all uncommented files?
Your advice will be appreciated :)
Andy
Hirszowski
Junior Member
Junior Member
Posts: 6
Joined: 2023-03-15, 22:43 UTC

Re: Show commented files/folders only?

Post by *Hirszowski »

Is it possible that the results of searches generated with saved searches are displayed in a "normal" filelist window, i.e. that command "feed to listbox" shows the files in a window showing file details rather than only their paths and names?
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Show commented files/folders only?

Post by *petermad »

Hirszowski wrote: 2025-04-12, 22:21 UTC i.e. that command "feed to listbox" shows the files in a window showing file details rather than only their paths and names?
You can just feed it into a panel showing custom columns with the details you want.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Hirszowski
Junior Member
Junior Member
Posts: 6
Joined: 2023-03-15, 22:43 UTC

Re: Show commented files/folders only?

Post by *Hirszowski »

petermad wrote: 2025-04-13, 13:54 UTC
Hirszowski wrote: 2025-04-12, 22:21 UTC i.e. that command "feed to listbox" shows the files in a window showing file details rather than only their paths and names?
You can just feed it into a panel showing custom columns with the details you want.
Thank you for your time to answer and advice! :)
However, I seem I cannot find an option how to [/quote] feed it into a panel showing custom columns with the details you want [/quote]. But I found a solution: it appears that all I need to do is to save the search when I define the search parameters, if the search will be a new one, or, if it is not such search, the name of saved searches are displayed in "Show>Custom" tab and the search result is displayed in a window with columns I normally use. Therefore, any new search should be saved and then selected in the Show>Custom tab.
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Show commented files/folders only?

Post by *petermad »

I cannot find an option how to "feed it into a panel showing custom columns with the details you want"
You have to make a Custom Columns View first - it could show the same as the Full View - see: https://tcmd.madsenworld.dk/customlikefull.png

Then either before or after you have Fed to listbox you right-click on the tabstop header (or press Shift+F1) and choose the view "Standard+seconds".
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Hirszowski
Junior Member
Junior Member
Posts: 6
Joined: 2023-03-15, 22:43 UTC

Re: Show commented files/folders only?

Post by *Hirszowski »

petermad wrote: 2025-04-13, 13:54 UTC
Hirszowski wrote: 2025-04-12, 22:21 UTC i.e. that command "feed to listbox" shows the files in a window showing file details rather than only their paths and names?
You can just feed it into a panel showing custom columns with the details you want.
Yes, that command opens a window which displays only full paths and names of files and no other file info, such as size, creation date etc. And there is no room on the two-panel screen to show such details, because file paths and names are long and occupy all the panel.
Hirszowski
Junior Member
Junior Member
Posts: 6
Joined: 2023-03-15, 22:43 UTC

Re: Show commented files/folders only?

Post by *Hirszowski »

petermad wrote: 2025-04-14, 10:47 UTC
I cannot find an option how to "feed it into a panel showing custom columns with the details you want"
You have to make a Custom Columns View first - it could show the same as the Full View - see: https://tcmd.madsenworld.dk/customlikefull.png

Then either before or after you have Fed to listbox you right-click on the tabstop header (or press Shift+F1) and choose the view "Standard+seconds".
Thank you for your advice. I simply failed to think of the right-click on the tabstop header and I missed the Shift+F1 shortcut. It works more or less as expected.
Post Reply