All apps/mdfind

mdfind

mdfind

Find files with Spotlight.

Runs as mdfind|macOS

Command form

ai-draft · 2 tasks · 7 fields

Query the Spotlight index. Smart-folder and live-update modes are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui mdfind
Search with SpotlightExample values, fixed in this page — nothing here reaches a terminal
Basic
Limit to directory
directory
File name*
string
TasksEach one presets the form for one job
Find by name
nameonlyin
Run a query
queryonlyin
ParametersOnly these flags are editable in the form
Query
string · positional 0
Limit to directory
path
-onlyin
File name
Match file names only.
string
-name
Count matches only
boolean
-count
NUL-separated results
boolean
-0
Literal query string
boolean
-literal
Interpret like Spotlight menu
boolean
-interpret
SourcesEvery flag above is checked against these
fig
completion

github.com

Before it fills your prompt, Otty checks the installed mdfind against its version. A form that does not match your version is not offered.