Cloudflare Git

Repos/herdr-appPublic

main
13 lines · 1.8 KBRaw

keys

keys.json is the whole key map. install.sh copies it over the app's own (AGENTS.md: "Keys"). Values are "command" or "command:arg" ("pane.split:right"). herdr-app commands lists the commands. A key that isn't in the file goes straight to the terminal.

Once a person edits the file, Herdr stops adding new default shortcuts on upgrade. After an app update, compare it with a fresh default and add new shortcuts by hand.

Changed from the defaults:

  • cmd-n splits right and cmd-shift-n splits down. cmd-n was space.new, which now has no key. cmd-d and cmd-shift-d still split too.
  • cmd-w closes the pane and cmd-shift-w closes the tab. The defaults had them the other way round.
  • cmd-a opens Claude Code in a new pane to the right (pane.split with argv: ["claude"]). Leave cmd-shift-a unbound: the user has it on a macOS screenshot shortcut. This ports herdr-kit's new-agent. The terminal section's cmd-a Select all was removed because the terminal section beats global. The user doesn't use Select all.
  • cmd-shift-←/→/↑/↓ swaps the pane with its neighbour (pane.swap), moved from cmd-alt-shift-arrows. Herdr has no command that moves a pane into another column; dragging the top-centre grip to an edge comes closest.
  • cmd-f toggles the Files panel (layout.toggle:panel). cmd-s opens search (this repo's clone of the shipped picker), which finds any space, tab or agent and replaces the sidebar Spaces list. Global, and the terminal section beats global, so the terminal's own cmd-f search moved to cmd-shift-f. cmd-k is left to the terminal (clear scrollback).
  • cmd-b folds the sidebar to its rail and opens it back (agents-activity.toggleSidebar, the rail's open button) instead of hiding it (layout.toggle:sidebar).