mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-24 14:46:25 +00:00
Checkpoint supporting the cursor everywhere
This commit is contained in:
8
package-lock.json
generated
8
package-lock.json
generated
@@ -11,7 +11,7 @@
|
||||
"packages/*"
|
||||
],
|
||||
"dependencies": {
|
||||
"ink": "github:jacob314/ink#4185c82624c1f2712f63a4ef485f6712fde221d4",
|
||||
"ink": "github:jacob314/ink#6cf6d7db17691f2259e1df7061ae3813a280f926",
|
||||
"latest-version": "^9.0.0",
|
||||
"simple-git": "^3.28.0"
|
||||
},
|
||||
@@ -10875,8 +10875,8 @@
|
||||
"node_modules/ink": {
|
||||
"name": "@jrichman/ink",
|
||||
"version": "6.4.7",
|
||||
"resolved": "git+ssh://git@github.com/jacob314/ink.git#4185c82624c1f2712f63a4ef485f6712fde221d4",
|
||||
"integrity": "sha512-gnh5vOqmtzgOyYC3AJQlsjqHdW+KzKoykxtaNsHo37D8KtMhGXsXm6jvX8kpuL5s9GtiwB9O3z894SD+IfBJTA==",
|
||||
"resolved": "git+ssh://git@github.com/jacob314/ink.git#6cf6d7db17691f2259e1df7061ae3813a280f926",
|
||||
"integrity": "sha512-RRKuBwLxo7WDtm0/N8FvSHGq/cWJCfdnR5ZzK1jR/y3rF054GzIeFsRf9XUAC6quyLkvyCIBTmXyFIVaWoZIgg==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
@@ -18723,7 +18723,7 @@
|
||||
"fzf": "^0.5.2",
|
||||
"glob": "^12.0.0",
|
||||
"highlight.js": "^11.11.1",
|
||||
"ink": "github:jacob314/ink#4185c82624c1f2712f63a4ef485f6712fde221d4",
|
||||
"ink": "github:jacob314/ink#6cf6d7db17691f2259e1df7061ae3813a280f926",
|
||||
"ink-gradient": "^3.0.0",
|
||||
"ink-spinner": "^5.0.0",
|
||||
"latest-version": "^9.0.0",
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
"pre-commit": "node scripts/pre-commit.js"
|
||||
},
|
||||
"overrides": {
|
||||
"ink": "github:jacob314/ink#4185c82624c1f2712f63a4ef485f6712fde221d4",
|
||||
"ink": "github:jacob314/ink#6cf6d7db17691f2259e1df7061ae3813a280f926",
|
||||
"wrap-ansi": "9.0.2",
|
||||
"cliui": {
|
||||
"wrap-ansi": "7.0.0"
|
||||
@@ -124,7 +124,7 @@
|
||||
"yargs": "^17.7.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"ink": "github:jacob314/ink#4185c82624c1f2712f63a4ef485f6712fde221d4",
|
||||
"ink": "github:jacob314/ink#6cf6d7db17691f2259e1df7061ae3813a280f926",
|
||||
"latest-version": "^9.0.0",
|
||||
"simple-git": "^3.28.0"
|
||||
},
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
"fzf": "^0.5.2",
|
||||
"glob": "^12.0.0",
|
||||
"highlight.js": "^11.11.1",
|
||||
"ink": "github:jacob314/ink#4185c82624c1f2712f63a4ef485f6712fde221d4",
|
||||
"ink": "github:jacob314/ink#6cf6d7db17691f2259e1df7061ae3813a280f926",
|
||||
"ink-gradient": "^3.0.0",
|
||||
"ink-spinner": "^5.0.0",
|
||||
"latest-version": "^9.0.0",
|
||||
|
||||
@@ -1064,6 +1064,11 @@ export function SettingsDialog({
|
||||
? theme.text.secondary
|
||||
: theme.text.primary
|
||||
}
|
||||
terminalCursorFocus={
|
||||
focusSection === 'settings' &&
|
||||
editingKey === item.value
|
||||
}
|
||||
terminalCursorPosition={editCursorPos}
|
||||
>
|
||||
{displayValue}
|
||||
</Text>
|
||||
|
||||
@@ -63,7 +63,7 @@ export function TextInput({
|
||||
return (
|
||||
<Box>
|
||||
{focus ? (
|
||||
<Text>
|
||||
<Text terminalCursorFocus={focus} terminalCursorPosition={0}>
|
||||
{chalk.inverse(placeholder[0] || ' ')}
|
||||
<Text color={theme.text.secondary}>{placeholder.slice(1)}</Text>
|
||||
</Text>
|
||||
@@ -95,7 +95,12 @@ export function TextInput({
|
||||
|
||||
return (
|
||||
<Box key={idx} height={1}>
|
||||
<Text>{lineDisplay}</Text>
|
||||
<Text
|
||||
terminalCursorFocus={isCursorLine}
|
||||
terminalCursorPosition={cursorVisualColAbsolute}
|
||||
>
|
||||
{lineDisplay}
|
||||
</Text>
|
||||
</Box>
|
||||
);
|
||||
})}
|
||||
|
||||
Reference in New Issue
Block a user