Skip to content

omfp keys and commands

Every window has these, whatever the init files declare.

  • : → cmdline.open
  • ? → help.open
  • i → composer.focus
  • Ctrl-c → thread.abort
  • Esc → view.leave
  • Esc → focus.leave
  • Ctrl-c → composer.interrupt

@omfp/flavor’s keys (keys part): bound from the user’s init file when it loads the flavor (the starter init.ts does). ctx.keys.bind and :set bindings of the same keys win.

  • j → thread.next
  • k → thread.prev
  • g g → thread.first
  • G → thread.last
  • Ctrl-d → thread.halfDown
  • Ctrl-u → thread.halfUp
  • v → view.focus
  • Enter → view.focus
  • d d → nav.delete
  • z a → nav.toggleSection
  • Alt-ArrowUp → threads.moveUp
  • Alt-ArrowDown → threads.moveDown
  • Alt-Shift-ArrowUp → threads.moveToPrevWorkspace
  • Alt-Shift-ArrowDown → threads.moveToNextWorkspace
  • j → nav.next
  • k → nav.prev
  • g g → nav.top
  • G → nav.bottom
  • Ctrl-d → nav.halfDown
  • Ctrl-u → nav.halfUp
  • Ctrl-w h → pane.left
  • Ctrl-w j → pane.down
  • Ctrl-w k → pane.up
  • Ctrl-w l → pane.right
  • g t → tab.next
  • g T → tab.prev
  • / → nav.search
  • Space / → threads.pick
  • ] v → view.next
  • [ v → view.prev
  • Shift-F10 → menu.open
  • ContextMenu → menu.open
  • Space a → thread.nextAttention
  • ] a → thread.nextAttention
  • Space n → thread.new
  • Space w → workspace.new
  • Space r → thread.rename
  • Space x → thread.archive
  • Space u → thread.unarchive
  • Space d → thread.delete
  • Space s → thread.stop
  • Space S → thread.stopSpawned
  • Space R → thread.restart
  • Space t → threads.toggle
  • Space b → threads.collapse
  • Space : → cmdline.open
  • Space Space → cmdline.open
  • Space h h → help.open
  • Space h k → help.describeKey
  • Space h e → help.messages
  • Space p n → workspace.new
  • Space p r → workspace.rescan
  • Space f → file.pick
  • Space v → view.pick
  • u → composer.restore
  • Alt-a → thread.nextAttention
  • Alt-j → thread.next
  • Alt-k → thread.prev
  • Alt-h → view.prev
  • Alt-l → view.next
  • Alt-n → thread.new
  • Alt-a → thread.nextAttention
  • Alt-j → thread.next
  • Alt-k → thread.prev
  • Alt-h → view.prev
  • Alt-l → view.next
  • Alt-n → thread.new
  • Ctrl-a → composer.lineStart
  • Ctrl-e → composer.lineEnd
  • Ctrl-b → composer.charBack
  • Ctrl-f → composer.charForward
  • Alt-b → composer.wordBack
  • Alt-f → composer.wordForward
  • Ctrl-p → composer.linePrev
  • Ctrl-n → composer.lineNext
  • Ctrl-d → composer.deleteForward
  • Ctrl-h → composer.deleteBack
  • Ctrl-k → composer.killLineEnd
  • Ctrl-u → composer.killLineStart
  • Ctrl-w → composer.killWordBack
  • Alt-Backspace → composer.killWordBack
  • Alt-d → composer.killWordForward
  • Ctrl-y → composer.yank
  • Ctrl-t → composer.transpose
  • Ctrl-Shift-a → composer.selectAll
  • auth.login — Log in to a provider (:login []; without one, pick it) (:login)
  • auth.logout — Log out of a provider (:logout ) (:logout)
  • cmdline.open — Open the command line
  • composer.charBack — Move back one character
  • composer.charForward — Move forward one character
  • composer.deleteBack — Delete the character before the caret
  • composer.deleteForward — Delete the character after the caret
  • composer.focus — Focus the composer
  • composer.interrupt — Clear the draft, or abort when it is empty (Ctrl-C)
  • composer.killLineEnd — Kill to the end of the line
  • composer.killLineStart — Kill to the start of the line
  • composer.killWordBack — Kill the previous word
  • composer.killWordForward — Kill the next word
  • composer.lineEnd — Move to the end of the line
  • composer.lineNext — Move to the next line, or the next prompt on the last line
  • composer.linePrev — Move to the previous line, or the previous prompt on the first line
  • composer.lineStart — Move to the start of the line
  • composer.restore — Restore this thread’s last Ctrl-C-cleared draft, including images and pastes (normal-mode u)
  • composer.selectAll — Select the whole draft
  • composer.transpose — Swap the characters around the caret
  • composer.wordBack — Move back one word
  • composer.wordForward — Move forward one word
  • composer.yank — Yank the last killed text
  • density.set — Density (compact, normal), until the daemon restarts (:density)
  • file.copyPath — Copy a file’s path (:copy-path ), or the focused path (:copy-path)
  • file.open — Open a file (:open [:]), or the focused path (:open) (:open)
  • file.pick — Pick a workspace file
  • focus.leave — Leave the composer
  • help.describeCommand — Describe a command: its keys and where they are bound (:describe-command ) (:describe-command)
  • help.describeKey — Describe a key: what it runs and where it is bound (:describe-key)
  • help.messages — Show the notices and toasts that went by (newest first) (:messages)
  • help.open — Show every key and command (this help) (:help)
  • job.disable — Disable a job of the current workspace until the daemon restarts (:job-disable ) (:job-disable)
  • job.enable — Enable a job of the current workspace until the daemon restarts (:job-enable ) (:job-enable)
  • job.kill — Stop the running run of a job of the current workspace (:job-kill ) (:job-kill)
  • job.list — Show the jobs of the current workspace (omfp:jobs) (:jobs)
  • job.run — Run a job of the current workspace (:job-run ) (:job-run)
  • menu.open — Open the context menu of the focused message, file or thread (:menu)
  • nav.bottom — Last message
  • nav.delete — Delete the focused thread or workspace, else the selected thread
  • nav.halfDown — Scroll half a page down
  • nav.halfUp — Scroll half a page up
  • nav.next — Next message (a long one scrolls down to its end first)
  • nav.prev — Previous message (a long one scrolls up to its top first)
  • nav.search — Search the current conversation (:search)
  • nav.toggleSection — Collapse or expand the focused workspace, else the selected thread’s
  • nav.top — First message
  • notice.open — Open the newest notice (:notice)
  • notifications.push — Push notifications to this browser while no omfp window has the focus (:push [on|off]) (:push)
  • pane.down — Focus the pane below
  • pane.left — Focus the pane on the left
  • pane.right — Focus the pane on the right
  • pane.up — Focus the pane above
  • settings.set — Change a setting until the daemon restarts (:set key=value; to keep it, declare it with ctx.settings in init.ts) (:set)
  • tab.next — Next tab of the focused tabs
  • tab.prev — Previous tab of the focused tabs
  • thread.abort — Interrupt the agent
  • thread.approvals — Show or set the thread’s approval mode (:approvals [yolo|write|always-ask|always-ask-cached]) (:approvals): Which tool calls of the selected thread ask you first: yolo runs every tool; write runs file edits and asks before the other tools that are not read-only (commands, MCP tools, …); always-ask asks before file edits too; always-ask-cached is always-ask whose question can also allow that tool for the rest of the session. Without a mode it says the current one.
  • thread.archive — Archive the thread (:archive)
  • thread.compact — Compact the context (:compact [focus of the summary]) (:compact): Has pi summarize the selected thread’s conversation so far and continue from the summary, freeing context. Words after :compact tell the summary what to focus on. Refused while the thread works; the transcript shows the compaction as a notice.
  • thread.copy — Copy the conversation as Markdown (the focused message only, in the transcript) (:copy): Copies the selected thread’s conversation to the clipboard as Markdown: messages under their author, tool calls as a line with their result, thinking left out, images as placeholders. With a message of the transcript focused (j and k move between them), only that message.
  • thread.copy — Copy the conversation as Markdown (the focused message only, in the transcript) (:copy): Copies the selected thread’s conversation to the clipboard as Markdown: messages under their author, tool calls as a line with their result, thinking left out, images as placeholders. With a message of the transcript focused (j and k move between them), only that message.
  • thread.delete — Delete thread now (:delete): Immediately removes the thread’s history without confirmation; its workspace is kept. Use Archive to keep the conversation.
  • thread.export — Export the conversation as a Markdown file (:export): Saves the selected thread’s conversation as a Markdown file, the same text :copy copies: the browser downloads it, the desktop window saves it in your Downloads folder.
  • thread.first — First thread (:first-thread)
  • thread.fork — Fork a new thread from the selected message (transcript) or entry (session tree) (:fork): Makes a new thread in the same workspace holding the conversation up to the message, the message included; the thread you fork from is left as it is.
  • thread.halfDown — Half a page of threads down
  • thread.halfUp — Half a page of threads up
  • thread.last — Last thread (:last-thread)
  • thread.new — New thread in the current workspace (:new)
  • thread.next — Next thread (:next-thread)
  • thread.nextAttention — Next thread needing attention (:next)
  • thread.pickModel — Pick the thread’s model (opens the header’s model list) (:model)
  • thread.prev — Previous thread (:prev-thread)
  • thread.rename — Rename the thread (:rename , or in place without one) (:rename)</li> <li><code dir="auto">thread.restart</code> — Restart the thread’s process (:restart)</li> <li><code dir="auto">thread.resume</code> — Resume the turn a daemon restart interrupted (:resume): Starts the selected thread’s agent and tells it that its previous turn was interrupted by a daemon restart, so it checks what was in progress and continues. Offered while the thread’s last turn is marked interrupted; any message you send clears the mark too.</li> <li><code dir="auto">thread.stop</code> — Stop process (:stop): Ends the thread’s pi session, with its background commands and live voice; Restart starts it again. To stop only the running turn, use Abort (ctrl+c).</li> <li><code dir="auto">thread.stopSpawned</code> — Stop process of the thread and of every thread it spawned (:stop!)</li> <li><code dir="auto">thread.unarchive</code> — Unarchive the thread (:unarchive)</li> <li><code dir="auto">threads.collapse</code> — Hide or show the left column</li> <li><code dir="auto">threads.moveDown</code> — Move the focused thread or workspace down, else the selected thread</li> <li><code dir="auto">threads.moveToNextWorkspace</code> — Move the focused (else the selected) thread to the start of the next workspace</li> <li><code dir="auto">threads.moveToPrevWorkspace</code> — Move the focused (else the selected) thread to the end of the previous workspace</li> <li><code dir="auto">threads.moveUp</code> — Move the focused thread or workspace up, else the selected thread</li> <li><code dir="auto">threads.pick</code> — Pick a thread (live preview; Escape restores the original) (:threads)</li> <li><code dir="auto">threads.spawnedBy</code> — Show only the threads the selected one spawned (again: every thread) (:spawned)</li> <li><code dir="auto">threads.toggle</code> — Focus threads (wide); show or hide threads (narrow)</li> <li><code dir="auto">view.app</code> — Open the view as an app of its own, which the browser can install (:app) (:app)</li> <li><code dir="auto">view.appFull</code> — Open omfp as an app opening on a new thread in this view, which the browser can install; threads and views stay (:app-full) (:app-full)</li> <li><code dir="auto">view.focus</code> — Focus the view where it was last (View mode: the keys go to its widget)</li> <li><code dir="auto">view.leave</code> — Leave the view (Threads mode: the keys switch threads)</li> <li><code dir="auto">view.next</code> — Next view</li> <li><code dir="auto">view.pick</code> — Pick a view (Space v; fuzzy search, 1–9 or arrows and Enter)</li> <li><code dir="auto">view.prev</code> — Previous view</li> <li><code dir="auto">view.reset</code> — Drop the live changes to the workspace’s views, back to the declared ones, after a confirmation (:view-reset)</li> <li><code dir="auto">view.restoreTabs</code> — Show again the tabs this window closed in the current view (:tabs-restore)</li> <li><code dir="auto">view.switch</code> — Switch view (:view <id>) (:view)</li> <li><code dir="auto">widget.manage</code> — Add a widget to the view or copy one into the workspace (:widget add <reference>, :widget copy <reference> [<name>]) (:widget)</li> <li><code dir="auto">window.theme</code> — Colour scheme (system, light, dark) and theme (synth, catppuccin, gruvbox, …; matugen: the user theme file, Synth without one); the theme lasts until the daemon restarts (:theme)</li> <li><code dir="auto">workspace.new</code> — New workspace (:workspace)</li> <li><code dir="auto">workspace.reloadInit</code> — Evaluate the init files again (the current workspace; <code dir="auto">all</code>: every workspace) (:reload-init)</li> <li><code dir="auto">workspace.rescan</code> — Rescan the current workspace (:rescan)</li> </ul> </div><footer class="sl-flex" data-astro-cid-mpfwu36y><div class="meta sl-flex" data-astro-cid-mpfwu36y><a href="https://github.com/aciceri/omfp/blob/master/ui/packages/daemon/docs/keymap-defaults.json" class="sl-flex print:hidden" data-astro-cid-jvfvr32r><svg data-astro-cid-jvfvr32r="true" aria-hidden="true" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.2em;" data-astro-cid-xvb3z7im><path d="M22 7.24a1 1 0 0 0-.29-.71l-4.24-4.24a1 1 0 0 0-1.1-.22 1 1 0 0 0-.32.22l-2.83 2.83L2.29 16.05a1 1 0 0 0-.29.71V21a1 1 0 0 0 1 1h4.24a1 1 0 0 0 .76-.29l10.87-10.93L21.71 8c.1-.1.17-.2.22-.33a1 1 0 0 0 0-.24v-.14l.07-.05ZM6.83 20H4v-2.83l9.93-9.93 2.83 2.83L6.83 20ZM18.17 8.66l-2.83-2.83 1.42-1.41 2.82 2.82-1.41 1.42Z"/></svg>Edit page</a></div><div class="pagination-links print:hidden" dir="ltr" data-astro-cid-pae4y4w4><a href="/docs/agents/troubleshooting/" rel="prev" data-astro-cid-pae4y4w4><svg data-astro-cid-pae4y4w4="true" aria-hidden="true" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;" data-astro-cid-xvb3z7im><path d="M17 11H9.41l3.3-3.29a1.004 1.004 0 1 0-1.42-1.42l-5 5a1 1 0 0 0-.21.33 1 1 0 0 0 0 .76 1 1 0 0 0 .21.33l5 5a1.002 1.002 0 0 0 1.639-.325 1 1 0 0 0-.219-1.095L9.41 13H17a1 1 0 0 0 0-2Z"/></svg><span data-astro-cid-pae4y4w4>Previous<br data-astro-cid-pae4y4w4><span class="link-title" data-astro-cid-pae4y4w4>Troubleshooting</span></span></a><a href="/docs/agents/schemas/views/" rel="next" data-astro-cid-pae4y4w4><svg data-astro-cid-pae4y4w4="true" aria-hidden="true" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;" data-astro-cid-xvb3z7im><path d="M17.92 11.62a1.001 1.001 0 0 0-.21-.33l-5-5a1.003 1.003 0 1 0-1.42 1.42l3.3 3.29H7a1 1 0 0 0 0 2h7.59l-3.3 3.29a1.002 1.002 0 0 0 .325 1.639 1 1 0 0 0 1.095-.219l5-5a1 1 0 0 0 .21-.33 1 1 0 0 0 0-.76Z"/></svg><span data-astro-cid-pae4y4w4>Next<br data-astro-cid-pae4y4w4><span class="link-title" data-astro-cid-pae4y4w4>omfp://schemas/views.json</span></span></a></div></footer></div></div></main></div></div></div></div></body></html>