Keybindings
query-cli is designed to be fully keyboard-driven. Every action has a shortcut.
query-cli — Help
Global Shortcuts
| Key (Linux / Windows) | macOS | Action |
|---|---|---|
F5 / Ctrl + R | F5 / Control + R | Run query |
F9 / Ctrl + P | F9 / Control + P | Open command palette |
Ctrl + S | Control + S | Save query |
Ctrl + N | Control + N | New query |
Ctrl + D | Control + D | Delete query |
Ctrl + Y | Control + Y | Copy selection to clipboard |
F1 / Ctrl + H | F1 / Control + H | Show keyboard shortcuts help |
Ctrl + C | Control + C | Quit |
Note:
Ctrl+Smay freeze some Unix terminals (XOFF). PressCtrl+Qto resume, or disable flow control withstty -ixon.
Tab management (new, switch, save, rename, delete) and other actions are available through slash commands in the editor — type
/to see the list.
Editor Shortcuts
Inside the query editor:
↑/↓— Navigate suggestions (when autocomplete is visible)Tab/Enter— Accept suggestionEsc— Dismiss suggestions
Connection Screen
↑/↓orj/k— Navigate connectionsEnter— Connect / Create new / QuitCtrl+C— Quit
AI Prompts
@ai: <your request>— Ask AI to generate SQLEnter— Submit AI promptEsc(while AI is thinking) — Cancel AI request