mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-08-08 16:11:58 -07:00
feat(ui): add fullscreen toggle for integrated and background shells
This commit is contained in:
@@ -33,6 +33,7 @@ import {
|
||||
type RadioSelectItem,
|
||||
} from './shared/RadioButtonSelect.js';
|
||||
import { useKeyMatchers } from '../hooks/useKeyMatchers.js';
|
||||
import { useSettings } from '../contexts/SettingsContext.js';
|
||||
|
||||
interface BackgroundShellDisplayProps {
|
||||
shells: Map<number, BackgroundShell>;
|
||||
@@ -70,6 +71,7 @@ export const BackgroundShellDisplay = ({
|
||||
isListOpenProp,
|
||||
}: BackgroundShellDisplayProps) => {
|
||||
const keyMatchers = useKeyMatchers();
|
||||
const settings = useSettings();
|
||||
const {
|
||||
dismissBackgroundShell,
|
||||
setActiveBackgroundShellPid,
|
||||
@@ -178,6 +180,10 @@ export const BackgroundShellDisplay = ({
|
||||
return false;
|
||||
}
|
||||
|
||||
if (keyMatchers[Command.TOGGLE_SHELL_FULLSCREEN](key)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (keyMatchers[Command.KILL_BACKGROUND_SHELL](key)) {
|
||||
void dismissBackgroundShell(activeShell.pid);
|
||||
return true;
|
||||
@@ -207,6 +213,9 @@ export const BackgroundShellDisplay = ({
|
||||
{ label: 'Close', command: Command.TOGGLE_BACKGROUND_SHELL },
|
||||
{ label: 'Kill', command: Command.KILL_BACKGROUND_SHELL },
|
||||
{ label: 'List', command: Command.TOGGLE_BACKGROUND_SHELL_LIST },
|
||||
...(settings.merged.experimental.fullscreen
|
||||
? [{ label: 'Fullscreen', command: Command.TOGGLE_SHELL_FULLSCREEN }]
|
||||
: []),
|
||||
];
|
||||
|
||||
const helpTextStr = helpTextParts
|
||||
|
||||
Reference in New Issue
Block a user