Skip to content

en Search and Scope

Surfire edited this page Dec 6, 2026 · 2 revisions

← Back to Home · 简体中文

Whole-Disk Search, Pinyin & Folder Scoping

Lumen is powered by a custom shared Rust in-memory index (completely independent of macOS Spotlight mds and Windows Search). It keeps ~1 ms query latency across 1.67M+ real files while supporting multi-keyword queries, Chinese pinyin/initials, path+filename collaborative ranking, and multi-level folder scoping.


1. Everyday Search Patterns

Just open Lumen and start typing—no boilerplate prefixes required:

Example Query What It Matches
Q4 plan review Multi-word AND match in any order
xiangmu / xm Built-in Chinese full pinyin and initials (with polyphone overrides for common names like 成都/重庆/厦门/银行/音乐)
vsc / ps / wx / am Auto-generated camelCase/word initials and built-in app aliases (VS Code, Photoshop, WeChat, Activity Monitor)
lumen social-preview.png Path + Filename ranking: combining parent folder terms with a filename ranks exact file hits cleanly above body-text snippets, breaking ties by recency
Q4 report pdf Trailing common extensions act as real extension filters automatically when paired with at least one search word
"exact phrase" ASCII " or smart quotes “” trigger exact phrase matching, bypassing operator parsing and semantic expansion

2. Search Operators

1. Filter by Category: kind:

Operator Matches
kind:doc Documents (PDF, Office, Markdown, plain text, etc.)
kind:image Images
kind:video Videos
kind:audio Audio files
kind:code Source code and configuration files
kind:archive Compressed archives
kind:folder Folders (macOS also accepts kind:directory)
kind:app Applications

Examples: kind:doc invoice, kind:folder design, kind:image architecture

2. Filter by Extension: ext: or .ext

  • Explicit operator: ext:pdf contract, ext:xlsx budget, ext:srt interview
  • Dot shorthand: .md roadmap, .pptx keynote
  • Bare trailing extension: contract pdf, budget xlsx

3. Filter by Path Prefix: path: or Direct Paths

  • Supports path:/Users/name/Work/, path:~/Documents/, or bare /... and ~/... prefixes (plus drive paths on Windows).
  • Wrap paths containing spaces in quotes: path:"~/Library/Mobile Documents/" proposal.

4. Sub-Millisecond Size & Modified-Time Filters: s: / m: (New in v0.9.0)

Lumen records file sizes with zero extra stat overhead during indexing and evaluates structured filters directly in memory (verified p50 0.28–0.42 ms). Typing s:, m:, or k: pops up a code-completion hint bar—press Tab to accept any token:

Operator Matches Examples
s: / size: File size (>, >=, <, <=, ranges .., kb/mb/gb) report s:>10mb, s:1mb..50mb pdf
m: / modified: Last modified time (today, yesterday, week, month, 7d, YYYY-MM-DD) m:today, contract m:week, m:>2026-01-01
  • Optional Empty-Panel Recent Files: Toggle on under Settings → General to surface recently opened files immediately when summoning an empty bar.

Note: Lumen does not use an in: operator. For scoping to a folder, use Tab folder scoping, project aliases, or path:.


3. Tab Folder Scoping & Project Aliases

1. Multi-Level Tab Breadcrumbs

  1. Search for any folder and highlight it.
  2. Press Tab to lock search inside a compact folder breadcrumb chip (fully space-safe, including iCloud Mobile Documents).
  3. Highlight a subfolder and press Tab again to drill down multiple levels.
  4. Press Backspace on an empty query to pop up one level, or Esc to exit the scope completely.

2. Project Folder Aliases (Quicklinks)

Pin a frequent project folder in Settings → Quicklinks and give it a short alias (for example kh for a client workspace):

  • Type kh quote to search only inside that project folder.
  • Type kh and press Tab to jump straight into its breadcrumb scope.

4. Smart Ranking & Private Local Affinity

  • Active apps & live files first: Installed apps (/Applications, Windows Start Menu / Desktop / AppsFolder / UWP) get top priority; archive directories (backups, archive, staging, retention, 作废归档) are automatically demoted below active working files.
  • Privacy-preserving Frecency: Lumen learns which file you open for a given query so your favorites rise to the top—storing only irreversible SHA-256 hashes locally (zero plaintext paths or search queries written to preferences).

5. Navigation, Default File Action & Context Menu (⌘K / Ctrl+K)

1. Full Keyboard Navigation

Shortcut Action
↑ / ↓ Move selection up / down
PgUp / PgDn Jump 8 rows at a time (or scroll Q&A / script / PDF preview cards)
Home / End Jump to first / last result (Ctrl+Home / Ctrl+End also supported while typing on Windows)
↩ (Enter) Primary action
⌘↩ (macOS) / Ctrl+↩ (Windows) Secondary action (swaps Open ↔ Reveal in Finder / Explorer)
⌘⇧C / Ctrl+Shift+C Copy selected file name
⌘⌥C / Ctrl+Alt+C Copy full path

2. Configurable Default File Action

Under Settings → General → Appearance & Behavior, choose what pressing ↩ does for regular files:

  • Open File (default): ↩ opens the file; ⌘↩ / Ctrl+↩ reveals it in Finder / File Explorer.
  • Show in Finder / Explorer: ↩ reveals and selects the file; ⌘↩ / Ctrl+↩ opens it directly.

Folders, apps, web quicklinks, system actions, and calculations always execute on ↩.

3. Context Actions Menu (⌘K / Ctrl+K or Alt+↩)

Press ⌘K (macOS) or Ctrl+K / Alt+↩ (Windows) on any file to access:

  • Inline Preview / Floating Window Preview
  • Copy File (copies the real file object for pasting into chat/email/file manager; strictly blocked for online-only cloud placeholders)
  • Copy Name / Copy Path
  • Search in Enclosing Folder (jumps straight into Tab scope for the parent directory)
  • Open in Terminal (macOS auto-detects Ghostty, Warp, iTerm2, WezTerm, Alacritty, and Terminal)
  • Open With… (lazy-loaded app picker)
  • Open Linked Media (when selecting an .srt / .vtt subtitle hit, detects matching sibling .mp4/.mov/.mkv/.m4a/.mp3 files and opens them directly)
  • Drag & Drop (macOS): drag local files directly out of the search result list into other apps.

Next Guide: Unified Document Previews & Windows Explorer QuickLook →

Clone this wiki locally