mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-01 15:34:29 -07:00
Remove ctrl-t binding for /mcp commands (#11372)
This commit is contained in:
committed by
GitHub
parent
0ded546a09
commit
795e5134c7
@@ -796,8 +796,6 @@ Logging in with Google... Please restart Gemini CLI to continue.
|
||||
);
|
||||
|
||||
const [showErrorDetails, setShowErrorDetails] = useState<boolean>(false);
|
||||
const [showToolDescriptions, setShowToolDescriptions] =
|
||||
useState<boolean>(false);
|
||||
const [renderMarkdown, setRenderMarkdown] = useState<boolean>(true);
|
||||
|
||||
const [ctrlCPressedOnce, setCtrlCPressedOnce] = useState(false);
|
||||
@@ -971,14 +969,6 @@ Logging in with Google... Please restart Gemini CLI to continue.
|
||||
|
||||
if (keyMatchers[Command.SHOW_ERROR_DETAILS](key)) {
|
||||
setShowErrorDetails((prev) => !prev);
|
||||
} else if (keyMatchers[Command.TOGGLE_TOOL_DESCRIPTIONS](key)) {
|
||||
const newValue = !showToolDescriptions;
|
||||
setShowToolDescriptions(newValue);
|
||||
|
||||
const mcpServers = config.getMcpServers();
|
||||
if (Object.keys(mcpServers || {}).length > 0) {
|
||||
handleSlashCommand(newValue ? '/mcp desc' : '/mcp nodesc');
|
||||
}
|
||||
} else if (keyMatchers[Command.TOGGLE_MARKDOWN](key)) {
|
||||
setRenderMarkdown((prev) => {
|
||||
const newValue = !prev;
|
||||
@@ -1007,8 +997,6 @@ Logging in with Google... Please restart Gemini CLI to continue.
|
||||
constrainHeight,
|
||||
setConstrainHeight,
|
||||
setShowErrorDetails,
|
||||
showToolDescriptions,
|
||||
setShowToolDescriptions,
|
||||
config,
|
||||
ideContextState,
|
||||
handleExit,
|
||||
@@ -1152,7 +1140,6 @@ Logging in with Google... Please restart Gemini CLI to continue.
|
||||
showErrorDetails,
|
||||
filteredConsoleMessages,
|
||||
ideContextState,
|
||||
showToolDescriptions,
|
||||
renderMarkdown,
|
||||
ctrlCPressedOnce,
|
||||
ctrlDPressedOnce,
|
||||
@@ -1235,7 +1222,6 @@ Logging in with Google... Please restart Gemini CLI to continue.
|
||||
showErrorDetails,
|
||||
filteredConsoleMessages,
|
||||
ideContextState,
|
||||
showToolDescriptions,
|
||||
renderMarkdown,
|
||||
ctrlCPressedOnce,
|
||||
ctrlDPressedOnce,
|
||||
|
||||
Reference in New Issue
Block a user