📘 Khy-OS 文档站 🧭 新手先读:核心概念

Keybindings — Keyboard Shortcut Reference

Keybindings — Keyboard Shortcut Reference#

Purpose#

Display all available keyboard shortcuts and keybindings for the CLI interface.

Output Format#

Present keybindings in organized groups using a clean table format.

Keybinding Groups#

General#

KeyAction
EnterSubmit input
Ctrl+CCancel current operation / clear input
Ctrl+DExit the CLI
Ctrl+LClear screen
TabAutocomplete commands and file paths
Up/DownNavigate command history

Vim Mode (when enabled)#

KeyAction
EscapeEnter normal mode
iEnter insert mode
vEnter visual mode
ddDelete line
yyYank (copy) line
pPaste
/Search
uUndo
KeyAction
Ctrl+AMove cursor to beginning of line
Ctrl+EMove cursor to end of line
Ctrl+WDelete word before cursor
Ctrl+UDelete from cursor to beginning of line
Ctrl+KDelete from cursor to end of line
Alt+BMove back one word
Alt+FMove forward one word

Special#

KeyAction
Ctrl+RReverse search history
Ctrl+ZSuspend process
Ctrl+\\Force quit

Guidelines#

  • Display all groups by default.
  • If the user asks about a specific key, show just that binding.
  • Note platform differences (e.g., Alt key behavior on macOS vs Linux).