search excluding saved search.

English support forum

Moderators: Hacker, petermad, Stefan2, white

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

search excluding saved search.

Post by *nsp »

I have a search looking on a selection of folder for file with extensions jpg i would like to exclude all thumb.jpg where the size is less than 100k.
I have a search called >thumb looking for file named thumb.jpg and size <100K
If i use *.jpg|>thumb this does not work and the same in CD do i miss something ?
User avatar
white
Power Member
Power Member
Posts: 5747
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: search excluding saved search.

Post by *white »

nsp wrote: 2024-12-08, 09:13 UTC If i use *.jpg|>thumb this does not work and the same in CD do i miss something ?
Why would you think you can use saved searches in search expressions?
User avatar
AntonyD
Power Member
Power Member
Posts: 1554
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: search excluding saved search.

Post by *AntonyD »

This solution is simple and intuitively understandable. And the main thing - very expected.
And if its performance is missing in the current version of Total, it’s very sad.

This week I had a moment when I realized that my list of recent search queries
is a constantly growing string with negations of extensions that I didn’t need.
And in fact - I was constantly forced to prepend in the end another new emerging unnecessary expansion.
Instead of just ONCE, prepare/save the list of exceptions and use it in a simple and intuitive way.
#146217 personal license
User avatar
tuska
Power Member
Power Member
Posts: 4046
Joined: 2007-05-21, 12:17 UTC

Re: search excluding saved search.

Post by *tuska »

Out of interest, I made a request in the Everything Forum:
Exclude one of several JPGs with SIZE less than 100 KiB

The following solutions work for me in Everything 1.5.0.1387a (x64):

Code: Select all

parent:D:\TMP  ext:jpg  !< exact:thumb.jpg  size:<100KiB >
- OR -
D:\TMP\*.jpg  !< exact:thumb.jpg  size:<100KiB >

Code: Select all

ev:<parent:D:\TEMP\ | D:\TMP\> ext:jpg  !< exact:thumb.jpg  size:<100KiB >
User avatar
nsp
Power Member
Power Member
Posts: 1912
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: search excluding saved search.

Post by *nsp »

@tuska the problem is that everything (ed:) is not supported when using search from a list of file/folder.
I'm searching in many folders 1..50 i select manually using a custom view.
User avatar
tuska
Power Member
Power Member
Posts: 4046
Joined: 2007-05-21, 12:17 UTC

Re: search excluding saved search.

Post by *tuska »

nsp wrote: 2024-12-09, 04:53 UTC @tuska the problem is that everything (ed:) is not supported when using search from a list of file/folder.
Unfortunately, it will remain that way in the future.
void (Author) - 12.12.2024 wrote: includefilelist: will only work from the main Everything search box.
It is not allowed from external calls.
nsp wrote: 2024-12-09, 04:53 UTC I'm searching in many folders 1..50 i select manually using a custom view.
  1. D:\TMP\ListOfFolders_with_PATH.txt (..."selection of folder for file with extensions jpg"...)
    cm_CopyNetNamesToClip -> Paste in ListOfFolders_with_PATH.txt

    Code: Select all

    D:\TEMP\
    D:\TMP\TE MP\
    D:\TMP\TEMP\	; ATTENTION - Important: Do NOT create a blank line after this line by pressing <ENTER>!
    Folder names that include a space do NOT need to be enclosed in quotation marks in this example!
     
  2. Mark the folders in the "ListOfFolders_with_PATH.txt" file and copy them to the clipboard using Ctrl + C.
  3. Open ‘Everything 1.5’ and paste the clipboard contents into the search box using Ctrl + V.
    The search box now shows the following: "Grouping"

    Code: Select all

    <D:\TEMP\|<D:\TMP\TE MP\>|D:\TMP\TEMP\>
  4. Add the following code to the search box at the end:

    Code: Select all

    ext:jpg !< exact:thumb.jpg  size:<100KiB > sort:path:
    The COMPLETE SEARCH BOX now displays the following:

    Code: Select all

    <D:\TEMP\|<D:\TMP\TE MP\>|D:\TMP\TEMP\> ext:jpg !< exact:thumb.jpg  size:<100KiB > sort:path:
  5. Transferring search results from ‘Everything’ to Total Commander
    1. E.g. with a compiled AHK script
    2. Total Commander - Field "Search for": Max. number of characters: 2046
      If the search query fits into the field (as in this example), then the following query is possible in Total Commander
      using ‘Everything 1.5’:

      Code: Select all

      ev:<D:\TEMP\|<D:\TMP\TE MP\>|D:\TMP\TEMP\> ext:jpg !< exact:thumb.jpg  size:<100KiB > sort:path:
      ; sort:path: does not yet work in Total Commander using ‘Everything 1.5’.
Another example: Only folder names (cm_CopyNamesToClip)
D:\TMP\ListOfFolders.txt

Code: Select all

TEMP\
TE MP\
Search query: Copy the folder names into the ‘Everything 1.5’ search box and add them as shown below.

Code: Select all

d: <TEMP\|"TE MP\"> ext:jpg !< exact:thumb.jpg  size:<100KiB > sort:path:
ATTENTION: If you are searching only by folders, then you have to put folders with spaces in their names in quotation marks!
BUTTON - Add quotes around cm_CopyFullNamesToClip
Attention: Unfortunately, a line break is inserted after the last folder name!
Only the LINES WITH THE FOLDER NAMES may be marked and then pasted into the ‘Everything’ search box via the clipboard!

Code: Select all

TOTALCMD#BAR#DATA
"%COMMANDER_PATH%\Skripte\Add quotes around cm_CopyFullNamesToClip.vbs"
%Z%WF
C:\WINDOWS\System32\WScript.exe,2
Add quotes around cm_CopyFullNamesToClip - %Z%WF (full names)|Copy the SELECTED NAMES in quotes in the presence of spaces|Parameters: %Z%WF (full names) either %Z%WL (full path)|https://ghisler.ch/board/viewtopic.php?t=75919
%COMMANDER_PATH%\Skripte\
0
-1


Windows 11 Pro (x64) Version 24H2 (OS Build 26100.2605) - 2024-12-10
TC 11.50RC2 x64/x86 | 'Everything' 1.5.0.1389a (x64)
Open Everything GUI results with TC LOADLIST - AutoHotkey (.AHK) SCRIPT and GUIDANCE, discussions
Transfer 'Everything' GUI results to Total Commander - STEP-BY-STEP GUIDE, summary
Tags: include-file-list:, ListOfFiles.txt, ListOfFilesWithPath.txt, ListOfFolders.txt, ListOfFolders_with_PATH.txt
Post Reply