ui tweaks (#442)

This commit is contained in:
Olcan
2025-05-19 16:58:57 -07:00
committed by GitHub
parent 28acb8d495
commit 9c72a3ae12
4 changed files with 30 additions and 22 deletions

View File

@@ -7,14 +7,13 @@
import React from 'react';
import { Box, Text } from 'ink';
import { Colors } from '../colors.js';
import { Config } from '@gemini-code/server';
import { shortenPath, tildeifyPath, Config } from '@gemini-code/server';
interface FooterProps {
config: Config;
debugMode: boolean;
debugMessage: string;
cliVersion: string;
geminiMdFileCount: number;
corgiMode: boolean;
}
@@ -23,19 +22,16 @@ export const Footer: React.FC<FooterProps> = ({
debugMode,
debugMessage,
cliVersion,
geminiMdFileCount,
corgiMode,
}) => (
<Box marginTop={1}>
<Box>
{geminiMdFileCount > 0 && (
<Text color={Colors.SubtleComment}>
Using {geminiMdFileCount} GEMINI.md files
</Text>
)}
<Text color={Colors.LightBlue}>
{shortenPath(tildeifyPath(config.getTargetDir()), 70)}
</Text>
{debugMode && (
<Text color={Colors.AccentRed}>
{debugMessage || ' | Running in debug mode.'}
{' ' + (debugMessage || '--debug')}
</Text>
)}
</Box>
@@ -74,9 +70,6 @@ export const Footer: React.FC<FooterProps> = ({
<Text color={Colors.AccentRed}>▼ </Text>
</Text>
)}
{process.env.GEMINI_SYSTEM_MD && (
<Text color={Colors.AccentRed}>|⌐■_■|</Text>
)}
</Box>
</Box>
);

View File

@@ -216,7 +216,7 @@ export const InputPrompt: React.FC<InputPromptProps> = ({
initialCursorOffset={editorState.initialCursorOffset}
initialText={query}
onChange={onChange}
placeholder="Enter your message or use tools (e.g., @src/file.txt)..."
placeholder="Type your message or @path/to/file"
/* Account for width used by the box and &gt; */
navigateUp={inputHistory.navigateUp}
navigateDown={inputHistory.navigateDown}