Search Gui: comments checkbox General tab

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

User avatar
Horst.Epp
Power Member
Power Member
Posts: 6498
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Search Gui: comments checkbox General tab

Post by *Horst.Epp »

One can create an Everything macro which searches for a text as part of file names or its content.
This is easy to use in the TC search with Everything.
The content search part of it can even use Everything content index and runs very fast.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
hi5
Power Member
Power Member
Posts: 551
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: Search Gui: comments checkbox General tab

Post by *hi5 »

@Horst.epp this is about a file comment (e.g what is in descript.ion) not the contents of the file. As far as I know EV can't search comments.
This AutoHotkey script already works so I don't need another solution (I want a builtin solution in TC).
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6498
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Search Gui: comments checkbox General tab

Post by *Horst.Epp »

hi5 wrote: 2023-10-10, 20:27 UTC @Horst.epp this is about a file comment (e.g what is in descript.ion) not the contents of the file. As far as I know EV can't search comments.
This AutoHotkey script already works so I don't need another solution (I want a builtin solution in TC).
Everything can search for the content of descript.ion files as they are simple text files.
I can even let it indexing this content.
Btw. your Autohotkey solution is not a TC build in function but, using Everything is :)
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
hi5
Power Member
Power Member
Posts: 551
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: Search Gui: comments checkbox General tab

Post by *hi5 »

@horst.epp of course it can search it, but it can't match the file with the comment, I have no interest in finding the "descript.ion" file, I want the file associated with the comment (if any). So finding "descript.ion" that has "cat" in it is of no value at all.

I'm not going to post any further comments, it is clear it is a very specific need for one person (me) and of no interest to anybody else.
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
User avatar
tuska
Power Member
Power Member
Posts: 3760
Joined: 2007-05-21, 12:17 UTC

Re: Search Gui: comments checkbox General tab

Post by *tuska »

2hi5
I have solved it like this.

Shift+D opens a separate search window (Find Files (separate)) and the cursor is positioned in the "Value" field.
The TC file comment searched for can be entered.

Shift+D:   em_Dateikommentare-Suche-ALLE

Code: Select all

Kommando:  em_KommentarSuche_alle-Verzeichnisse_ED,em_Dateikommentare
wincmd.ini [Shortcuts]  S+D=em_Dateikommentare-Suche-ALLE  ;Search in subdirectories: All (unlimited depth)

;wincmd.ini [Shortcuts] CA+D=em_Dateikommentare-Suche      ;Search in subdirectories: Current dir only
em_KommentarSuche_alle-Verzeichnisse_ED

Code: Select all

Kommando:  %COMMANDER_EXE%
Parameter: /S=F:LKommentarSuche_alle-Verzeichnisse_ED
Tooltip:   Search in subdirectories: All (unlimited depth) starting from this directory
em_Dateikommentare

Code: Select all

Kommando:  %COMMANDER_PATH%\Tools\AutoHotkey\Dateikommentare.AHK
Parameter:
Startpfad: %COMMANDER_PATH%\Tools\AutoHotkey\
Icondatei: %COMMANDER_PATH%\Tools\AutoHotkey\AutoHotkey.exe
Tooltip:   %COMMANDER_PATH%\Tools\AutoHotkey\Dateikommentare.AHK
Dateikommentare.AHK / FileComments.AHK

Code: Select all

Sleep 500
Send ^{Tab 2}
Send {Tab 5}
Gespeicherte Suche / Saved search
KommentarSuche_alle-Verzeichnisse_ED

Code: Select all

Tab "Allgemeines"  / "General"
- Suchen nach: ed: / Search for: ed:
- ✅ 'Everything'
- Suchen in: leer  / Search in: blank
- Unterverzeichnisse durchsuchen: Alle (Tiefe unbegrenzt)/Search in subdirectories: All (unlimited depth)

Tab "Plugins"
- ✅ Suchen in Plugins / Search in plugins
- ◉ UND (alle Regeln)  / AND (all match)
- Plugin: tc | Eigenschaft/Property: Kommentar/comment | OP: enthält/contains | Wert/Value: leer lassen!/leave it blank!
User avatar
tuska
Power Member
Power Member
Posts: 3760
Joined: 2007-05-21, 12:17 UTC

Re: Search Gui: comments checkbox General tab

Post by *tuska »

To find TC file comments that are in hidden descript.ion files
I use this bookmark in 'Everthing' 1.5a.

Bookmark/Lesezeichen in 'Everything'
  1. Name:

    Code: Select all

    Dateiinhalte\Content: https://www.voidtools.com/forum/viewtopic.php?p=33633#p33633 mycontent:mytext: | ansicontent:mytext: | utf8content:mytext: | utf16content:mytext: |  unicodecontent:mytext: | ifilter-content:mytext: | mc:Suchwort | https://www.voidtools.com/forum/viewtopic.php?t=13506
  2. Match case: Disabled
  3. Match diacritics: Disabled
  4. Match whole word: Disabled
  5. Match path: Disabled
  6. Match prefix: (No change)
  7. Match suffix: (No change)
  8. Ignore punctuation: (No change)
  9. Ignore whitespace: (No change)
  10. Regular expressions: Disabled
  11. Search: custom

    Code: Select all

    content:mytext: | plain-text-content:mytext: | unicodecontent:mytext: | ifilter-content:mytext:
  12. Filter: Everything
  13. Columns: (No change)
  14. Sort: (No change)
  15. View: (No change)
  16. Index: (No change)
  17. Macro: mc<mytext>
  18. Keyboard shortcut:
 
'Everything' search box -> Search query:

Code: Select all

mc:searchword
Everything finds hidden files by default and in this case does not show the TC file comment but only the file "descript.ion".

It is therefore only possible to determine in which folder the TC file comment is located,
but not to which folder or file the TC file comment belongs.

It is still helpful if you also use the cm_SrcComments (on/off) command (Show comments (on/off)).
See: Menu "Show" > Comments ... Ctrl+Shift+F2.




Settings
'Everything' Options - 1.5.0.1357a (x64)
  1. Indexes: Content
    1. ✅ Index file content
    2. Include only folders: D:\;C:\Everything\;C:\totalcmd
    3. Include only files: *.csv;*.doc;*.docx;*.eml;*.ini;*.ion;*.md;*.mdb;*.msg;*.odt;*.pdf;*.pps;*.ppt;*.pptx;*.txt;*.xls;*.xlsm;*.xlsx;*.xlt;*.xltm;*.xltx
Post Reply