mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-22 11:04:42 -07:00
feat(plan): support opening and modifying plan in external editor (#20348)
This commit is contained in:
@@ -183,6 +183,10 @@ interface AskUserDialogProps {
|
||||
* Height constraint for scrollable content.
|
||||
*/
|
||||
availableHeight?: number;
|
||||
/**
|
||||
* Custom keyboard shortcut hints (e.g., ["Ctrl+P to edit"])
|
||||
*/
|
||||
extraParts?: string[];
|
||||
}
|
||||
|
||||
interface ReviewViewProps {
|
||||
@@ -190,6 +194,7 @@ interface ReviewViewProps {
|
||||
answers: { [key: string]: string };
|
||||
onSubmit: () => void;
|
||||
progressHeader?: React.ReactNode;
|
||||
extraParts?: string[];
|
||||
}
|
||||
|
||||
const ReviewView: React.FC<ReviewViewProps> = ({
|
||||
@@ -197,6 +202,7 @@ const ReviewView: React.FC<ReviewViewProps> = ({
|
||||
answers,
|
||||
onSubmit,
|
||||
progressHeader,
|
||||
extraParts,
|
||||
}) => {
|
||||
const unansweredCount = questions.length - Object.keys(answers).length;
|
||||
const hasUnanswered = unansweredCount > 0;
|
||||
@@ -247,6 +253,7 @@ const ReviewView: React.FC<ReviewViewProps> = ({
|
||||
<DialogFooter
|
||||
primaryAction="Enter to submit"
|
||||
navigationActions="Tab/Shift+Tab to edit answers"
|
||||
extraParts={extraParts}
|
||||
/>
|
||||
</Box>
|
||||
);
|
||||
@@ -925,6 +932,7 @@ export const AskUserDialog: React.FC<AskUserDialogProps> = ({
|
||||
onActiveTextInputChange,
|
||||
width,
|
||||
availableHeight: availableHeightProp,
|
||||
extraParts,
|
||||
}) => {
|
||||
const uiState = useContext(UIStateContext);
|
||||
const availableHeight =
|
||||
@@ -1120,6 +1128,7 @@ export const AskUserDialog: React.FC<AskUserDialogProps> = ({
|
||||
answers={answers}
|
||||
onSubmit={handleReviewSubmit}
|
||||
progressHeader={progressHeader}
|
||||
extraParts={extraParts}
|
||||
/>
|
||||
</Box>
|
||||
);
|
||||
@@ -1143,6 +1152,7 @@ export const AskUserDialog: React.FC<AskUserDialogProps> = ({
|
||||
? undefined
|
||||
: '↑/↓ to navigate'
|
||||
}
|
||||
extraParts={extraParts}
|
||||
/>
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user