Right-Click Menu in the Clip Preview
What it does
Right-click anywhere in the preview pane (the CodeMirror editor showing the active clip’s content) and a full Blue Synergy menu appears with 30+ context-aware actions. No more empty native browser menu, no more keyboard-only access to filters and transforms.
The menu adapts to what you’ve selected and what kind of clip you’re viewing — a selected URL surfaces “Open in browser”, valid JSON gets a “Format as JSON” action, an image clip gets file-system actions instead of text transforms.
How to open it
- Right-click in the editor — anywhere works, with or without a text selection.
- No selection? You still get a menu with Find, Line Filter, and standard Copy / Paste / Select All.
Menu sections
Create / Tag / Trigger (with selection)
- Create clip from selection — lifts the selected text into a brand-new clip in the same folder. Title is taken from the first ~40 characters of the selection.
- Add as tag — creates a new tag from the selection (single-word, ≤32 chars) and assigns it to the current clip.
- Use as trigger keyword — opens the new-trigger dialog with the keyword pre-filled.
- Use as trigger expansion — same, but pre-fills the expansion body.
Search & Filter
- **Filter lines containing “
"** — opens the Line Filter bar with the selection pre-loaded, keeping only matching lines. - **Filter lines NOT containing “
"** — inverse. - **Find next “
"** — sets CodeMirror's search to the selection and jumps to the next match. - **Search all clips for “
"** — runs the selection as a global clip search across your whole library.
Smart-Detect (auto-shown when the selection fits)
These entries only appear when the selection matches a recognizable pattern (checked at menu-open time, capped at 50 KB of selected text so the menu opens instantly):
- Open URL in browser — when the selection is a single bare URL.
- Format as JSON — when the selection parses as JSON. Output is pretty-printed (indent 2) and can replace the selection in-place.
- Format as XML — same for valid XML.
- Parse as CSV → table preview — when the selection looks like a comma-rectangle. Opens a modal with the parsed table and a Copy as TSV button.
Transform (submenu, with selection or whole doc)
- Case — lowercase, UPPERCASE, Title Case
- Whitespace — Trim
- Encoding — URL-encode / -decode, Base64-encode / -decode
- Lines — Sort ascending / descending, Reverse, Dedupe
Each action runs on the selection if there is one, otherwise on the whole clip. Diff view and read-only contexts hide mutating actions (see Limits below).
System
- Copy / Cut / Paste / Select All — via
document.execCommand, so it integrates with the rest of the system clipboard.
No-selection extras
When you right-click without selecting anything, you also get shortcut entries:
- Open Find — opens CodeMirror’s search panel.
- Open Line Filter — opens the workspace Line Filter bar.
IMG clips
When the active clip is an image, the menu is tailored to file-system actions instead of text editing:
- Copy file path — copies the absolute path of the image file.
- Open in default app — launches whatever your OS uses for
.png/.jpgetc. - Show in Explorer — opens the containing folder with the file selected.
- Copy image — copies the bitmap to the clipboard (CF_DIB).
Read-only and locked contexts
Some viewing modes are read-only by design. The menu detects them and hides mutating actions (Transform → Replace selection, Format-as-JSON → Replace, etc.):
- Archived-folder clips — read-only via the archive guard.
- Locked secure clips (AES vault) — content is masked.
- Diff view (left pane) — the original / left side is read-only; only Copy / Find / Search appear. The right pane has the full menu.
- DPAPI peek mode — when you’ve peeked at a locked DPAPI clip, you also get a Lock clip again entry that clears the peek override.
In each case the action is hidden, not shown-and-disabled — the menu stays compact.
Tips
- Selections under 50 KB unlock Smart-Detect. Larger selections still get Search / Transform / System, just not the detect entries (parsing very large strings would stall menu open).
- Find next uses CodeMirror’s native search panel —
F3after the first match keeps stepping through results. - Filter lines opens the workspace-wide Line Filter, which works across all visible clips, not just the one in the preview.
Related features
- Find & Replace in Clips — the Find panel that “Find next” surfaces
- Text Transforms — the same transforms, from the toolbar
- Search Syntax — the global search that “Search all clips” runs
- Selection Stats — live Lines / Words / Chars / Bytes for whatever you’ve selected