Commands That Respect Attention

Small interaction patterns for command menus, quick actions, and keyboard-first personal software.

writing.track设计工程

关于界面承诺、命令交互、阅读体验和组件系统的设计工程笔记。

把 UI/UX 选择和实现约束放在同一个阅读路径里。
read.use("commands-that-respect-attention")Technical context

read.context("technical")

  • Source notes
  • Component decisions
  • API / route contracts
  • Implementation review

Commands That Respect Attention

Command palettes are easy to imitate and hard to make useful. The visual shell is only a small part of the pattern. The value lives in action ranking, predictable recovery, and clear consequences.

#Rank by intent

The first results should match the most likely job, not the most recently added feature. A personal site can use route intent, current page context, and content type as ranking signals.

#Show the next state

Before executing a command, reveal enough context: destination, content type, status, or shortcut. The user should never wonder whether a command opens, copies, filters, or mutates.

snippet0 lines
const action = {
  label: "Open latest essay",
  target: "/blog/interface-is-a-promise",
  effect: "navigate",
};

#Give power a soft edge

Keyboard-first interfaces do not need to feel harsh. Good focus states, gentle motion, and reversible actions can keep the interaction technical without making it brittle.