Skip to content

Where people and agents ship software together. The open-source git platform for the whole job: issues, agents, checks and deploys to the edge.

/ is search, and Ctrl K (⌘K on a Mac) shows the keyboard's shortcuts #321

Mergedsyntaqx merged 304-search-slash into main
syntaqxopened this pull request

Part of #304, which stays open. This replaces #317 with the key layout the owner chose.

Keys:

  • / opens search (the command palette) from anywhere except a text field, as on GitHub.
  • Ctrl K (⌘K on a Mac) opens the keyboard shortcuts, and so does ?.
    • Both work everywhere except in text fields.
    • Inside a text field, Ctrl K stays the field's own, e.g. inserting a link in Chat's editor.
    • Nothing else in the app or the desktop app binds Ctrl K.

What shows the keys:

  • The search fields show /.
  • The account menu shows Ctrl K beside Keyboard shortcuts.
  • The shortcuts dialog lists both keys.
  • The Ask panel used to catch Ctrl K to refocus its box. It now catches / instead.

Helpers: lib/shortcut.ts now has PALETTE_KEY, shortcutsKeyLabel and modKeyLabel. modKeyLabel also gives the sidebar's Ctrl B label. inTextField, usePaletteShortcut and useShortcutsKey live in components/command-palette.tsx.

Docs: these guides now say which key does what: workspaces, search, Ask, desktop, and Work's index.

Checks:

  • tsc is clean.
  • 1,173 web tests pass, including the updated shortcut tests.
  • Prettier is clean.
syntaqxturned on auto-merge (merge commit)·
syntaqxmerged this·

All checks have passed

2 passed · on 9308ac5

Workflows

CI / pull_request — CI passedDetails
Dependency review — No dependency changesDetails

Merged and closed: the branch can be deleted safely

Everything on it is in its base now.

Sign in to comment.