EVSearchLabels : Search for Opus labels using Everything 1.5

EVSearchLabels is a script add-in for Directory Opus that lets you search Opus labels using Everything, making it possible to get near-instant results.

Requirements:

  • Everything (tested with v1.5.x β€” not sure if it works with v1.4).

Installation:

Download from here

Then install the script as usual.


Usage

A simple example would be:

EVSearchLabels IN C:\ D:\ CASE QUERY (green|red)

This would search across C: and D: for files that have the labels "green" or "red", in lowercase.

If IN is not specified, the search will use the current source tab path.

No paths means a search in the entire system.

Please read the Command's Arguments section carefully for more details.


Command's Arguments

The command supports the following arguments:

Argument Type Value Desc
IN /M A list of paths where to search.
REGEX /S Enable regular expressions in QUERY.
CASE /S Enable match case in QUERY.
PARTIAL /S Enable partial match in QUERY.
COLLNAME /K Name of the collection to use if you want a specific one (p.e. "my labels").
EXTRA /K Extra query to pass to Everything for additional filtering. Must be valid Everything search syntax. Use double quotes if it contains spaces, and escape double quotes if needed.
QUERY /R A wildcard rule for labels to search for (depending on the flags used). Note that this is a RAW argument, so it must be used at the end.

Notes

It most likely will not work with v1.4. So it is highly recommended to use Everything v1.5.x.

Also, for instant results, it is recommended to index the alternate-data-stream-hex property. To do so:

  1. In the main Everything window, go to Tools \ Options \ Indexes \ Properties and click "Add...", then select "Alternate Data Stream Hex".
  2. Configure the options below according to your needs (locations to include, exclude, folders only, files only, etc.).
  3. After clicking "Apply", Everything will begin indexing, which may take some time.

Once the paths are indexed, search results should be instant.

  • Note that only regular filesystem path types are supported (no collections, libraries, etc.).
  • The script ignore diacritics in labels by default.

Greetings

10 Likes

Thanks !
This is very useful for finding files/folders with status icons.

1 Like

You missed:

  • ColumnsViewer
  • VT (Virus Total)
  • ToolbarPalette
  • Templayt (FAYT)
  • TabRescue
  • SessionsManager
  • EvertyghingDupes
  • Extended Drive Info (columns)
  • Everything FAYT
  • EchoFolders (FAYT)
  • ZipIt

Not (YET) published:

  • HashCheckr (checksum manager built in Opus)
  • DataLens (ColumnsViewer on steroids)
  • EventFlow (perform actions based on Opus events)
  • OpusCustomFields (custom properties)
  • OmniFinder (similar to the Find tool, but for duplicates. You can create fiter rules with any value, including user columns and it's especially suited for similar image detection).
2 Likes

Hello, I am a beginner. When I click the button, this prompt appears.

Could you please tell me what might be causing this? Thank you.

Hello and welcome! @sumu

I'm by no means an expert, and there may also be other ways to do this, but give the following a try...

  1. Make sure you have defined the labels you want to search for in Preferences/Labels/Label definitions:

  1. Assign these labels to some files and/or folders

  2. Then create a new button command with a search query like this (adjust to your own label names and directory):

EVSearchLabels IN F:\ CASE QUERY (Green|Red)

  1. Run the created command

Result = List of all files and folders that have been labelled 'Green' and 'Red'

PS: Make sure you have the search query label names typed exactly the same as the defined labels names as it is case sensitive).