spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / mods / diff / hooks / views / pane-actions / pane-actions.ts
36 lines · 795 BRaw
1/**
2 * What the pane's Buttons and Selects do, each closing over the plugin's
3 * state in its register function.
4 */
5export type PaneActions = {
6 /**
7 * Shows this file's body under the list.
8 */
9 selectFile: (path: string) => void
10
11 /**
12 * Shows or hides the tests and generated files.
13 */
14 toggleNoise: () => void
15
16 /**
17 * Opens or closes the pre-session section.
18 */
19 togglePreSession: () => void
20
21 /**
22 * Picks the comparison base by its Select value; an unknown value is
23 * ignored.
24 */
25 chooseBase: (value: string) => void
26
27 /**
28 * Picks the source by its Select value: `current` or a turn's number.
29 */
30 chooseSource: (value: string) => void
31
32 /**
33 * Arms this file's diff for the next prompt, or disarms it.
34 */
35 toggleAsk: (path: string) => void
36}