Skip to content

Instantly share code, notes, and snippets.

@BrianPurgert
Created April 3, 2023 06:12
Show Gist options
  • Save BrianPurgert/80326c3c2aa1ef26322d93836118d3e0 to your computer and use it in GitHub Desktop.
Save BrianPurgert/80326c3c2aa1ef26322d93836118d3e0 to your computer and use it in GitHub Desktop.
Everything Search Syntax

Operators:

space		AND  
|		OR  
!		NOT  
< >		Grouping  
" "		Search for an exact phrase.  

Wildcard matching:

*		Matches zero or more characters (except \).  
**		Matches zero or more characters.  
?		Matches one character (except \).  
The whole filename is matched when using a wildcard.

Filename parts:

Full Path:		C:\folder\file.txt  
Name:		file.txt  
Path:		C:\folder  
Stem:		file  
Extension:		txt  

Macros:

&quot:		Literal double quote (")  
&vert:		Literal vertical line (|)  
&lt:		Literal less than (<)  
&gt:		Literal greater than (>)  
&#<n>:		Literal unicode character <n> in decimal.  
&#x<n>:		Literal unicode character <n> in hexadecimal.  
audio:		Search for audio files.  
zip:		Search for compressed files.  
doc:		Search for document files.  
exe:		Search for executable files.  
pic:		Search for picture files.  
video:		Search for video files.  

Modifiers:

atof:		Convert text to a floating point number for comparison  
atoi:		Convert text to an integer number for comparison  
binary:		Match as a byte stream, \\ = \ \xff = hex byte.  
case:		Match case.  
diacritics:		Match diacritical marks.  
endwith:		Match the end of the filename or property.  
file:		Match files only.  
folder:		Match folders only.  
hex:		Convert double hex characters to bytes.  
highlight:		Highlight the search term.  
ignorepunctuation:		Ignore punctuation in the filename or property.  
ignorewhitespace:		Ignore white space in the filename or property.  
len:		Match the length of the filename or property in UTF-16 characters.  
metric:		Use metric prefixes for sizes.  
fromdisk:		Search for properties and content from disk.  
tonumber:		Convert text to a number for comparison  
path:		Match full path and filename.  
prefix:		Match the start of a word.  
regex:		Enable regular expressions.  
startwith:		Match the start of the filename or property.  
suffix:		Match the end of a word.  
tostring:		Convert property to the display string for comparison  
wfn:		Match the whole filename or property.  
wholefilename:		Match the whole filename or property.  
wholeword:		Match whole words only.  
wildcards:		Enable content wildcards.  
ww:		Match whole words only.  
Disable a modifier with the no prefix.

wildcards: search modifier syntax:

*		Matches any character zero or more times.  
?		Matches any single character.  
#		Matches any single digit (0-9).  
[ ]		Matches any one of the characters specified in the set.  
[! ]		Matches any one character that is not specified in the set.  
\		Escape the following character.  

Functions:

album:<text>		Search media for album metadata.  
ansicontent:<text>		Search ANSI file content for text.  
artist:<text>		Search media for artist metadata.  
attrib:<attributes>		Search for files and folders with the specified file attributes.  
attribdupe:		Find files and folders with the same attributes.  
attributes:<attributes>		Search for files and folders with the specified file attributes.  
bitdepth:<bitdepth>		Find images with the specified bits per pixel.  
child:<filename>		Search for folders that contain a child with a matching filename.  
childcount:<count>		Search for folders that contain the specified number of subfolders and files.  
childfilecount:<count>		Search for folders that contain the specified number of files.  
childfoldercount:<n>		Search for folders that contain the specified number of subfolders.  
comment:<text>		Search media for comment metadata.  
content:<text>		Search file content for text.  
count:<max>		Limit the number of results to max.  
dateaccessed:<date>		Search for files and folders with the specified date accessed.  
datecreated:<date>		Search for files and folders with the specified date created.  
datemodified:<date>		Search for files and folders with the specified date modified.  
daterun:<date>		Search for files and folders with the specified date run.  
da:<date>		Search for files and folders with the specified date accessed.  
dadupe:		Find files and folders with the same date accessed.  
dc:<date>		Search for files and folders with the specified date created.  
dcdupe:		Find files and folders with the same date created.  
depth:<count>		Search for files and folders with the specified number of parent folders.  
dimensions:<w>X<h>		Find images with the specified width and height.  
dm:<date>		Search for files and folders with the specified date modified.  
dmdupe:		Find files and folders with the same date modified.  
dr:<date>		Search for files and folders with the specified date run.  
dupe:		Search for duplicated filenames.  
empty:		Search for empty folders.  
ext:<ext1;ext2;...>		Search for files with a matching extension in the specified semicolon delimited extension list.  
filelist:<fn1;fn2;...>		Search for a list of filenames in the specified semicolon delimited file list.  
filelistfilename:<name>		Search for files and folders belonging to the file list filename.  
frn:<frn>		Search for files and folders with the specified File Reference Number.  
fsi:<index>		Search for files and folders in the specified zero based internal file system index.  
genre:<text>		Search media for genre metadata.  
height:<height>		Find images with the specified height in pixels.  
indextype:<type>		Search for the specified index type, eg: ntfs, refs, folder or filelist.  
name:<name>		Search for base filenames without the path part.  
orientation:<type>		Search for images with the specified orientation (landscape or portrait).  
parent:<path>		Search for files and folders in the specified path, excluding subfolders.  
parents:<count>		Search for files and folders with the specified number of parent folders.  
pathpart:<path>		Search for files and folders in the specified location.  
rc:<date>		Search for files and folders with the specified recently changed date.  
recentchange:<date>		Search for files and folders with the specified recently changed date.  
root:		Search for files and folders with no parent folders.  
runcount:<count>		Search for files and folders with the specified run count.  
shell:<name>		Search for a known shell folder name, including subfolders and files.  
size:<size>		Search for files with the specified size in bytes.  
sizedupe:		Search for duplicated sizes.  
stem:		Search for filenames without the extension.  
stemdupe:		Search for files and folders with the same stem.  
title:<text>		Search media for title metadata.  
track:<number>		Find media files with the specified track number.  
type:<type>		Search for files and folders with the specified type.  
utf16content:<text>		Search Unicode file content for text.  
utf16becontent:<text>		Search Unicode Big Endian file content for text.  
utf8content:<text>		Search UTF-8 file content for text.  
utf8len:<length>		Search for files and folders that match the specified filename length in UTF-8 bytes.  
width:<width>		Find images with the specified width in pixels.  
For more functions, please see Search -> Insert Function...

Function Syntax:

function:value		Equal to value within the specified granularity.  
function:<=value		Less than or equal to value.  
function:<value		Less than value.  
function:=value		Exactly equal to value.  
function:==value		Exactly equal to value.  
function:>value		Greater than value.  
function:>=value		Greater than or equal to value.  
function:!=value		Not equal to value.  
function:!value		Not equal to value with specified granularity.  
function:start..end		Is in the range of values from start to end.  
function:start-end		Is in the range of values from start to end.  

Size Syntax:

size[kb|mb|gb]

Size Constants:

empty
tiny		0 KB < size <= 10 KB  
small		10 KB < size <= 100 KB  
medium		100 KB < size <= 1 MB  
large		1 MB < size <= 16 MB  
huge		16 MB < size <= 128 MB  
gigantic		size > 128 MB  
unknown

Duration Syntax:

[[[DD:]HH:]MM:]SS[.sss]
[<n><d|day|days>][<n><h|hour|hours>][<n><m|min|mins|minute|minutes>][<n><s|sec|secs|second|seconds>]
P[n]Y[n]M[n]DT[n]H[n]M[n]S
P[n]W
PYYYYMMDDThhmmss
P[YYYY]-[MM]-[DD]T[hh]:[mm]:[ss]

Duration Constants:

very-short		Under 1 min  
short		1 - 5 mins  
medium		5 - 30 mins  
long		30 - 60 mins  
very-long		Over 60 mins  
unknown

Date Syntax:

year
month/year or year/month depending on locale settings
day/month/year, month/day/year or year/month/day depending on locale settings
YYYY[-MM[-DD[Thh[:mm[:ss[.sss]]]]]]
YYYYMMDD[Thh[mm[ss[.sss]]]]]
YYMMDD
FILETIME (>99999999)

Date Constants:

today
yesterday
<last|current|this|coming|next><year|month|week>
<last|coming|next><x><years|months|weeks|days|hours|minutes|mins|seconds|secs>
past[x]<year[s]|month[s]|week[s]|day[s]|hour[s]|minute[s]|min[s]|second[s]|sec[s]>
<prev|previous>[x]<year[s]|month[s]|week[s]>
january|february|march|april|may|june|july|august|september|october|november|december
jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec
sunday|monday|tuesday|wednesday|thursday|friday|saturday
sun|mon|tue|wed|thu|fri|sat
mtd|ytd
unknown

Attribute Constants:

A		Archive  
C		Compressed  
D		Directory  
E		Encrypted  
H		Hidden  
I		Not content indexed  
L		Reparse point  
N		Normal  
O		Offline  
P		Sparse file  
R		Read only  
S		System  
T		Temporary  
V		Integrity stream  
X		No scrub data  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment