mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-29 14:34:55 -07:00
Fix: make ctrl+x use preferred editor (#16556)
This commit is contained in:
committed by
GitHub
parent
778de55fd8
commit
8dbaa2bcea
@@ -391,6 +391,11 @@ export const AppContainer = (props: AppContainerProps) => {
|
||||
}
|
||||
}, []);
|
||||
|
||||
const getPreferredEditor = useCallback(
|
||||
() => settings.merged.general?.preferredEditor as EditorType,
|
||||
[settings.merged.general?.preferredEditor],
|
||||
);
|
||||
|
||||
const buffer = useTextBuffer({
|
||||
initialText: '',
|
||||
viewport: { height: 10, width: inputWidth },
|
||||
@@ -398,6 +403,7 @@ export const AppContainer = (props: AppContainerProps) => {
|
||||
setRawMode,
|
||||
isValidPath,
|
||||
shellModeActive,
|
||||
getPreferredEditor,
|
||||
});
|
||||
|
||||
// Initialize input history from logger (past sessions)
|
||||
@@ -758,11 +764,6 @@ Logging in with Google... Restarting Gemini CLI to continue.
|
||||
() => {},
|
||||
);
|
||||
|
||||
const getPreferredEditor = useCallback(
|
||||
() => settings.merged.general?.preferredEditor as EditorType,
|
||||
[settings.merged.general?.preferredEditor],
|
||||
);
|
||||
|
||||
const onCancelSubmit = useCallback((shouldRestorePrompt?: boolean) => {
|
||||
if (shouldRestorePrompt) {
|
||||
setPendingRestorePrompt(true);
|
||||
|
||||
Reference in New Issue
Block a user