mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-14 22:02:59 -07:00
feat(cli): customizable keyboard shortcuts (#21945)
This commit is contained in:
committed by
GitHub
parent
657f19c1f3
commit
daf3701194
@@ -9,7 +9,7 @@ import {
|
||||
type Command,
|
||||
type KeyBinding,
|
||||
type KeyBindingConfig,
|
||||
defaultKeyBindings,
|
||||
defaultKeyBindingConfig,
|
||||
} from './keyBindings.js';
|
||||
|
||||
/**
|
||||
@@ -97,10 +97,10 @@ export function formatKeyBinding(
|
||||
*/
|
||||
export function formatCommand(
|
||||
command: Command,
|
||||
config: KeyBindingConfig = defaultKeyBindings,
|
||||
config: KeyBindingConfig = defaultKeyBindingConfig,
|
||||
platform?: string,
|
||||
): string {
|
||||
const bindings = config[command];
|
||||
const bindings = config.get(command);
|
||||
if (!bindings || bindings.length === 0) {
|
||||
return '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user