Filter and its language
MagnumOpus has three ways to narrow a folder: the quick filter for typing, the type filter in the Detail header, and the Advanced filter with its own query language. All of them only hide items from the list - nothing on disk changes.
Quick filter
Just start typing while the file list has the keyboard. The filter bar opens and the list narrows with every letter. Ctrl+F opens the bar (or focuses it and selects its text), Esc closes it.
- Scattered letters are enough.
mfefindsmy_file_explorer.rs; the best matches come first (start of the name, a continuous run, starts of words, shorter names). - Diacritics and case don't matter, also for Cyrillic and other scripts.
*and?make a mask:*.jpg,IMG_20??*.- Tags have shortcuts:
tag:holiday,rating:4(4 stars or more),color:red,comment:invoice. Without a value (tag:) they show items that have any tag, rating, color or comment.
Up and Down arrows, Page keys, Tab or a click into the list hand the keyboard back to the files, so Ctrl+A, Delete and the arrows act on what you filtered. Typing returns it to the filter.
The filter belongs to the folder. Two options in Settings > Files and folders > Filter change that:
| Option | What it does |
|---|---|
| Keep filter when entering folder | The filter text stays when you go into another folder. |
| Restore filter on return | A locked folder brings back its saved filter when you come back. |
If you prefer Explorer's behavior, turn on Typing in the list jumps to an item (Settings > Files and folders > Selection and typing); Ctrl+F still opens the filter.
Searching from the filter bar
The bar has three toggles: Names, Subfolders and Content. With Subfolders or Content on, the filter becomes a search that runs in the background; results from subfolders get a "subfolder" tag, content matches a "content" tag. See Search and Ctrl+P.
Expanded folders
In Detail with expandable folders, the quick and advanced filter also search the expanded folders and show the folders above a match dimmed. To filter only the first level, turn off Filter searches expanded folders too (Settings > Files and folders > Expandable folders).
Type filter in the Detail header
The funnel on the Type column opens a list of all types in the current folder with their icons and counts. Tick the types you want to see; All and Invert help with long lists and the search field filters the list itself. The funnel lights up while the type filter is active, and it applies until you leave the folder.
Types come from the content where the extension is ambiguous: .ts shows up as TypeScript source or MPEG-TS video, .mod as tracker music or a text file. The start of such a file is read in the background, only for visible rows.
Advanced filter
The Advanced filter is a panel above the list with one or more groups. Open it from the three dots in the toolbar (Advanced filter), from the filter button in the status bar or from the command palette (Ctrl+Shift+P, "Advanced filter"). A query passed with --filter on the command line opens here too.
Add creates a new group. Each group has:
- a checkbox that turns it on or off without deleting it,
- an expression in the filter language - the field suggests fields, operators and values (including tags you already use) as you type,
- a snippets button with ready conditions: File type, Date, Item type, Path + regex, Logic,
- an action: Show only, Hide or Highlight in a color you pick.
How the groups combine:
- An item that matches any Hide group is hidden.
- If there is at least one Show only group, an item must match at least one of them.
- Highlight never hides anything; an item gets the color of the first highlight group it matches. Arrows (or the group menu in a narrow pane) change the order.
The header shows how many items are left ("12 of 340 items"). Save stores the whole set of groups under a name, Load brings a saved set back; saved filters are shared by all folders and windows. Clear all removes the groups. Each tab keeps its own groups.
The filter language
A condition is written in square brackets: [field operator value].
[ext = pdf]
[size > 10mb]
[modified > 7d]
Several conditions in a row must all hold (AND). Use OR, NOT and parentheses for the rest - the keywords work in lower case too:
[ext = jpg] OR [ext = png]
NOT [attr = hidden]
([name ~ invoice] OR [name ~ receipt]) [modified >= 2025]
NOT applies to the next condition or parenthesis. AND may be written out, but it is the default.
Operators
| Operator | Meaning |
|---|---|
= | equals; for text it means "contains" (name, path, comment), for ext the whole extension, for dates the same day |
!= | does not equal / does not contain |
< > <= >= | less / greater for sizes, dates and ratings |
~ | contains (for text the same as =) |
Values
- Text without spaces can be written as is; with spaces in quotes:
[name ~ "annual report"]. Text comparison ignores case and diacritics. - Mask: a value with
*or?is a mask over the whole name:[name = IMG_*.jpg]. - Regular expression between slashes:
[name = /^IMG_\d+/],[ext = /^(jpe?g|png)$/]. Regular expressions are case-sensitive; add(?i)at the start to ignore case. - Size with a unit
b,kb,mborgb(1 kb = 1024 bytes), decimals allowed:[size > 1.5gb]. - Date:
today,yesterday,7d(the last 7 days), a year2025or a day2025-03-01.[modified > 2025]means after the start of 2025,[modified = 2025-03-01]that day.todayandyesterdaystart at local midnight.
Fields
| Field | Example |
|---|---|
name | [name ~ report] |
ext | [ext = pdf] |
size | [size > 10mb] |
modified, created | [modified > 7d] |
attr | [attr = readonly] (hidden, readonly, system, archive) |
type | [type = folder] (file, folder, symlink) |
path | [path ~ projects] |
git | [git = changed] |
tag, color, rating, comment | [tag = holiday], [rating >= 4] |
All fields with their values are in the generated filter fields reference. Tags, color tags, ratings and comments are explained in Tags, ratings and comments; [tag], [color], [rating] and [comment] without an operator mean "has any".
Examples
[ext = pdf] [size > 10mb] large PDFs
[modified >= today] changed today
[type = file] [size = 0] empty files
NOT [type = folder] [modified < 2020] files not touched since 2020
[name = /^IMG_\d{4}\.(jpg|heic)$/] camera photos
[path ~ node_modules] everything under node_modules
[git = untracked] OR [git = modified] new and modified files in a repository
[tag = holiday] [rating >= 4] the best holiday photos
From the command line, a query goes to --filter; write a quote inside it as \":
mo-explorer.exe . --filter "[ext = pdf] [size > 10mb]"
mo-explorer.exe D:\Photos --filter "[name ~ \"copy\"]"
Filter and folder lock
A locked folder (Ctrl+K) saves the filter together with the view and sorting. Whether it comes back when you return depends on Restore filter on return. See Folder templates and locks.