feat: Allow the function to hide or show thinking blocks to be bound to a key (resolves #12168) (#12171)
This commit is contained in:
@@ -546,6 +546,7 @@ export function Session() {
|
|||||||
{
|
{
|
||||||
title: showThinking() ? "Hide thinking" : "Show thinking",
|
title: showThinking() ? "Hide thinking" : "Show thinking",
|
||||||
value: "session.toggle.thinking",
|
value: "session.toggle.thinking",
|
||||||
|
keybind: "display_thinking",
|
||||||
category: "Session",
|
category: "Session",
|
||||||
slash: {
|
slash: {
|
||||||
name: "thinking",
|
name: "thinking",
|
||||||
|
|||||||
@@ -899,6 +899,7 @@ export namespace Config {
|
|||||||
terminal_suspend: z.string().optional().default("ctrl+z").describe("Suspend terminal"),
|
terminal_suspend: z.string().optional().default("ctrl+z").describe("Suspend terminal"),
|
||||||
terminal_title_toggle: z.string().optional().default("none").describe("Toggle terminal title"),
|
terminal_title_toggle: z.string().optional().default("none").describe("Toggle terminal title"),
|
||||||
tips_toggle: z.string().optional().default("<leader>h").describe("Toggle tips on home screen"),
|
tips_toggle: z.string().optional().default("<leader>h").describe("Toggle tips on home screen"),
|
||||||
|
display_thinking: z.string().optional().default("none").describe("Toggle thinking blocks visibility"),
|
||||||
})
|
})
|
||||||
.strict()
|
.strict()
|
||||||
.meta({
|
.meta({
|
||||||
|
|||||||
@@ -1309,6 +1309,10 @@ export type KeybindsConfig = {
|
|||||||
* Toggle tips on home screen
|
* Toggle tips on home screen
|
||||||
*/
|
*/
|
||||||
tips_toggle?: string
|
tips_toggle?: string
|
||||||
|
/**
|
||||||
|
* Toggle thinking blocks visibility
|
||||||
|
*/
|
||||||
|
display_thinking?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -97,7 +97,8 @@ OpenCode has a list of keybinds that you can customize through the OpenCode conf
|
|||||||
"history_next": "down",
|
"history_next": "down",
|
||||||
"terminal_suspend": "ctrl+z",
|
"terminal_suspend": "ctrl+z",
|
||||||
"terminal_title_toggle": "none",
|
"terminal_title_toggle": "none",
|
||||||
"tips_toggle": "<leader>h"
|
"tips_toggle": "<leader>h",
|
||||||
|
"display_thinking": "none"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user