Page 2 of 2

Re: Search Gui: comments checkbox General tab

Posted: 2023-10-10, 20:15 UTC
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.

Re: Search Gui: comments checkbox General tab

Posted: 2023-10-10, 20:27 UTC
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).

Re: Search Gui: comments checkbox General tab

Posted: 2023-10-10, 20:56 UTC
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 :)

Re: Search Gui: comments checkbox General tab

Posted: 2023-10-10, 21:02 UTC
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.

Re: Search Gui: comments checkbox General tab

Posted: 2023-10-10, 23:56 UTC
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!

Re: Search Gui: comments checkbox General tab

Posted: 2023-10-11, 08:30 UTC
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