Remove ctrl-t binding for /mcp commands (#11372)

This commit is contained in:
Tommaso Sciortino
2025-10-17 09:42:09 -07:00
committed by GitHub
parent 0ded546a09
commit 795e5134c7
14 changed files with 5 additions and 52 deletions
-14
View File
@@ -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,