Search queries in TC using 'Everything'

English support forum

Moderators: sheep, Hacker, Stefan2, white

User avatar
tuska
Power Member
Power Member
Posts: 2004
Joined: 2007-05-21, 12:17 UTC

Search queries in TC using 'Everything'

Post by *tuska »

As of Total Commander 9.0, the tool 'Everything' can be integrated into a search query with its own search parameters.
In order to use the search parameters of 'Everything' in Total Commander, the search parameters of 'Everything'
must be prefixed additionally with the search parameters of Total Commander, namely "ev:" or "ed:".
The latter limits the search to the current search directory [directory depth adjustable].
1. TC Parameter --> ed:
Show
TC Parameter --> ed:

Code: Select all

Start search query:
- Search... ................... Alt+F7	      | Field "Search for":
- Search in separate process...	Alt+Shift+F7  | Max. number of characters: 2046
- Search in separate process...	Ctrl+F        (self-defined key combination) *)

Search for: 		    --> up from the current directory in the active TC window
ed:dm:today		    --> Search for folders and files that have been changed (dm:) today (today)
ed: *.msg dc:thisweek	    --> Search for emails (.msg) created (dc:) this week (thisweek)

- Search in TC with [Parameter(s) of] 'Everything' up from the current directory - adjustable directory depth!
  [even if the field "Search in:" is empty *)].

- *) 'Field' Search in: 'empty': 
  This is the case, for example, if you have redefined and used a shortcut key yourself - see:
  https://www.ghisler.ch/phpBB3/viewtopic.php?f=2&t=47 (Settings)
  CTRL+F | Search in TC with integration of 'Everything' | Prefix ed: | Separate window
  "Only search in selected directories/files" is not possible in this case (shortcut) for folders, files and archives.  
  
  Ctrl+F is currently assigned by default to "FTP Connect ..." (see: menu "Net").   
  Shift+F is also useful as a shortcut key because it has not been assigned a command by default.
  
- If 'Everything' is checked - without prefix ed: - then the search criteria of TC (with the support of 'Everything') apply,
  i.e. you still get the search result much faster than if 'Everything' is not checked.

- HISTORY.TXT 
  16.10.19 Release Total Commander 9.50 beta 1
  16.07.19 Added: Find files: Automatically check 'Everything' option when using prefix ev: or ed: in search field (32/64)
  
  30.11.16 Release Total Commander 9.0a release candidate 1 (32/64)
  29.11.16 Added: Search function: 
           Use prefix ed: instead of ev: for unfiltered Everything search in the location(s) given by "Search in" field. 
           Also supports the "limit depth" option (in the drop-down box: "Search in subdirectories") (32/64)
           
2. TC Parameter --> ev:
Show
TC Parameter --> ev:

Code: Select all

Start search query:
- Search... ................... Alt+F7	      | Field "Search for":
- Search in separate process...	Alt+Shift+F7  | Max. number of characters: 2046
- Search in separate process...	Shift+S       (self-defined key combination) *)

  *) This is the case, for example, if you have redefined and used a shortcut key yourself - see (-> only example!):
  https://www.ghisler.ch/phpBB3/viewtopic.php?f=2&t=47 (Settings)
  CTRL+F | Search in TC with integration of 'Everything' | Prefix ed: | Separate window
  SHIFT+S could for example be defined for a search in a separate process with prefix ev:  
  "Only search in selected directories/files" is not possible in this case (shortcut) for folders, files and archives.  
  
If ev: is entered in TC in the field "Search for:", then
- in TC the content of field "Search in:" (path, drives) is IGNORED!
- in TC the field "Search in subdirectories:" is IGNORED! **)
- this means that the search is performed in TC in all indexed drives/folders using 'Everything'.

However, the search is only carried out in those drives/folders that have been defined accordingly in the 'Everything' settings,
i.e. under menu "Tools" - "Options..."
- Indexes: NTFS (Local volumes) - ☑ Include in database,...                (Hard disks + USB drives: NTFS formatted)
- Indexes: Folders              - ☑ Attempt to monitor changes, ◉ Update  (e.g. network folders, USB drives[FAT32,...], etc.*))
- Indexes: NTFS  		  https://www.voidtools.com/support/everything/everything_service/
- Indexes: Folders                https://www.voidtools.com/support/everything/folder_indexing/

*) etc. means in this case: Drives that are not NTFS formatted.

Files and folders that have been indexed and created, for example, today are immediately found, e.g. on drive C:, D:, I:, etc.

Search for: 	            --> in all indexed drives and folders; field: "Search in:" (path, drives) IGNORED!
  ev:dm:today		    --> Search for folders and files that have been changed (dm:) today (today)
  ev:dm:last30minutes <folder:|file:> !C: --> Search for folders and files <folder:|file:>,
  				which changed (dm:) in the last 30 minutes (last30minutes),
  				with the exception of drive C: (!C:)
  **) The search can be narrowed down with the parameter ev:, e.g. as follows (for drive D: or D:,I:,J:):
  ev:D: !child:*.xyz child:*.bak 		) 
  ev:<D:|I:|J:> !child:*.xyz child:*.bak	) --> http://www.voidtools.com/support/everything/searching/
  ev:dupe:files:<audio:|video:>  Search for audio and video files in TC NOT possible, because audio and video are 'Everything' macros!
  ev:dupe:files:ext:wav;avi;mp4;mov; Search for duplicates of audio and video files in TC possible (with file extension specification)!

- If 'Everything' is checked - without the prefix ev: - then the search criteria of TC (with the support of 'Everything') apply,
  i.e. you still get the search result much faster than if 'Everything' is not checked.

- HISTORY.TXT 
  16.10.19 Release Total Commander 9.50 beta 1
  16.07.19 Added: Find files: Automatically check 'Everything' option when using prefix ev: or ed: in search field (32/64)
  
  13.07.16 Release Total Commander 9.0 beta 5 (32/64)
  13.07.16 Added: Experimental, not yet documented in help: Pass search parameters directly to "Everything" with prefix ev:,
  e.g. ev:<c:|d:> *.mp3 Note: All other search parameters except for the path field will still be applied to the results (32/64)  
  
3. RegEx - Regular Expressions
Show
RegEx - Regular Expressions

Code: Select all

RegEx
- If you use ev: or ed: in TC in the field "Search for:", then the search criteria/parameters of 'Everything' apply,
  i.e. the 'Everything' parameter regex: MUST be specified (!).
  Examples:
  ev:regex:((.+?)?(?=\.vbs))(.vbs)$             https://ghisler.ch/board/viewtopic.php?p=362188#p362188 (English)
  ed:files:regex:^(?!\d\d\d\d\-\d\d-\d\d_).+    https://ghisler.ch/board/viewtopic.php?p=363774#p363774 (German)
  If the prefix ed: is used, the directory depth can also be set in TC, for example.
  
- If ☑ RegEx and ☑ 'Everything' is checked (NO ev: and ed:),   
  then the search criteria of TC (with the support of 'Everything') apply.  
  
- F1 - Help: Total Commander uses the free Delphi library TRegExpr by Andrey V. Sorokin.
  https://regex.sorokin.engineer/ (before: http://www.regexpstudio.com/ <"This domain has expired">)
  See also: 
  - Syntax of Regular Expressions by Andrey V. Sorokin
    http://mp3bookhelper.sourceforge.net/help/TagEditing/SyntaxOfRegularExpressions.html
  - Inofficial FAQs (German/English) by Stefan2:
    https://ghisler.ch/board/viewtopic.php?p=323986#p323986
  - Link: "ReNamer: Regular Expressions",...
    https://ghisler.ch/board/viewtopic.php?p=362271#p362271

- QuickSearch eXtended-Plugin by Samuel Plentz 
  - Main- and [download-]Link ..............:   https://ghisler.ch/board/viewtopic.php?t=22592
  - DEELX - Regular Expression Engine for C++   https://www.ghisler.ch/board/viewtopic.php?p=173376#p173376,
      https://www.codeproject.com/Articles/15917/DEELX-Regular-Expression-Engine-for-C
    - DEELX supports PERL compatible regular expression syntax.
    - Besides the basic pattern syntax, DEELX has implemented many extended syntaxes...
  - Example (German):
    Search query (-> RegEx) with the QuickSearch eXtended plugin
    https://ghisler.ch/board/viewtopic.php?p=363822#p363822
    
- [WDX] PCREsearch"-Plugin by milo1012 ... Perl Compatible Regular Expressions (PCRE)
  Link: https://www.ghisler.ch/board/viewtopic.php?t=38098
  or    https://www.ghisler.ch/board/viewtopic.php?f=6&t=38098  

- 'Everything' uses 'Perl Compatible Regular Expressions (PCRE)'
  'Everything' - Menu "Help" - "About Everything CTRL+F1" - "License"...
  See also: https://ghisler.ch/board/viewtopic.php?p=362273#p362273
  
- Difference between RegEx versions used in 
  TC (TRegExpr) <=> QuickSearch eXtended-Plugin (PCRE), "PCREsearch"-Plugin (PCRE) and 'Everything' (PCRE):
  TC (TRegExpr) ==> does NOT support "Lookaround-Assertions", e.g. "lookahead" and "lookbehind".
  
  https://ghisler.ch/board/viewtopic.php?p=363825#p363825
  https://stackoverflow.com/questions/2973436/regex-lookahead-lookbehind-and-atomic-groups
  https://www.regular-expressions.info/lookaround.html

- Important - see: https://ghisler.ch/board/viewtopic.php?p=364111#p364111: 
  Note that 'TRegExpr' as well as 'Everything's' implementation of 'Perl Compatible Regular Expressions (PCRE)' 
  are case insensitive.
  
4. F1 - Help and explanation
Show
F1 - Help and explanation

Code: Select all

Put "ev:" in front of the search string to pass it to 'Everything' unchanged. 
You will then have to use the 'Everything' search syntax, see www.voidtools.com.

Put "ed:" in front of the search string: Like "ev:", but search only in the directories specified in the "Search in" field. 
Also handles "Search in subdirectories" option. 
This is handled by prefixing path:c:\path and optionally parents:<nr to the entered search string.

Explanation of Mr Ghisler / https://www.ghisler.ch/board/viewtopic.php?p=353536#p353536
-------------------------------------------------------------------------------------------
Incidentally, these are just internal TC parameters - they just tell TC
that he should pass the search string 1:1 without any changes to 'Everything' (with or without current directory).
Without this prefix, the TC search string is converted to the 'Everything' syntax and the returned result
again compared with the search parameters.

1    Help for Total Commander parameters ed: and ev:
1.1 F1 - Help: e.g. search for ed: --> Double click on "Dialog box: Search: General" --> Examples:
1.2 HISTORY.TXT
1.3 Search queries in TC using 'Everything' (this topic)
1.4 Total Commander Forums

2    Help on 'Everything' parameters
2.1 Searching: https://www.voidtools.com/support/everything/searching/
2.2 Directly in 'Everything' - menu "Help"
2.3 'Everything' Manual - Offline Support: https://www.voidtools.com/forum/viewtopic.php?f=2&t=6853
2.4 voidtools forum: https://www.voidtools.com/forum/index.php

5. F2 Search in found files/folder
Show
F2 Search in found files/folder

Code: Select all

- HISTORY.TXT
  Options added during the development of 9.22 (but only added to 9.50):
  04.02.19 Added: Search dialog: Option to search in search results only (32/64)
  04.02.19 Added: Search dialog: View previous search results (32/64)
  -----------------------------------------------------------------------------------------
  These functions related to "F2 Find in found files/folders" are for normal users
  available since 16.10.19 Release Total Commander 9.50 beta 1.
  -----------------------------------------------------------------------------------------
  
- How it works - example
  1. Search for: ed:ext:docx;dotx;doc;dot;rtf;txt
  2. Press the "Start search" button
  3. 'F2 Search in found files/folders' ...
     3.1 Press F2       -> the content of the field "Search for:" is highlighted
     3.2 Set check mark -> the content of field "Search for:"     is NOT marked
  4. Overwrite the entire - marked - first search term with a second search term
  5. Press the "Start search" button -> if applicable, you will receive a new search result;
     'F2 Find in found files/folders' is still checked
  6. Click on the button '<' --> the previous (first) search result is displayed - the second search term is displayed *)
  7. Click on the button '>' --> the last (second) search result is displayed    - the second search term is displayed
  
- *) On this point I have put forward a proposal here: https://ghisler.ch/board/viewtopic.php?f=14&t=54477

- NOTE on the use of prefix ev: and ed: in connection with 'F2 Search in found files/folders'
  It is not possible in an existing (first) search result after using 'F2 Search in found files/folders'
  to use the prefix ev: or ed: in the field "Search for:".

  In such a case, these error messages appear:
  ---------------------------------------------------------------------------------------------------------------
  | 	Function not supported!				|	Function not supported!				|
  | 	ed:						|	ev:						|
  | 	+						|	+						|
  | 	F2 Search in found files/folders		|	F2 Search in found files/folders		|
  ---------------------------------------------------------------------------------------------------------------
  ... and afterwards in the field "Search results" and status line: " [No files found] - search aborted" ...

  If you now remove the prefix ed: or ed: in the field "Search for:" and press the button "Start search" again,
  then you search for the search term and you get search results if applicable ... but ...
  ATTENTION: This method is not 100% reliable -> I think it is always recommended to start a new search query(!)
  ---------------------------------------------------------------------------------------------------------------  
  The function 'F2 Search in found files/folders' can also be executed several times!
  
  IMPORTANT NOTE according to email from 16.12.2019 by Mr. Ghisler:
  If there are folders in the search result, then after 'F2 Search in found files/folders' 
  it will be searched in these folders (!), the folders themselves are no longer part of the search result!
  ---------------------------------------------------------------------------------------------------------------    
  The prefix ev: or ed: may only be used for the first search query.
  
  Reason: https://ghisler.ch/board/viewtopic.php?p=361326#p361326
  "Therefore it's not possible to tell Everything to search in a given set of previous search results."

  Example:
  1. Search for: ed:ext:docx ... OR ... ed:*.docx
  2. Press the "Start search" button
  3. 'F2 Search in found files/folders'
     3.1 Press F2       -> the content of the field "Search for:" is highlighted
     3.2 Set check mark -> the content of field "Search for:"     is NOT marked
  4. Overwrite the entire - marked - first search term with a second search term,  
     e.g. with ed:Macro --> the prefix ed: cannot be used here again, 
     an error message is displayed as shown above.
     
- Search rules - Special feature - IMPORTANT NOTES(!)
  1. Search e.g. for: ed:ext:txt -------------------------------> 1st search result: 'Everything' search rules are applied!
     Example: 						          ************************************************************
     Without any 'Everything' parameters hidden files will be found.
  
  2. 'F2 Search in found files/folders': Press F2
     When searching in results (by pressing F2) 'Everything' is not used! (Email from 24.12.2019 by Mr. Ghisler)
     30.12.19 Release Total Commander 9.50 beta 11
     24.12.19 Fixed: Find files, F2 search in found files/folders: 'Everything' option must be ignored, 
              it could lead to duplicate search results when nested directories were in the previous results (32/64)
  
  2a Search for: keyword (2nd search query, without ev: ed:) ---> 2nd search result: Total Commander search rules are applied!
     Example: 							  ************************************************************
     To find hidden files in TC,
     1. these must be shown first, e.g. with the command: cm_SwitchHidSys ... OR
     2. you have to search for hidden files: Tab "Advanced" -> Attributes: Hidden.
     
  This was, however, an example in which, during the first search, you could use 'Everything' to receives more search results. 
  In case of doubt it is recommended to perform an additional search query directly in 'Everything'.
  
  Reason: https://ghisler.ch/board/viewtopic.php?p=361326#p361326
  "Therefore it's not possible to tell Everything to search in a given set of previous search results."

3. See also: 
   "6. Search in selected directories/files only", .................. Point 11.
   "7. Search in selected archives only (e.g. * .zip, * .rar, etc.)", Point 12.
     
6. Search in selected directories/files only
Show

Code: Select all

Note:
The TC parameters -> ed: and ev: are not supported in "Only search in selected directories/files"!
In such cases, an error message is displayed.

 1. Mark files, e.g. 5 files | Mark folders, e.g. 3 folders
 2. Search in separate Process... Alt+Shift+F7
 3. ALT+TAB -> Switch to another task and then press ALT+TAB again to return to the "Find Files" window:
    Result: "Only search in selected directories/files" is unchecked! ... 
    Help-F1: Note: When using "Search in separate process" (Alt+Shift+F7), this option gets disabled when you switch away 
                   from the search dialog to any other window (because the selection could be changed by that).
 4. Click the "Cancel" button!
 5. Search in separate Process... Alt+Shift+F7
 6. Enter search word
 7. Start search
 8. Search result exists
 9. ALT+TAB -> Switch to another task and then press ALT+TAB again to return to the "Find Files" window:
    Result: "Only search in selected directories/files" remains checked!
10. Click the "Start search" button: The same search result is displayed
11. "F2 Search in found files/folders": Press F2 or click this menu item
    Result: "Only search in selected directories/files" is unchecked immediately!
12. Enter new search word
    Result:
    - A new search word may be found
    - It is possible to scroll with the arrow keys "<" and ">"        
13. Click on the button "New search"
    Result:
    - The last search word entered is retained
    - "Only search in selected directories/files" is not checked, even though the files are still selected.
      This is fine because a new search has started.
    - The search for a new search term may be successful
14. Close the "Find files" window (with ESC or click on "X")
15. Remove marking for files or folders with Ctrl + Num-
             
7. Search in selected archives only (e.g. * .zip, * .rar, etc.)
Show

Code: Select all

Notes: 
- Each search query in an archive file is basically treated as a new search query. 
- "F2 Search in found files/folders" can be used in a supporting way - see: point 12.
- The TC parameters -> ed: and ev: are not supported in "Only search in selected directories/files"!
  In such cases, an error message is displayed.

Example with the following two test files:

Path\to\Test.zip	Path\to\Test1.zip 
------------------------------------------
|- ACCESS_XP.mdb	|- Excel_XP.xls	
|- DVD_XP.doc		|- Project_XP.mdb
|- DVD_XP_2000.mdb

Code: Select all

Note: TC remembers the last manual setting and applies it during the next search [e.g. in another folder],
no matter whether it is an archive or an image file, for example. The setting is retained until it is manually overridden!

 1. Mark ZIP archives, e.g. 2 archives
 2. Search in separate Process... Alt+Shift+F7
 3. ALT+TAB -> Switch to another task and then press ALT+TAB again to return to the "Find Files" window:
    Result: "Only search in selected directories/files" is unchecked!
    Help-F1: Note: When using "Search in separate process" (Alt+Shift+F7), this option gets disabled when you switch away 
                   from the search dialog to any other window (because the selection could be changed by that).
 4. Click the "Cancel" button!
 5. Search in separate Process... Alt+Shift+F7
 6. Enter search word: xp
 7. Check "Search archives (all except UC2)" - see also: Note...
 8. Start search
 9. Search result exists (5 files)
10. ALT+TAB -> Switch to another task and then press ALT+TAB again to return to the "Find Files" window:
    Result: 
    - "Only search in selected directories/files" remains checked!
    - "Search archives (all except UC2)" remains checked!
11. Click the "Start search" button: The same search result is displayed

Code: Select all

12. "F2 Search in found files/folders": Not selectable, as it is greyed out - 
    searching in search results of an archive file is still possible(!), but not always restrictive,
    i.e. a new or previously entered search word - which is currently not in the search results - 
    is interpreted like a new search in the selected ZIP archives! See also points up from 12g...
    This means that each search query in an archive file is treated like a new search query.
12a ("F2") - Enter 1st search word: dvd
12a Leave settings unchanged
    - "Only search in selected directories/files"
    - "Search archives (all except for UC2)"
12b Start search
12c Search result (filtered) exists (2 files)
    Result:
    - New search word is found and the search result has been filtered
    - It is possible to scroll with the arrow keys "<" and ">"
    - [Multiple] ALT+TAB in the TC window and back *usually* automatically removes the marking from the 2 ZIP archives
12d ("F2") - Enter 2nd search word: 20
12d Leave settings unchanged
    - "Only search in selected directories/files"
    - "Search archives (all except for UC2)"
12e Start search
12f Search result (filtered) exists (1 file)
    Result:
    - New search word is found and the search result has been filtered
    - It is possible to scroll with the arrow keys "<" and ">"
    - [ALT+TAB in the TC window and back automatically removes the marking from the 2 ZIP archives - see point 12c!]
12g ("F2") - Enter 3rd search word: xp ... see also: points 6. + 9. ... this was also the first search word (without "F2")!
    [Search word: xp; ("F2"): dvd, 20, xp]
12g Leave settings unchanged
    - "Only search in selected directories/files"
    - "Search archives (all except for UC2)"
    - 2 ZIP archives in a TC window already WITHOUT marking
    - Search result (filtered) exists (1 file)
12h Start search
12i Search result exists (5 files - see also: point 6. + 9.!)
    Result:
    - A "new" or, in this case, previously entered search word is found [again] if necessary and 
      the search result is displayed (in this case the content of 2 ZIP files, that is a total of 5 files)
    - Scrolling with the arrow keys "<" and ">" is still possible as the search window is still open...
 

Code: Select all

13. Click on button "New search"
    Result:
    - "Only search in selected directories/files" remains checked (-> change if necessary... <-) - even after ALT+TAB,...
    - "Search archives (all except for UC2)" remains checked .... (-> change if necessary... <-) - even after ALT+TAB,...
    - The last search word entered is retained
    - The search for a new keyword: Access ... is possible/successful
      !! Although "F2 Search in found files/folders" is grayed out and cannot be clicked		  !!
      !! a search in the search result of an archive file is possible in a certain way! - See: point 12!  !!
14. Close the "Find files" window (with ESC or click on "X")
15: Remove marking for files/folders with Ctrl+Num- -> Omitted because the marking has already been removed automatically (pt. 12c)

8. Search in archives only (e.g. * .zip, * .rar, etc.); File extensions
Show

Code: Select all

Notes: 
- The TC parameters -> ed: and ev: are not supported in "Search archives (all except for UC2)"!
  ('Everything' does not currently offer this option).
  
- Otherwise, the search in archives works analogously to "7. Search in selected archives only (e.g. * .zip, * .rar, etc.)".

- "Find Files" -> "Search in separate process... Alt+Shift+F7" - Button "Help": ... Search archives
  Enables search in files with extension ZIP, ARJ, LZH, RAR, TAR, GZ, CAB, ACE, and 7Z. 
  Text can even be searched in archives! The files are unpacked, searched and deleted on the fly.
  
- 'Everything' - Filter "Compressed" (contains the following file extensions... | <Line break inserted only for format reasons>):
  ext:7z;ace;arj;bz2;cab;gz;gzip;jar;r00;r01;r02;r03;r04;r05;r06;r07;r08;r09;r10;r11;r12;r13;r14;r15;r16;r17;r18;r19;r20;
  r21;r22;r23;r24;r25;r26;r27;r28;r29;rar;tar;tgz;z;zip

  In 'Everything' it is possible to add to the previous list yourself, for example the file extension LHA,   
  which is displayed in TC by default in the "Pack files" dialog window:   
  Menu "Search" - "Organize Filters..." - "Compressed" - "Edit" - Field "Search:" ...
9. File list; Search in a text file (containing a list of files and directories to be searched),...
Show

Code: Select all

Total Commander
Example: https://ghisler.ch/board/viewtopic.php?p=368696#p368696
See ...: Help -> Search in separate process... Alt+Shift+F7 -> Find Files - click on button "Help" ---> Search in:

         ***************************************************
	 ... ALT+F7 --> Search in: @c:\Path\Filename.txt ...
         ***************************************************	 
	 
According to information by email of 3.2.2020 from the author the following is to be considered:
- Double entries in the search result: This can only occur if there are overlaps,
  e.g. if you search in c:\windows and c:\windows\system32.
- Missing folders in search results: If you search in c:\windows, for example, the folder c:\windows itself will not be found.
  Otherwise no folders should be missing!

Code: Select all

'Everything'
Example1: https://www.voidtools.com/forum/viewtopic.php?f=5&t=7308
	  How to search a list file?
	  
          Menu "Search" - "Advanced Search..." - Field: "Search for a list of file names:" 
          Note the tooltip for this field!
          - Click the "Browse..." button and select the file list (.TXT file), then click "Open":
            The field "Search for a list of file names:" was filled..., Click "OK".
            In 'Everything' the search results are displayed: Complete path, etc. to the search terms in the .TXT file.
	  - In the input line of 'Everything' you can still make entries to reduce the displayed search results.
	  - If necessary, it is recommended to apply a filter to the search result,
	    e.g. !<C:|I:|J:> (i.e. the results of drive C:, I: and J: should be excluded from the search result).	  

Code: Select all

'Everything'
Example2: https://www.voidtools.com/forum/viewtopic.php?p=24413#p24413 
	  Search for an ORed list of searches
                
	  /paste_new_line_op=1
	  Fill in this in the input line/search box, then press ENTER = SWITCH ON (see also status line).
	  MARK individual/several/all search terms in a text file, then copy them to the clipboard with CTRL+C
	  and then paste them into the input line of 'Everything' with CTRL+V.
	  
	  Important instructions:
	  - The search is done per line!
	  - Do NOT insert a line (ENTER) after the last search term in the text file!
	  
	    If in 'Everything' after inserting in the input line at the end (!) for example the following is displayed: |<>
	    Example: <search term 1>|<search term 2>|<search term 3>|<>
	    then |<> must be REMOVED at the end of the input line, i.e. it has to be deleted(!)
	    (because then there was a <ENTER> after the last line/the last search term in the text file).
	    
	  - If necessary, it is recommended to apply a filter to the search result,
	    e.g. !<C:|I:|J:> (i.e. the results of drive C:, I: and J: should be excluded from the search result).
	    
	  - Search box in 'Everything', maximum number of characters: 
	    The search field is limited to 2 billion characters: 
	    2,000,000,000,000  10^9, 9 zeros ... https://en.wikipedia.org/wiki/Billion
	    There is a limit of 4096 visible characters.
	    If you have more than 4096 characters the search box will still work, it will just not render correctly.
	    See: 
	    https://www.voidtools.com/forum/viewtopic.php?p=25286#p25286
	    https://www.voidtools.com/forum/viewtopic.php?p=25347#p25347
	    
	  - "Search for:" field in TC: Max. Number of characters: 2046 characters
	    
	  /paste_new_line_op=0
	  Fill in this in the input line/search box, then press ENTER = SWITCH OFF (see also status line),
	  if this option is no longer desired.
	  	  
10. Searching file contents ('Everything' -> content:)
Show
https://www.voidtools.com/forum/viewtopic.php?t=5121                   Warning: Content searching is extremely slow. File content is not indexed.
https://www.voidtools.com/forum/viewtopic.php?p=30513#p30513     Content indexed in 'Everything' -> in the next major release...

Examples
https://www.voidtools.com/forum/viewtopic.php?p=14780#p14780
A separate content field is on my TODO list.
For now, please add the content: search to the end of your search, e.g.

Code: Select all

foo.bar content:qux
ed:*.txt content:Everything
For performance reasons, it is advisable to narrow down the search for file contents as much as possible,
e.g. as mentioned in these examples.

Link collection (Ctrl+click on link ...)
https://www.voidtools.com/forum/viewtopic.php?p=22688#p22688    content: will only search in files that you have indexed!
https://www.voidtools.com/forum/viewtopic.php?t=5121                   Content Searching
https://www.voidtools.com/forum/viewtopic.php?p=19430#p19430    Content searcher - txt doc pdf
https://www.voidtools.com/forum/viewtopic.php?f=5&t=8854            > Using wildcards in content search
https://www.voidtools.com/forum/viewtopic.php?p=20547#p20547    > wildcard content comparison (not by default!)
https://www.voidtools.com/forum/viewtopic.php?f=2&t=8591            Possible to do regex search in file *contents*?
https://www.voidtools.com/forum/viewtopic.php?f=2&t=8810            Command line search for word or phrase in files
11. Search duration - how long does it take until the search result is displayed?
Show
Reference: https://www.voidtools.com/forum/viewtopic.php?p=30326&sid=ba9b059817d17bc6adcd1ac85fdeff2b#p30326

11.1  Search directly in 'Everything':

Code: Select all

- A normal search should take about 15 milliseconds per 1 million files.
- A 'match path' search should take about 50 milliseconds per 1 million files.
- Wildcards (?,*,etc.) will make the search slower.
  See also:
  https://en.wikipedia.org/wiki/Wildcard_character
  https://en.wikipedia.org/wiki/Regular_expression

Note:
If the above values are not nearly achieved, it is advisable to check the settings in 'Everything',
e.g. with regard to indexing -> see: http://www.voidtools.com/support/everything/indexes/ or point 2. TC parameter -> ev:
11.2  Search in TC using 'Everything':

Code: Select all

At the times mentioned above, time for the preparation of the search results in Total Commander must be added.
This time is unknown, but the status bar shows in percent(!) how many search results were transferred to Total Commander.
11.3  Searching file contents with 'Everything' (content:)

Code: Select all

https://www.voidtools.com/forum/viewtopic.php?t=5121 	
Warning: Content searching is extremely slow. File content is not indexed.
https://www.voidtools.com/forum/viewtopic.php?p=30513#p30513
Content indexed in 'Everything' -> in the next major release...
HISTORY.TXT

Code: Select all

16.10.19 Release Total Commander 9.50 beta 1
22.07.19 Added: Search with 'Everything': Show percent of the search results transferred to Total Commander and 
added to the result list ('Everything' reports the total number of found files) (32/64)
12. Link collection (Ctrl+click on link ...)
Show
Important links
https://www.voidtools.com/downloads/                                                'Everything' Downloads
https://www.voidtools.com/forum/viewtopic.php?f=2&t=5718               'Everything' 1.4.1 Beta Nightly Builds
http://www.voidtools.com/support/everything/installing_everything/   'Everything' Installation
https://ghisler.ch/board/viewtopic.php?p=346372#p346372                    'Everything' Important information + settings (1 of 2)
https://ghisler.ch/board/viewtopic.php?f=3&t=51534                             'Everything' Important information + settings (2 of 2)
http://www.voidtools.com/support/everything/searching/                    'Everything' Parameters for the search
https://www.voidtools.com/forum/viewtopic.php?t=5121                      'Everything' Content Searching (see also point 10.)
https://www.voidtools.com/forum/viewtopic.php?p=28807#p28807        'Everything' Modifiers (list)
https://www.voidtools.com/forum/viewtopic.php?f=5&t=6619               'Everything' Modifiers vs Functions
https://www.voidtools.com/forum/viewtopic.php?f=5&t=5817               'Everything' Search commands (search box in 'Everything')
https://www.voidtools.com/forum/viewtopic.php?p=28424#p28424        'Everything' Syntax Performance?
https://ghisler.ch/board/viewtopic.php?p=382958#p382958                    Pass UNC-Path to 'Everything'/Drive letter-mounted (German)
https://www.voidtools.com/forum/viewtopic.php?t=6697&p=31077#p31056  ) JumpToFolder - 'Everything' in Explorer and File dialogs
https://ghisler.ch/board/viewtopic.php?p=386621#p386621 (German)           ) 'Everything': Support for "Browse for Folder" dialogs AND
                                                         JumpToFolder - Author: NotNull           ) Display contents of folder in 'EV' in TC/view file in TC
https://regex.sorokin.engineer/                                                            TRegExpr by Andrey V. Sorokin
https://regex101.com/                                                                         Online RegEx Tester (Quick Reference, Explanation)
https://regexone.com/                                                                         RegexOne - Learn Regular Expressions
http://gamon.webfactional.com/regexnumericrangegenerator/             Regex Numeric Range Generator
This summary is also available in German language.
Last edited by tuska on 2020-06-08, 10:04 UTC, edited 4 times in total.

alexblade
Junior Member
Junior Member
Posts: 19
Joined: 2012-02-07, 09:24 UTC
Contact:

Re: Search queries in TC using 'Everything'

Post by *alexblade »

hi

where I can read about all this parameters ed: ev: ?

and one more: as I understand correct , TC can find (using Everything) only files (by name), it cannot find text in files , am right?

User avatar
nsp
Power Member
Power Member
Posts: 1290
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: Search queries in TC using 'Everything'

Post by *nsp »

alexblade wrote:
2020-06-04, 04:00 UTC
hi

where I can read about all this parameters ed: ev: ?

and one more: as I understand correct , TC can find (using Everything) only files (by name), it cannot find text in files , am right?
No ev can search inside files.
You can search content using one of the "content": verb as it is not indexed it will be as slow as TC.
You have to use a restrictive filename/date .. filter to be efficient.

Read reference in support forum.

alexblade
Junior Member
Junior Member
Posts: 19
Joined: 2012-02-07, 09:24 UTC
Contact:

Re: Search queries in TC using 'Everything'

Post by *alexblade »

thank you

1) but where I can find more details about ed: ev: etc.. ?

2) ok I press, alt+F7, enable checkbox Everything. in Search for: * content:run_as_admin=0
and it returns all files. how to search by content ?

User avatar
nsp
Power Member
Power Member
Posts: 1290
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: Search queries in TC using 'Everything'

Post by *nsp »

alexblade wrote:
2020-06-04, 08:04 UTC
thank you

1) but where I can find more details about ed: ev: etc.. ?
F1 or root subject gives you pointer on how to use prefix ev: ed:
About the syntax you have to be familiar with everything tool and read support forum or help file.
alexblade wrote:
2020-06-04, 08:04 UTC
2) ok I press, alt+F7, enable checkbox Everything. in Search for: * content:run_as_admin=0
and it returns all files. how to search by content ?
if you want to find all files under the current folder and subfolders you can just use:

Code: Select all

ed: content:run_as_admin=0
if the file you want to analyze are ansi, it is better to use ansicontent instead..

alexblade
Junior Member
Junior Member
Posts: 19
Joined: 2012-02-07, 09:24 UTC
Contact:

Re: Search queries in TC using 'Everything'

Post by *alexblade »

2) thanx that its working ed: content:run_as_admin=0, but why * is not working with content:? if I tryed *.ini its working ok but with content doesnt

1) http://www.voidtools.com/support/everything/searching/ - here no info about ed: ec:...
in the first post also no info about all parameters... Im still confused :) where I can find it all

User avatar
tuska
Power Member
Power Member
Posts: 2004
Joined: 2007-05-21, 12:17 UTC

Re: Search queries in TC using 'Everything'

Post by *tuska »

alexblade wrote:but why * is not working with content:? if I tryed *.ini its working ok but with content doesnt
- Let us assume that you are in C:\Tools\Everything\ in the active TC window.
- Search in separate process... Alt+Shift+F7
- Search for:

Code: Select all

ed:*.ini content:run_as_admin=0
- Could e.g. bring the following search result --> content: works!

Code: Select all

C:\Tools\Everything\Everything.ini
alexblade wrote:in the first post also no info about all parameters... Im still confused :) where I can find it all
Here is the first post --> at the top of THIS PAGE!

1. TC Parameter --> ed: --> Click on the red button "Show"
2. TC Parameter --> ev: --> Click on the red button "Show"
:roll:
Last edited by tuska on 2020-06-04, 14:20 UTC, edited 1 time in total.

User avatar
Stefan2
Power Member
Power Member
Posts: 2923
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Search queries in TC using 'Everything'

Post by *Stefan2 »

alexblade wrote:
2020-06-04, 13:52 UTC
1) http://www.voidtools.com/support/everything/searching/ - here no info about ed: ec:...
in the first post also no info about all parameters... Im still confused :) where I can find it all
See post above from user tuska.



 

alexblade
Junior Member
Junior Member
Posts: 19
Joined: 2012-02-07, 09:24 UTC
Contact:

Re: Search queries in TC using 'Everything'

Post by *alexblade »

2tuska
thank you I saw ed/ev examples in the first post. My question was , which the parametrs exists in general (all available) and their description. Or we have only ed: ev: thats all?

User avatar
nsp
Power Member
Power Member
Posts: 1290
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: Search queries in TC using 'Everything'

Post by *nsp »

ed: / ev: are total commander only prefix to pass all the remaining string to everything as search string.
ed: add path:"<path>" to the search string.

On the search string, you can use all the verbs everything understand see ev help.

User avatar
tuska
Power Member
Power Member
Posts: 2004
Joined: 2007-05-21, 12:17 UTC

Re: Search queries in TC using 'Everything'

Post by *tuska »

I have now added point 10. and some useful links above --> "point 10. Searching file contents ('Everything' -> content:)".

alexblade
Junior Member
Junior Member
Posts: 19
Joined: 2012-02-07, 09:24 UTC
Contact:

Re: Search queries in TC using 'Everything'

Post by *alexblade »

2nsp
2tuska
I have visited ev help page , and there are no info about ed/ev... where I can find official help page where exist all available parameters ?

PS: for example https://www.php.net/manual/en/index.php
PHP help page with *all* available functions/parametrs. not only print or math. all. I need like this but for everything. could you help me

User avatar
tuska
Power Member
Power Member
Posts: 2004
Joined: 2007-05-21, 12:17 UTC

Re: Search queries in TC using 'Everything'

Post by *tuska »

1    Help for Total Commander parameters ed: and ev:
1.1 F1 - Help: e.g. search for ed: --> click on "Dialog box: Search: General" --> Examples:
1.2 HISTORY.TXT
1.3 Search queries in TC using 'Everything' (this topic)
1.4 Total Commander Forums

2    Help on 'Everything' parameters
2.1 Searching: https://www.voidtools.com/support/everything/searching/ (as already mentioned by nsp)
2.2 Directly in 'Everything' - menu "Help"
2.3 'Everything' Manual - Offline Support: https://www.voidtools.com/forum/viewtopic.php?f=2&t=6853
2.4 voidtools forum: https://www.voidtools.com/forum/index.php
alexblade wrote:... *all* available functions/parameters ... I need like this but for everything. ...
If the information on the website of 'Everything' or the "Manual Offline" is not enough for you,
then please make a request in the 'Everything' forum.


To clarify this again:
In Total Commander, if a search query is preceded by either the parameter ed: or ev:,
then it is possible in Total Commander to use the own search parameters of 'Everything'.

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

Re: Search queries in TC using 'Everything'

Post by *Horst.Epp »

alexblade wrote:
2020-06-05, 06:37 UTC
2nsp
2tuska
I have visited ev help page , and there are no info about ed/ev... where I can find official help page where exist all available parameters ?

PS: for example https://www.php.net/manual/en/index.php
PHP help page with *all* available functions/parametrs. not only print or math. all. I need like this but for everything. could you help me
Again, as already explained above:
ed: and ev: are TC specific and can't be found in the Everything help of course !
All other data following these TC parameters can be found in the Everything help.
Windows 10 Home x64 May 2020 Update, Version 2004 (OS Build 19041.331)
Intel(R) Core(TM) i7-4770 CPU @ 3.40GH, 16GB RAM
TC 9.51 x64 / x86, Everything 1.4.1.985 (x64)

alexblade
Junior Member
Junior Member
Posts: 19
Joined: 2012-02-07, 09:24 UTC
Contact:

Re: Search queries in TC using 'Everything'

Post by *alexblade »

ed: and ev: are TC specific and can't be found in the Everything help of course !

oh... might be now I got you
ed: ev: is not everything parameters, its special TC parameters that allow us to use "everything search parameters" like content: file: folder: et. , am I right ?

Post Reply