mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-21 10:34:35 -07:00
feat(cli): update undo/redo keybindings to Cmd+Z/Alt+Z and Shift+Cmd+Z/Shift+Alt+Z (#17800)
This commit is contained in:
committed by
GitHub
parent
b2265cfde4
commit
553ae3ad69
@@ -124,6 +124,8 @@ function charLengthAt(str: string, i: number): number {
|
||||
return code !== undefined && code >= kUTF16SurrogateThreshold ? 2 : 1;
|
||||
}
|
||||
|
||||
// Note: we do not convert alt+z, alt+shift+z, or alt+v here
|
||||
// because mac users have alternative hotkeys.
|
||||
const MAC_ALT_KEY_CHARACTER_MAP: Record<string, string> = {
|
||||
'\u222B': 'b', // "∫" back one word
|
||||
'\u0192': 'f', // "ƒ" forward one word
|
||||
|
||||
Reference in New Issue
Block a user