Search Commands

Discussion related to "Everything" 1.5 Alpha.
Locked
void
Developer
Posts: 17178
Joined: Fri Oct 16, 2009 11:31 pm

Search Commands

Post by void »

Everything 1.5 search commands.

Search commands can be typed into the search box to perform UI actions.

To use search commands, type in one of the following commands in the search box and press ENTER:
-or-
Use a bookmark and set the search to one or more of the following commands.
Opening bookmarks will execute the search command without setting the search.
Use Alt + Enter to separate multiple search commands.



about:
Show the about dialog.



about:about
about:help
about:?
Show this help.



about:access-denied
about:service
Show service options to index NTFS volumes.



about:bookmarks.csv
Open the Bookmarks.csv file location.



about:config
Open the user Everything.ini
Monitors the Everything.ini for changes and will notify user to reload if changed.



about:credits
Show the Everything credits.



about:exe
about:exe-location
about:everything.exe
Open the Everything.exe file location.



about:db
Show database statistics.



about:db-location
about:everything.db
Open the Everything.db file location.



about:debug-log
Open the Everything Debug Log.txt file location.



about:filters.csv
Open the Filters.csv file location.



about:history
about:search-history
Show all search history.



about:run-history
Show all run history.



about:home
Load the home search.



about:ini-location
about:everything.ini
Open the Everything.ini file location.



about:journal
Show the Index Journal.



about:keys
Show current key bindings.



about:license
about:licence
Show the Everything license



about:macros.csv
Open the Macros.csv file location.



about:plugins.ini
Open the plugins.ini file location.



about:preferences
about:options
about:settings
Show the options window



/add-col <property-list>
/add-column <property-list>
/add-columns <property-list>
Add the specified columns by a semicolon (;) delimited list of property canonical names.
For example:
/add-columns width;height;length
See also: /columns and /remove-columns



/add-search <text>
/append-search <text>
Add text to the end of the search box.
A space is automatically included if necessary.



/advanced-copy-to <old-format> <new-format>
/advanced-move-to <old-format> <new-format>
/advanced-rename <old-format> <new-format>
Show the Advanced copy-to, Advanced move-to or Advanced rename dialog with the specified values.

-case
Match case.

-no-case
Ignore case.

-diacritics
Match diacritics.

-no-diacritics
Ignore diacritics.

-regex
Enable regular expressions.

-no-regex
Disable regular expressions.

-ignore-extension
Ignore extension.

-no-ignore-extension
Match extension.

For example:
/advanced-rename _ . -no-case -no-diacritics -no-regex -ignore-extension



/advanced-copy-to-preset <preset-name>
/advanced-move-to-preset <preset-name>
/advanced-rename-preset <preset-name>
Show the Advanced copy-to, Advanced move-to or Advanced rename dialog and load the specified preset by name.
Everything will try to lookup the preset with matching case first and then try without matching case.
For example:
/advanced-rename-preset "my preset"



/clear-dupes
Clear any active find duplicates.



/close
Close the active search window.



/close-all
Close all search windows.



/cls
Clear the debug console.



/columns <property-list>
Set the columns with a semicolon (;) delimited list of property canonical names.
-or-
Set the columns with a json array of column objects.
For example:
/columns name;path;size;date-modified;width;height;length
/columns [{"name":"Name","width":330},{"name":"Path","width":330},{"name":"Size","width":46},{"name":"Date Modified","width":99}]
See also: /add-columns and /remove-columns



/command <id>
Execute a semicolon delimited list of commands by name or ID
For example:
/command 41003
/command 40017;40017;40017
/command "File | New Window";"File | New Tab"



/comment <text>
Does nothing.
Useful for bookmark comments.
/comment My bookmark comment



/copy [text]
Copies the current file/folder selection to the clipboard and applies formatting.
Use $property-name: to insert properties.
Use the search preprocessor to apply formatting.
Each file/folder is separated with a new line (\r\n).
For example:
/copy $full-path:,$date-taken:

See also: /copy-header



/copy-header [header-text]
Specify the header text to use with the next call to /copy
The header is cleared after the next /copy call.
For example:
/copy-header Filename&tab:Date Taken
/copy $full-path:&tab:$date-taken:



/custom-open-command <name>
Execute the result list selection with the specified custom open command.



/debug
/console
Toggle debug mode.



/debug-log
/start-debug-logging
Enter debug mode and log to Everything Debug Log.txt



/define <name>=<search>
Define a macro.
For example:
/define foo=bar
When searching for foo: it is now replaced with bar
All macros are listed in the status bar if name is not defined.
Omit the = to show the current definition.
For example:
/define foo
foo=bar is shown in the status bar.
Undefine a macro with /undef



/delete-db
Delete the database and backup database from disk.



/deselect-all
Deselect all result list items.



/disable-alternate-row-color
Disable alternate row colors.



/disable-folders-sidebar-subfolders
/disable-folders-subfolders
Disable subfolders in the folder sidebar.



/disable-omit-results
Disable omit results.



/disable-temp-omit-results
Disable temporary result omissions.



/echo [text]
Echo the specified text to the status bar for 3 seconds.
Use [c]/echo off[/c] to disable echoing commands to the status bar.
Use [c]/echo on[/c] to re-enable.



/else
Else block to execute if the last /if condition returns FALSE.
Must come after an /if statement.
Must be terminated with an /endif statement.



/endif
Endif terminates the /if and /else block.
Must come after an /if or /else statement.



/enable-alternate-row-color
Enable alternate row colors.



/enable-folders-sidebar-subfolders
/enable-folders-subfolders
Enable subfolders in the folder sidebar.



/enable-omit-results
Enable result omissions.



/enable-temp-omit-results
Enable temporary result omissions.



/eval <formula>
/=<formula>
Evaluate formula and set the search to the result.



/exit
/quit
Exit Everything.



/exit-now
/quit-now
Exit Everything without saving settings and data.



/expand <text>
/set-search <text>
/#preprocessor-function:text
/[preprocessor-function:text]
/preprocessor-function:text
Set the search to the result from preprocessor expansion.
For example:
/len:abc 123
/clipboard:
Search Preprocessor
$currentsearch: is replaced with the current search text
$cursel: is replaced with the currently selected search text



/explore <list-of-folders>
Open the folder sidebar and select the specified semicolon (;) delimited list of folders.



/explore-path <list-of-folders>
Open the folder sidebar and select the specified semicolon (;) delimited list of folders.
The parent folder is selected in the folders sidebar and the specified file/folder is selected in the result list.



/explore-subfolders
/explore-no-subfolders
/no-explore-subfolders
Explore subfolders or don't explore subfolders in the folder sidebar.



/export
Show the export dialog.


-efu
Export as EFU (Everything File List)

-csv
Export as CSV (Comma Separated Values)

-txt
Export as TXT (Text)

-tsv
Export as TSV (Tab Separated Values)

-json
Export as JSON (JavaScript Object Notation)

-html
Export as HTML (Web page)

-m3u
Export as M3U (Winamp Playlist)

-m3u8
Export as M3U8 (Winamp Playlist UTF-8)

-selection-only
Export selection only.

-no-selection-only
Export all results.



/find-dupes <property-name>
Find duplicates of the specified property by name.



/focus <id>
Focus the specified window by control ID.



/goto <index>
Goto the nth 0-based index in the result list.

-file
Goto the file index.

-folder
Goto the folder index.

-file-or-folder
Goto the file or folder index.



/help
Show Everything help.



/hide-bookmarks
/hide-bookmarks-sidebar
Hide the bookmarks sidebar.



/hide-filter-bar
Hide the filter bar.



/hide-filters
/hide-filters-sidebar
Hide the filters sidebar.



/hide-folders
/hide-folders-sidebar
Hide the folders sidebar.



/hide-fullscreen-menu-bar
Hide the fullscreen menu bar.



/hide-header
Hide the result list header.



/hide-menu-bar
Hide the windowed menu bar.



/hide-preview
Hide the preview pane.



/hide-status-bar
Hide the status bar.



/if <expression>
Start an if block.
Terminate the block with an /endif statement.
Commands inside the if block are executed only if the specified formula expression evaluates as true.
Title formatting variables are available to formulas.
Add an optional /else clause before the /endif statement.



/<ini-setting-name>=<value>
Set the configuration key to a value.
A restart might be required for changes to take effect.
Use ! as the value to toggle the ini setting.
Use a semicolon (;) delimited list to specify multiple key=value pairs. (only works for non-string values)
Use TAB from the search box to auto complete the ini-setting-name.



/load <filename>
Load a search from a text/plain file.



/load-bookmarks [filename]
Load bookmarks from the specified CSV file by filename.
Show the load bookmarks dialog if the filename is omitted.



/load-config [filename]
Load settings from the specified ini file by filename.
Show the load config dialog if the filename is omitted.
Automatically restarts Everything to apply changes.



/load-filters [filename]
Load filters from the specified CSV file by filename.
Show the load filters dialog if the filename is omitted.



/load-macros [filename]
Load macros from the specified CSV file by filename.
Show the load macros dialog if the filename is omitted.



/load-omit-results [filename]
Load result omissions from the specified CSV file by filename.
Show the load result omissions dialog if the filename is omitted.



/maximize
Maximize the search window.



/minimize
Minimize the search window.



/minimize-all
/unminimize-all
Minimize or unminimize all search windows.



/monitor-pause
/pause-monitors
Stop updating results and continue monitoring changes to indexes.



/monitor-resume
/monitor-start
/resume-monitors
Update results to reflect changes to indexes.



/monitor-stop
/stop-monitors
Stop monitoring changes to indexes.



/new-tab
Create a new tab.


/new-window
Create a new window.



/open <filename>
Opens the specified file/folder in the result list.
If the filename is an number, the zero-based result from the specified number is opened.



/refresh
Invalidate all gathered un-indexed properties.



/reindex [path]
/rebuild [path]
Force a rebuild for all indexes or the specified index.
[path] supports *, ** and ? wildcards.



/reload-bookmarks
Reload bookmarks from your Bookmarks.csv



/reload-config
Reload settings from your Everything.ini
Everything will automatically restart to apply changes.



/reload-filters
Reload filters from your Filters.csv



/reload-macros
Reload macros from your Macros.csv



/reload-omit-results
Reload result omissions from your omit-results.csv



/reload-property-user-values
Reload property user values
Press F5 to refresh cached properties.
Select files and press Ctrl + F5 to refresh indexed properties.



/remove-column <property-list>
/remove-columns <property-list>
Remove the specified columns by a semicolon (;) delimited list of property canonical names.
For example:
/remove-columns size;date-modified
See also: /add-columns and /columns



/replace-sel <text>
Paste text into the search box after preprocessor expansion.
For example:
/replace-sel #today:
$cursel: is replaced with the currently selected search text.
$clipboard: is replaced with the text content from the clipboard.
Works best from a bookmark with a keyboard shortcut.



/restart
Restart Everything.


/restart-as-admin
Restart Everything as administrator.



/restart-debug-log
Restart Everything in debug logging mode.



/restart-now
Restart Everything without saving settings and data.



/restart-now-debug-log
Restart Everything without saving settings and data.
The restarted Everything will run in debug logging mode.



/rescan [path]
/update [path]
Rescan all FAT, network drive and folder indexes or the specified FAT, network drive or folder index.
The specified path does not have to be the root path, for example, if you are indexing a
network share \\server\share and only wish to rescan \\server\share\subfolder use /rescan \\server\share\subfolder



/restore-previous-session
Restore a the previous session.



/restore-session <session.json>
Restore a session from the specified JSON file.
If no filename is specified a dialog is shown to select a JSON file.
For example:
/restore-session "C:\Everything\Sessions\My Fancy Session.json"



/save-all
Save all settings and data to disk.



/save-bookmarks
Show the save bookmarks dialog.



/save-config
Show the save config dialog.



/save-db
Start saving the database to disk in the background.



/save-db-now
Save the database to disk now.
Does not return until the database is saved to disk.



/save-filters
Show the save filters dialog.



/save-macros
Show the save macros dialog.



/save-omit-results
Show the save result omissions dialog.



/search_edit_paste
paste clipboard text into the search box.

-remove-punctuation
Remove punctuation.

-no-remove-punctuation
Preserve punctuation.

-or-newlines
OR newlines.

-no-or-newlines
AND newlines.

-multi-line-search
Treat the pasted text as search text.

-multi-line-filename
Treat the pasted text as filenames.

-multi-line-name
Treat the pasted text as filenames and extract the name part.

-multi-line-stem
Treat the pasted text as filenames and extract the stem part.

-multi-line-filelist
Treat the pasted text as filenames and build a filelist: search.

-multi-line-text
Treat the pasted text as raw text. (no formatting)

-multi-line-group
Group the multi-line search with < and >

-no-multi-line-group
Disable grouping.

For example, paste the stem from multiple filenames:
/search_edit_paste -no-remove-punctuation -or-new-lines -multi-line-stem



/select <filename>
Select the specified file/folder in the result list.
If the filename is an number, the zero-based result from the specified number is selected.



/select-all
Select all files/folders in the result list.

[selection]
Conditional: execute only if there's currently a selection.

[noselection]
Conditional: execute only if nothing is selected.



/select-bottom
Select the bottom most result.

[selection]
Conditional: execute only if there's currently a selection.

[noselection]
Conditional: execute only if nothing is selected.



/select-focus
Select the result list focus.

[selection]
Conditional: execute only if there's currently a selection.

[noselection]
Conditional: execute only if nothing is selected.



/select-last-run
Select the last run item.

[selection]
Conditional: execute only if there's currently a selection.

[noselection]
Conditional: execute only if nothing is selected.



/select-most-run
Select the most run item.

[selection]
Conditional: execute only if there's currently a selection.

[noselection]
Conditional: execute only if nothing is selected.



/select-top
Select the top result list item.

[selection]
Conditional: execute only if there's currently a selection.

[noselection]
Conditional: execute only if nothing is selected.



/show-bookmarks
/show-bookmarks-sidebar
Show the bookmarks sidebar.



/show-filter-bar
Show the filter bar.



/show-filters
/show-filters-sidebar
Show the filters sidebar.



/show-folders
/show-folders-sidebar
Show the folders sidebar.



/show-fullscreen-menu-bar
Show the fullscreen menu bar.



/show-header
Show the result list header.



/show-menu-bar
Show the windowed menu bar.



/show-preview
Show the preview pane.



/show-status-bar
Show the status bar.



/stop-debug-logging
Exit debug mode and show the Everything Debug Log.txt



/stop-service
Stop the Everything Service.
Everything will automatically restart the Everything Service after 30 seconds.



/toggle-alternate-row-color
Toggle the alternate row colors.



/toggle-bookmarks
/toggle-bookmarks-sidebar
Toggle the bookmarks sidebar.



/toggle-filter-bar
Toggle the filter bar.



/toggle-filters
/toggle-filters-sidebar
Toggle the filters sidebar.



/toggle-folders
/toggle-folders-sidebar
Toggle the folders sidebar.



/toggle-folders-sidebar-subfolders
/toggle-folders-subfolders
Toggle subfolders in the folder sidebar.



/toggle-fullscreen-menu-bar
Toggle the fullscreen menu bar.



/toggle-header
Toggle the result list header.



/toggle-menu-bar
Toggle the windowed menu bar.



/toggle-omit-results
Toggle omit results.



/toggle-preview
Toggle the preview pane.



/toggle-status-bar
Toggle the status bar.



/toggle-temp-omit-results
Toggle temporary result omissions.



/undef <name>
Undefine a macro.



/view-details
Set the result list to detail view.



/view-thumbnails [size]
Set the result list to thumbnail view.
Optionally specify the thumbnail size in logical pixels.



/verbose
Enable verbose debug logging.



/window-size <width> <height>
Set the window client size in logical pixels.
If only one value is specified the value is used as the height and width is calculated from the auto_size_aspect_ratio.
If no values are specified the current dimensions are shown in the status bar.
For example:
/window-size 640 480



Dashes (-) in commands can be omitted.



Everything 1.4 search commands
void
Developer
Posts: 17178
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Commands

Post by void »

void
Developer
Posts: 17178
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Commands

Post by void »

void
Developer
Posts: 17178
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Commands

Post by void »

Everything 1.5.0.1316a improves the following commands:

/rescan [path]
/reindex [path]
void
Developer
Posts: 17178
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Commands

Post by void »

void
Developer
Posts: 17178
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Commands

Post by void »

Everything 1.5.0.1320a adds the following search commands:

/refresh
about:access-denied
void
Developer
Posts: 17178
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Commands

Post by void »

Everything 1.5.0.1325a adds the following search commands:

/add-search <text>
void
Developer
Posts: 17178
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Commands

Post by void »

Everything 1.5.0.1331a adds the following search commands:

/copy [text]
void
Developer
Posts: 17178
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Commands

Post by void »

void
Developer
Posts: 17178
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Commands

Post by void »

void
Developer
Posts: 17178
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Commands

Post by void »

Everything 1.5.0.1360a makes the following changes:

/eval and /= will now use Formulas
void
Developer
Posts: 17178
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Commands

Post by void »

Everything 1.5.0.1361a makes the following changes:

/eval and /= will now format double results correctly.



Added the following search commands:
/focus <id>
/search_edit_paste <remove-punctuation> <or-newlines> <multiline-type>
void
Developer
Posts: 17178
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Commands

Post by void »

Everything 1.5.0.1362a adds the following search commands:

/new-tab
/new-window
/restart-as-admin
void
Developer
Posts: 17178
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Commands

Post by void »

Everything 1.5.0.1364a makes the following changes:

/eval and /= will no longer auto cast to a double result.
Use a value with a decimal to cast to floating point.
void
Developer
Posts: 17178
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Commands

Post by void »

Everything 1.5.0.1367a adds the following search commands:

/add-col
/add-column
/add-columns
/columns
/remove-column
/remove-columns
/maximize
/minimize
/search_edit_paste [remove-punctuation] [or-newlines] [multiline-type] [multiline_group]
void
Developer
Posts: 17178
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Commands

Post by void »

void
Developer
Posts: 17178
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Commands

Post by void »

Everything 1.5.0.1374a adds the following search commands.

/columns (added support for json array of column objects)
/search_edit_paste (added support for raw text)
/comment
/set-search (alias)
void
Developer
Posts: 17178
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Commands

Post by void »

void
Developer
Posts: 17178
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Commands

Post by void »

Everything 1.5.0.1384a improves search commands.

Search commands now behave like commands in the Windows command prompt.
Search commands now use -option switches.

Triple quote (""") is now treated as a single literal quote (")
Use ^ to escape the next character.



Added the following commands:
/custom-open-command
/deselect-all
/echo
/else
/endif
/export
/find-dupes
/goto
/if
/save-all
/select-bottom
/select-focus
/select-last-run
/select-most-run
/select-top
/stop-service



/if Example to toggle Find length duplicates:

Code: Select all

/if $is-find-dupes:
/clear-dupes 
/else 
/find-dupes length 
/endif


Added [selection] and [noselection] conditionals to select commands.
Useful if you only want to select all when there's currently no selection:
/select-all [noselection]




To stop the Everything service and exit Everything:
/stop-service
/exit

Useful if you are trying to upgrade the portable version of Everything.



To stop executed commands from echoing to the statusbar:
Include the following at the top of your bookmark search:
/echo off
Locked