Answer: Gemini CLI provides editing shortcuts such as Ctrl+K to delete to end of line, Ctrl+U to delete to start of line, Ctrl+W to delete the previous word, and Ctrl+Z to undo, plus history shortcuts Ctrl+P for the previous entry, Ctrl+N for the next entry, and Ctrl+R to start reverse search.
Status: Confirmed
Entry: tool/gemini-cli/commands-and-shortcuts/default-keyboard-shortcuts
Revision: 1
Digest: sha256:5d8c3abfd146e573 (changes whenever the content changes)
Timeline:
Created: 2026-11-13T03:18:47Z
Last changed: 2026-11-13T03:18:47Z
Last verified: 2026-11-20T12:53:29Z
Next check: 2026-11-21T12:53:29Z
Check interval: Daily
Expected change: No fixed schedule
Data:
Field | Value | Source | As of
delete to end of line | Ctrl+K | [1] | 2026-11-20
delete to start of line | Ctrl+U | [1] | 2026-11-20
delete previous word | Ctrl+W | [1] | 2026-11-20
undo | Ctrl+Z | [1] | 2026-11-20
previous history entry | Ctrl+P | [1] | 2026-11-20
next history entry | Ctrl+N | [1] | 2026-11-20
reverse history search | Ctrl+R | [1] | 2026-11-20
Sources:
[1] Google. "Gemini CLI keyboard shortcuts". https://geminicli.com/docs/reference/keyboard-shortcuts.md
Role: primary. Accessed: 2026-11-20T12:53:29Z
Quote: "Delete from the cursor to the end of the line. | `Ctrl+K`" (Supports: delete to end of line)
Quote: "Delete from the cursor to the start of the line. | `Ctrl+U`" (Supports: delete to start of line)
Quote: "Delete the previous word. | `Ctrl+Backspace`
`Alt+Backspace`
`Ctrl+W`" (Supports: delete previous word)
Quote: "Undo the most recent text edit. | `Ctrl+Z`
`Alt+Z`
`Cmd/Win+Z`" (Supports: undo)
Quote: "Show the previous entry in history. | `Ctrl+P`" (Supports: previous history entry)
Quote: "Show the next entry in history. | `Ctrl+N`" (Supports: next history entry)
Quote: "Start reverse search through history. | `Ctrl+R`" (Supports: reverse history search)
Published: 2026-10-16T02:36:07Z
Snapshot SHA-256: b5f62ca5729259379005c5713a0546adf596f62c6bac8b0d11bdf5e95202d3e2 (captured 2026-11-13T03:18:46Z)
Verification:
Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:18:47Z, so the values verified then were kept.
Cross-check: not-available at 2026-11-20T12:53:29Z. No independent second source is configured for this entry
Last successful check: 2026-11-20T12:53:29Z
Last attempt: 2026-11-20T12:53:29Z
Notes and limitations:
Extracted automatically from a single official source (section "Gemini CLI keyboard shortcuts").
Related:
https://latestn.com/tool/gemini-cli/commands-and-shortcuts/enable-disable-skill-in-session How do I enable or disable an Agent Skill in Gemini CLI during a session?
https://latestn.com/tool/gemini-cli/commands-and-shortcuts/enter-plan-mode How do I enter Plan Mode in Gemini CLI?
https://latestn.com/tool/gemini-cli/commands-and-shortcuts/enter-shell-mode How do I enter Shell mode in Gemini CLI?
https://latestn.com/tool/gemini-cli/commands-and-shortcuts/custom-command-arguments How do I pass arguments to a Gemini CLI custom command?
https://latestn.com/tool/gemini-cli/commands-and-shortcuts/custom-command-file-locations-precedence Where does Gemini CLI look for custom command files and which location takes precedence?
https://latestn.com/tool/gemini-cli/commands-and-shortcuts/customize-keybindings How do I customize keybindings in Gemini CLI?
https://latestn.com/tool/ All entries in AI tools
Change log:
Time | Event | Change | Source
2026-11-13T03:18:47Z | added | Entry created | —
Changes for this entry as a feed: https://latestn.com/tool/gemini-cli/commands-and-shortcuts/default-keyboard-shortcuts/latest
Challenge this entry:
Open challenges: None
How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so.
Form: https://latestn.com/dispute/tool/gemini-cli/commands-and-shortcuts/default-keyboard-shortcuts
POST: https://latestn.com/dispute/tool/gemini-cli/commands-and-shortcuts/default-keyboard-shortcuts with claim, evidence_url, and optionally field and contact (form-encoded or JSON)
GET: https://latestn.com/dispute/tool/gemini-cli/commands-and-shortcuts/default-keyboard-shortcuts?claim={what is wrong}&evidence_url={link}
How to cite:
LatestN. (2026). What keyboard shortcuts does Gemini CLI have for editing input and navigating history? Revision 1, last verified 2026-11-20T12:53:29Z. https://latestn.com/tool/gemini-cli/commands-and-shortcuts/default-keyboard-shortcuts (accessed 2026-11-21T10:07:20Z).
@misc{LatestN_tool_gemini_cli_commands_and_shortcuts_default_keyboard_shortcuts_r1,
title = {What keyboard shortcuts does Gemini CLI have for editing input and navigating history?},
author = {{LatestN}},
year = {2026},
howpublished = {\url{https://latestn.com/tool/gemini-cli/commands-and-shortcuts/default-keyboard-shortcuts}},
note = {Revision 1; digest sha256:5d8c3abfd146e573; last verified 2026-11-20T12:53:29Z; accessed 2026-11-21T10:07:20Z}
}
Reuse:
License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)
Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation.
URL: https://latestn.com/tool/gemini-cli/commands-and-shortcuts/default-keyboard-shortcuts