mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-15 06:12:50 -07:00
Update packages/cli/src/ui/utils/editorUtils.ts
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
@@ -48,7 +48,7 @@ export async function openFileInEditor(
|
||||
}
|
||||
|
||||
if (!command) {
|
||||
command = process.env['VISUAL'] || process.env['EDITOR'];
|
||||
command = process.env['VISUAL']?.trim() || process.env['EDITOR']?.trim();
|
||||
if (command) {
|
||||
const lowerCommand = command.toLowerCase();
|
||||
const isGui = ['code', 'cursor', 'subl', 'zed', 'atom'].some((gui) =>
|
||||
|
||||
Reference in New Issue
Block a user