Skip to content

en Snippets Clipboard and Utilities

Surfire edited this page Dec 4, 2026 · 1 revision

← Back to Home · 简体中文

Permanent Snippets, Clipboard History & Daily Utilities

Lumen bundles everyday desktop utilities directly into the same fast bar—zero extra plugins or background bloat.


1. Permanent Snippets Library

Store daily report templates, email signatures, canned replies, and CLI/SQL templates in a dedicated permanent store that is never evicted by clipboard history limits or clears.

Lumen Native Settings Center and Snippets Tab

Creating & Organizing Snippets

  • Open Settings → Snippets and add a Title, short Alias (e.g., standup, sig, addr), and Body (up to 32 KiB per snippet).
  • You can also promote any item from Clipboard History (cb) via ⌘K / Ctrl+K → Save as Snippet….
  • Enable Pin to Empty Bar on top snippets so they appear immediately whenever you summon Lumen.
  • Avoid reserved command verbs as aliases (qa, tr, translate, img, cb, clip, win).

Dynamic Template Variables (Single-Pass, Non-Recursive)

Preview expanded output live in the right pane as you type:

Variable Example Expansion Description
{{date}} 2026-12-04 Current date (yyyy-MM-dd)
{{time}} 15:30 Current time (HH:mm)
{{datetime}} 2026-12-04 15:30 Current date and time
{{clipboard}} Current plain-text clipboard Inserts current clipboard text (capped at 16 KiB), expanded once without recursion

Example Snippet (alias standup):

[Daily Update · {{date}}]
- Done:
- Next:
- Context: {{clipboard}}

Triggering & Storage Paths

  • Type the alias (standup) or title in the main bar, then press ↩ to expand and paste into your frontmost app (on Windows, press Shift+↩ to copy without pasting).
  • macOS: ~/Library/Application Support/Lumen/Snippets/snippets.json (0700/0600 atomic writes)
  • Windows: %LOCALAPPDATA%\Lumen\Snippets\snippets.json (or <exe_dir>\data\Snippets\snippets.json in portable mode, user-exclusive DACL)

2. Private Clipboard History: cb / clip

Local clipboard history is off by default. Turn it on under Settings → General → Clipboard History, pick your retention cap (macOS: 50 / 100 / 200 / 500; Windows: 20–1000, default 200), or clear everything in one click.

  • Open with cb or clip, or filter directly with cb invoice.
  • Supports text, images, and copied file lists (Windows generates local image thumbnails for visual browsing in both the list and preview pane).
  • Shortcuts:
    • ↩: Paste / copy the selected item
    • Space: Preview images or non-text items
    • ⌘K (macOS) / Ctrl+K (Windows) or ⇧↩ (macOS): Open item actions (copy, paste, save as snippet, delete); on Windows Shift+↩ copies without pasting
  • Privacy: Automatically ignores concealed/transient clipboard entries from password managers.

3. Instant Calculator, Unit Converter & 0 ms FX Currency Math

Type directly into the main bar and press ↩ to copy the result:

Calculator

  • Supports +, -, * (×), / (÷), ^, %, parentheses, unary +/-, thousands separators, and an optional leading =.
  • Examples: (1280 + 450) * 1.13, 2^16, =1999 * 0.85.

Unit Conversion

Uses to or in (plus Chinese connectors):

  • Length: km, m, cm, mm, mi, ft, in (5 km to mi, 180 cm to ft)
  • Mass: kg, g, mg, lb, oz (70 kg to lb)
  • Volume: L, mL, gal (2 gal to L)
  • Time: s, min, h (2.5 h to min)
  • Temperature: °C, °F, K (37 C to F)

31-Currency 0 ms FX Conversion

  • Examples: $100 to cny, 50 eur in usd, ¥5000 to usd, 100 gbp to jpy
  • 31 Built-In Currencies: USD, CNY, HKD, TWD, MOP, JPY, EUR, GBP, KRW, SGD, AUD, CAD, CHF, NZD, INR, THB, MYR, VND, PHP, IDR, RUB, BRL, MXN, SEK, NOK, DKK, PLN, TRY, ZAR, AED, SAR.
  • Offline-first: Uses built-in fallback rates refreshed once daily in the background (respecting system proxy settings)—never making per-keystroke network requests.

4. Prefix-Free System Dictionary

  • Bare-word lookup: Type any standalone word (no spaces or math operators, e.g. ephemeral) to display a concise inline definition below direct file/app matches; press ↩ to open the full definition card and copy. Typing a space immediately resumes normal multi-word search.
  • Explicit prefixes: define <word> (Windows also accepts dict <word>).
  • Backends: macOS uses native System Dictionary (DCSCopyTextDefinition); Windows uses a zero-disk-I/O embedded offline EN↔ZH and technical dictionary.

5. Multi-Browser Bookmarks

Enable Browser Bookmarks under Settings → General → Search Sources to search local bookmarks incrementally by mtime (never hydrating cloud files). Press ↩ to open or ⌘K / Ctrl+K to copy the URL.

  • macOS: Chrome, Chrome Canary, Edge, Brave, Arc, Vivaldi, Dia, Safari
  • Windows: Chrome, Chrome Canary, Edge, Brave, Vivaldi, Arc (Desktop & Store), Firefox

6. Opt-In Personal Data (macOS) & Built-In System Actions

Opt-In Personal Sources (macOS Only, Off by Default)

Under Settings → General → Search Sources & Currency, these remain disabled by default with zero unsolicited TCC prompts:

  • Contacts: Search contacts and copy phone numbers or emails.
  • Calendar: View upcoming events and 1-click join meeting links.
  • Reminders: View reminders and mark them complete directly from Lumen.

System Actions

Type the action name in the main bar:

  • Both platforms: Lock Screen, Sleep, Empty Trash / Recycle Bin (with confirmation), Mute Audio / Unmute Audio, Settings.
  • macOS extras: Toggle Dark Mode, Eject External Volume, plus 14 direct System Settings panels (Wi-Fi, Bluetooth, Network, Displays, Sound, Keyboard, Trackpad, Notifications, Appearance, Privacy & Security, Accessibility, Software Update, Storage).

Next Guide: Adaptive Window Tiling (win), Quicklinks & Local Scripts →

Clone this wiki locally