mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-07 11:51:14 -07:00
feat: Ctrl+O to expand paste placeholder (#18103)
This commit is contained in:
@@ -6,12 +6,23 @@
|
||||
|
||||
import { EventEmitter } from 'node:events';
|
||||
|
||||
export enum TransientMessageType {
|
||||
Warning = 'warning',
|
||||
Hint = 'hint',
|
||||
}
|
||||
|
||||
export interface TransientMessagePayload {
|
||||
message: string;
|
||||
type: TransientMessageType;
|
||||
}
|
||||
|
||||
export enum AppEvent {
|
||||
OpenDebugConsole = 'open-debug-console',
|
||||
Flicker = 'flicker',
|
||||
SelectionWarning = 'selection-warning',
|
||||
PasteTimeout = 'paste-timeout',
|
||||
TerminalBackground = 'terminal-background',
|
||||
TransientMessage = 'transient-message',
|
||||
}
|
||||
|
||||
export interface AppEvents {
|
||||
@@ -20,6 +31,7 @@ export interface AppEvents {
|
||||
[AppEvent.SelectionWarning]: never[];
|
||||
[AppEvent.PasteTimeout]: never[];
|
||||
[AppEvent.TerminalBackground]: [string];
|
||||
[AppEvent.TransientMessage]: [TransientMessagePayload];
|
||||
}
|
||||
|
||||
export const appEvents = new EventEmitter<AppEvents>();
|
||||
|
||||
Reference in New Issue
Block a user