Skip to content

Command mode & context menus

UBLX has three overlapping ways to act on files and the catalog: quick actions (per-row Space menu), multi-select (bulk Space menu), and Command Mode (global Ctrl+A). Menus show only what applies to the current tab, row type, and config.

Press ? anytime for the in-app help overlay (sections change with the active main tab).

At a glance

MechanismKeysScope
Quick actions (context menu)Space on a rowOne file, directory, lens name, or duplicate member
Multi-selectCtrl+Space, then Space / aMany paths in Snapshot or Lenses (middle pane)
Command ModeCtrl+A, then a letterWhole session (snapshot, export, theme, …)

Not available while the catalog search bar (/) is active, or when another popup already has focus (help, theme picker, lens name input, rename/delete confirm, etc.).


Pane focus first

Most row actions target the middle (contents) pane. Use Tab, h, or l to focus left (categories / lens names) vs middle (files).

FocusTypical Space menu
Middle — file rowFull quick actions (Snapshot, Delta, Lenses paths)
Left — lens name (Lenses tab)Rename lens, delete lens
Duplicates — member rowDelete file, ignore in duplicates list

Quick actions (Space)

Open the context menu with Space on the highlighted row. Choose a row with ↑/↓, then Enter, or press the letter shown in parentheses (e.g. Open (o)).

Snapshot / Delta (file rows)

KeyActionNotes
oOpenTerminal and/or GUI editor
fShow in folderReveal in Finder / Explorer (platform-dependent)
pEnhance policyDirectories only — set subtree auto / never for ZahirScan on snapshot
zEnhance with ZahirScanPer-file enrich when enable_enhance_all is false
lAdd to LensOpens lens picker — see Making and exporting lenses
cCopy pathRelative path to clipboard
jCopy Zahir JSONWhen snapshot already has Zahir JSON for that file
rRename fileInline rename prompt
dDelete fileConfirmation dialog

Rows that do not apply are omitted (e.g. no z on directories, no j without JSON).

Lenses tab (file row in middle pane)

Same menu as Snapshot, except:

KeyAction
dRemove from lens (not delete file)
l(not shown — use bulk a to add elsewhere)

Use Space on a lens name in the left pane for Rename lens / Delete lens.

Duplicates tab

No full quick-actions menu. Space on a duplicate member:

KeyAction
dDelete file
iIgnore — hide path for this duplicate-detection run

Enhance policy submenu

When p is available on a directory row, the submenu sets how ZahirScan runs under that path prefix on future snapshots (auto vs never). Details: Enhance policies.


Multi-select & bulk menu

Multi-select works on the contents (middle) pane in Snapshot and Lenses only — not Duplicates.

StepKeys
Enter multi-selectCtrl+Space
Toggle current rowSpace
Open bulk menua
ExitEsc

Bulk menu actions

KeyAction
aAdd to Lens / Add to other Lens (same picker as quick actions l)
rBulk rename paths (via $EDITOR)
dDelete files, or remove from current lens on Lenses tab
zEnhance with ZahirScan (shown when selected rows are eligible and enable_enhance_all is off)

Background enhance and delete operations show toasts when they finish.


Command Mode (Ctrl+A)

Command Mode is a global “leader” chord: press Ctrl+A, then a second key. If you pause (~½s), a centered menu lists the same shortcuts.

Unavailable while / search is active or another modal is open.

KeyAction
dRun duplicate detection (background). Duplicates tab appears when groups exist
tTheme selector — writes theme to local config on confirm
sTake snapshot (background) — re-index the project
rReload config from disk (global + local ublx.toml)
xExport Zahir JSON to ublx-export/ — see Headless snapshot + export
lExport lenses to ublx-lenses/ — see Making and exporting lenses
pSwitch project — recents / other indexed roots under ubli/

Esc cancels Command Mode without running an action.

Viewer search is not Command Mode

In-pane preview search uses Shift+S in the Viewer tab, not Ctrl+A.


Other navigation (often paired with menus)

These are not popups, but they change what Space and Ctrl+A apply to:

KeysAction
~Cycle main tabs (Snapshot, Lenses, Delta, Duplicates, Settings)
/Fuzzy filter categories and file list
sCycle sort mode (middle pane)
j / kMove selection up/down
gg / GJump to top/bottom of list
Ctrl+j / Ctrl+kJump by 10 rows
v / t / m / wFocus right-pane Viewer / Templates / Metadata / Writing

Digit keys 1–5 jump to visible main tabs (shown in ? help).


Settings tab

On Settings, Space does not open file quick actions. Useful keys:

KeyAction
TabSwitch Global vs Local config scope
j / kMove in the settings list
eOpen the active settings file in $EDITOR

UBLX · Nefaxer · ZahirScan