File Filter Input
The File Filter Input searches your files according to custom rules. It allows you to search specific file types in configurable locations from specific date ranges with predefined metadata.
Rather than add every possible file type to your default results or trawl through an unfiltered list of all files that match your search term, these finely focused filters help you find the results you need.

Page Index
Setup
Basic Setup

Configure the Keyword to type in Alfred, and the Placeholder Title and Placeholder Subtext to display by default.
Drag files of the types you want to match, from Alfred's results or the Finder, into the table. Alternatively, click the + and manually enter their Uniform Type Identifier. Leave empty to include all file types.
Scope

Specify a search scope by dragging folders into the Search Scope table.
Only enable Show files marked as System File if you really need to include these, as they'll otherwise add noise (and seemingly strange files) to your results.
Fields

By default, File Filters search the display name, file name, and Finder comment added to a file.
If you need to search further fields, such as macOS tags (kMDItemUserTags), add them here. Exclude fields with the NOT column.
You can change the anchoring to broaden the search with wildcarding:
- The
Wordscolumn searches from word boundaries (the beginning of a word, rather than anywhere within). - The
Splitcolumn splits each word into a separate parameter instead of grouping them together as a single query (useful for tags/content).
Limit and Sort

Date Range narrows the search for when the file was created or last modified.
Result Limit changes the maximum number of results to show. We recommend keeping it below 100 to keep things snappy!
Sort by defines the ordering results based on Alfred's Knowledge, which takes into account your previous usage, or by Creation or Last Modified date.
Connection Ideas
Connect the File Filter Input to an Open File Action to quickly open files with a specific app, or to a Text View, PDF View, or Image View, to view the file's contents.
Example Workflows
Search PDFs
Find PDFs in Documents and Downloads
Navigate in Terminal
Search folders to navigate in terminal
Navigate in Alfred
Search folders to navigate in Alfred
Add Images to Buffer
Search images to append to the File Buffer
Edit Text File
Search and edit txt files
Advanced
For higher performance, results don't populate until you begin typing. * is supported as a wildcard, matching any number of literal characters or an empty string.
When manually entering file types, you can add a specific ContentType or ContentTypeTree Uniform Type Identifier to broaden the matches. For example, a PNG file is of the ContentType public.png and its ContentTypeTree is:
public.png
public.image
public.data
public.item
public.content
The ContentTypeTree goes from the most precise classification (public.png) to the broadest (public.content), so if you'd like to include anything that conforms to the public.image ContentTypeTree (such as JPEGs and GIFs), add a +public.image entry (note the leading +).
If that sounds complicated, don't worry about it. You can just drag and drop files into the table to add their type.
Keywords aren't limited to a single fixed word. You can extend them to accept multiple values and be configurable by users without them having to modify the workflow's internals.