Skip to content

Commit 26f7542

Browse files
committed
Remaining find-replace of mouseterm -> dormouse (except changelog)
1 parent e4df710 commit 26f7542

16 files changed

Lines changed: 51 additions & 51 deletions

File tree

.claude/commands/release-notes.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
name: release-notes
3-
description: Draft release notes, recommend and apply a version bump, and update CHANGELOG.md for the next mouseterm release by analyzing all merge commits and squash-merged PRs since the last release tag. Used as step 2 of the release checklist in docs/specs/deploy.md.
3+
description: Draft release notes, recommend and apply a version bump, and update CHANGELOG.md for the next dormouse release by analyzing all merge commits and squash-merged PRs since the last release tag. Used as step 2 of the release checklist in docs/specs/deploy.md.
44
user-invocable: true
55
---
66

7-
You are drafting release notes, recommending and applying a version bump, and updating CHANGELOG.md for the next mouseterm release.
7+
You are drafting release notes, recommending and applying a version bump, and updating CHANGELOG.md for the next dormouse release.
88

99
## 1. Gather context
1010

@@ -26,7 +26,7 @@ Also read the current version from `standalone/src-tauri/tauri.conf.json` so you
2626

2727
## 2. Decide the version bump
2828

29-
mouseterm uses **breaking.added.bugfix** semantics (semver-shaped, but named for what each segment means here):
29+
dormouse uses **breaking.added.bugfix** semantics (semver-shaped, but named for what each segment means here):
3030

3131
- **breaking** (major) — bump if any change breaks behavior users rely on, removes a feature, or changes a VSCode extension contribution point in an incompatible way
3232
- **added** (minor) — bump if any change adds a new user-facing feature, with no breaking changes

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"request": "launch",
88
"args": ["--extensionDevelopmentPath=${workspaceFolder}/vscode-ext"],
99
"outFiles": ["${workspaceFolder}/vscode-ext/dist/**/*.js"],
10-
"preLaunchTask": "build-mouseterm-vscode"
10+
"preLaunchTask": "build-dormouse-vscode"
1111
}
1212
]
1313
}

.vscode/tasks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"version": "2.0.0",
33
"tasks": [
44
{
5-
"label": "build-mouseterm-vscode",
5+
"label": "build-dormouse-vscode",
66
"type": "shell",
77
"command": "pnpm build:vscode",
88
"group": "build",

docs/specs/tutorial.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Three browser-side pieces in `website/src/lib/`, mirroring the pattern in `websi
88

99
- **`tut-runner.ts`** (`TutRunner`) — alt-screen TUI. Subscribes to `TutorialState` and re-renders whenever progress changes. Routes input bytes via `FakePtyAdapter.writePty(id, …)`.
1010
- **`tut-detector.ts`** (`TutDetector`) — wires app events to `TutorialState.markComplete(id)`. Subscribes to `DockviewApi.onDidActivePanelChange`, the `WallEvent` stream, the `subscribeToActivity` store from `dormouse-lib/lib/terminal-registry`, and the `subscribeToMouseSelection` store from `dormouse-lib/lib/mouse-selection`.
11-
- **`tutorial-state.ts`** (`TutorialState`) — single in-memory progress store, persisted as a JSON array of completed item ids under the `mouseterm-tut-v3` localStorage key.
11+
- **`tutorial-state.ts`** (`TutorialState`) — single in-memory progress store, persisted as a JSON array of completed item ids under the `dormouse-tut-v3` localStorage key.
1212
- **`tut-items.ts`** — section + item definitions (titles, hints) shared by runner and detector. Item ids are stable; they are the localStorage key suffixes.
1313

1414
## Layout
@@ -100,8 +100,8 @@ While the Copy paste section is open, pressing `p` toggles the **Place To Paste*
100100

101101
## Storage
102102

103-
- Completion: `localStorage["mouseterm-tut-v3"] = JSON.stringify([...completedItemIds])`. Removed on `TutorialState.reset()`. Unknown ids in a stored payload are filtered out on load, so renaming an id is a one-way reset for that item.
104-
- Legacy keys `mouseterm-tutorial-step-N` and `mouseterm-tut-v2-*` from previous designs are not read; new playground sessions get a fresh start.
103+
- Completion: `localStorage["dormouse-tut-v3"] = JSON.stringify([...completedItemIds])`. Removed on `TutorialState.reset()`. Unknown ids in a stored payload are filtered out on load, so renaming an id is a one-way reset for that item.
104+
- Legacy keys `dormouse-tutorial-step-N` and `dormouse-tut-v2-*` from previous designs are not read; new playground sessions get a fresh start.
105105

106106
## Theme Picker
107107

docs/specs/vscode.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ pnpm dogfood:vscode = build + package VSIX + install locally
213213
(then: Cmd+Shift+P -> "Developer: Reload Window" to pick up changes)
214214
215215
F5 in VS Code = launch Extension Development Host (see .vscode/launch.json)
216-
(runs preLaunchTask "build-mouseterm-vscode" from .vscode/tasks.json,
216+
(runs preLaunchTask "build-dormouse-vscode" from .vscode/tasks.json,
217217
which just calls `pnpm build:vscode`, then opens a new VS Code window
218218
with the extension loaded)
219219
```
@@ -230,33 +230,33 @@ Set context keys so menus and extensions can target Dormouse state:
230230

231231
```typescript
232232
// Set when any Dormouse webview has focus
233-
vscode.commands.executeCommand('setContext', 'mouseterm.active', true);
233+
vscode.commands.executeCommand('setContext', 'dormouse.active', true);
234234

235235
// Set when Dormouse is in passthrough/terminal mode (keys go to PTY)
236-
vscode.commands.executeCommand('setContext', 'mouseterm.mode', 'terminal');
236+
vscode.commands.executeCommand('setContext', 'dormouse.mode', 'terminal');
237237

238238
// Set when Dormouse is in normal/navigation mode (keys go to Dormouse UI)
239-
vscode.commands.executeCommand('setContext', 'mouseterm.mode', 'normal');
239+
vscode.commands.executeCommand('setContext', 'dormouse.mode', 'normal');
240240
```
241241

242242
### Commands
243243

244244
| Command | Description |
245245
|---------|-------------|
246246
| `dormouse.focus` | Focus the Dormouse panel view |
247-
| `mouseterm.newPane` | Split a new pane in Dormouse |
248-
| `mouseterm.closePane` | Close the focused pane |
249-
| `mouseterm.nextPane` | Focus next pane |
250-
| `mouseterm.prevPane` | Focus previous pane |
251-
| `mouseterm.enterTerminalMode` | Switch to passthrough mode |
252-
| `mouseterm.enterNormalMode` | Switch to navigation mode |
253-
| `mouseterm.listSessions` | Show QuickPick of all live PTY sessions |
254-
| `mouseterm.reattach` | Reattach a minimized PTY to a pane |
247+
| `dormouse.newPane` | Split a new pane in Dormouse |
248+
| `dormouse.closePane` | Close the focused pane |
249+
| `dormouse.nextPane` | Focus next pane |
250+
| `dormouse.prevPane` | Focus previous pane |
251+
| `dormouse.enterTerminalMode` | Switch to passthrough mode |
252+
| `dormouse.enterNormalMode` | Switch to navigation mode |
253+
| `dormouse.listSessions` | Show QuickPick of all live PTY sessions |
254+
| `dormouse.reattach` | Reattach a minimized PTY to a pane |
255255

256256
### Not yet implemented
257257

258258
- `TerminalProfileProvider` not registered — Dormouse doesn't appear in the terminal `+` dropdown
259-
- Context keys not set (`mouseterm.active`, `mouseterm.mode`) — needed for conditional keybindings
260-
- Commands not registered: `mouseterm.newPane`, `closePane`, `nextPane`, `prevPane`, `enterTerminalMode`, `enterNormalMode`, `listSessions`, `reattach`
259+
- Context keys not set (`dormouse.active`, `dormouse.mode`) — needed for conditional keybindings
260+
- Commands not registered: `dormouse.newPane`, `closePane`, `nextPane`, `prevPane`, `enterTerminalMode`, `enterNormalMode`, `listSessions`, `reattach`
261261
- No status bar item showing active session count
262262
- No QuickPick for listing/reattaching PTY sessions

lib/src/components/ThemeDebugger.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function originClass(origin: VscodeThemeVarTraceOrigin | VisibleVarOrigin): stri
4343
case 'host-provided':
4444
return 'text-success';
4545
case 'registry-default':
46-
case 'mouseterm-materialized':
46+
case 'dormouse-materialized':
4747
return '[color:var(--vscode-terminal-ansiYellow)]';
4848
case 'fallback':
4949
return 'text-muted';

lib/src/components/Wall.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export { TerminalPaneHeader } from './wall/TerminalPaneHeader';
8686

8787
const dormouseTheme: DockviewTheme = {
8888
...themeAbyss,
89-
name: 'mouseterm',
89+
name: 'dormouse',
9090
gap: 6,
9191
dndOverlayMounting: 'absolute',
9292
dndPanelOverlay: 'group',

lib/src/lib/terminal-state.test.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,13 @@ describe('terminal command state reducer', () => {
142142
let state = createTerminalPaneState();
143143
state = reduceTerminalState(state, { type: 'title', title: { title: 'zsh', source: 'osc0', updatedAt: 1 } });
144144
state = reduceTerminalState(state, { type: 'title', title: { title: 'vim', source: 'osc2', updatedAt: 2 } });
145-
state = reduceTerminalState(state, { type: 'title', title: { title: 'mouseterm', source: 'osc0', updatedAt: 3 } });
145+
state = reduceTerminalState(state, { type: 'title', title: { title: 'dormouse', source: 'osc0', updatedAt: 3 } });
146146

147-
expect(state.title).toEqual({ title: 'mouseterm', source: 'osc0', updatedAt: 3 });
148-
expect(state.titleCandidates.osc0).toEqual({ title: 'mouseterm', source: 'osc0', updatedAt: 3 });
147+
expect(state.title).toEqual({ title: 'dormouse', source: 'osc0', updatedAt: 3 });
148+
expect(state.titleCandidates.osc0).toEqual({ title: 'dormouse', source: 'osc0', updatedAt: 3 });
149149
expect(state.titleCandidates.osc2).toEqual({ title: 'vim', source: 'osc2', updatedAt: 2 });
150150
expect(titleCandidatesForDisplay(state).map((candidate) => [candidate.source, candidate.title])).toEqual([
151-
['osc0', 'mouseterm'],
151+
['osc0', 'dormouse'],
152152
['osc2', 'vim'],
153153
]);
154154
});
@@ -256,11 +256,11 @@ describe('header and grouping derivation', () => {
256256
it('lets fresh app-sent terminal titles override running command labels', () => {
257257
const pane = reduceTerminalState(
258258
runningPane('/repo/app', 'lazygit'),
259-
{ type: 'title', title: { title: 'lazygit: mouseterm', source: 'osc0', updatedAt: 2 } },
259+
{ type: 'title', title: { title: 'lazygit: dormouse', source: 'osc0', updatedAt: 2 } },
260260
);
261261

262262
expect(deriveHeader(pane, [pane])).toEqual({
263-
primary: 'lazygit: mouseterm',
263+
primary: 'lazygit: dormouse',
264264
});
265265
});
266266

@@ -358,23 +358,23 @@ describe('header and grouping derivation', () => {
358358

359359
it('uses the in-run app-sent title as `<idle> ${LAST_TITLE}`', () => {
360360
let pane = runningPane('/repo/app', 'lazygit');
361-
pane = reduceTerminalState(pane, { type: 'title', title: { title: 'lazygit: mouseterm', source: 'osc0', updatedAt: 2 } });
361+
pane = reduceTerminalState(pane, { type: 'title', title: { title: 'lazygit: dormouse', source: 'osc0', updatedAt: 2 } });
362362
pane = reduceTerminalState(pane, { type: 'commandFinish', exitCode: 0 }, { now: () => 3 });
363363

364364
expect(deriveHeader(pane, [pane])).toEqual({
365-
primary: `${DEFAULT_IDLE_TITLE} lazygit: mouseterm`,
365+
primary: `${DEFAULT_IDLE_TITLE} lazygit: dormouse`,
366366
});
367367
});
368368

369369
it('ignores titles emitted after the last command finished when deriving LAST_TITLE', () => {
370370
let pane = runningPane('/repo/app', 'lazygit');
371-
pane = reduceTerminalState(pane, { type: 'title', title: { title: 'lazygit: mouseterm', source: 'osc0', updatedAt: 2 } });
371+
pane = reduceTerminalState(pane, { type: 'title', title: { title: 'lazygit: dormouse', source: 'osc0', updatedAt: 2 } });
372372
pane = reduceTerminalState(pane, { type: 'commandFinish', exitCode: 0 }, { now: () => 3 });
373373
// Shell sets the title back to its default after the command exits.
374374
pane = reduceTerminalState(pane, { type: 'title', title: { title: 'zsh', source: 'osc0', updatedAt: 4 } });
375375

376376
expect(deriveHeader(pane, [pane])).toEqual({
377-
primary: `${DEFAULT_IDLE_TITLE} lazygit: mouseterm`,
377+
primary: `${DEFAULT_IDLE_TITLE} lazygit: dormouse`,
378378
});
379379
});
380380

lib/src/lib/terminal-theme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export function paintTerminalHost(element: HTMLDivElement, terminal: Terminal, b
4545
const hosts = element.querySelectorAll<HTMLElement>(XTERM_HOST_SELECTOR);
4646
if (hosts.length === 0 && xtermElement && !xtermSelectorWarned) {
4747
xtermSelectorWarned = true;
48-
console.warn(`[mouseterm] paintTerminalHost: no elements matched ${XTERM_HOST_SELECTOR} - xterm DOM may have changed.`);
48+
console.warn(`[dormouse] paintTerminalHost: no elements matched ${XTERM_HOST_SELECTOR} - xterm DOM may have changed.`);
4949
return;
5050
}
5151
hosts.forEach((el) => {

lib/src/lib/themes/diagnostics.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
type VscodeThemeVarTrace,
1212
} from './vscode-color-resolver';
1313

14-
export type VisibleVarOrigin = 'host-provided' | 'mouseterm-materialized' | 'missing';
14+
export type VisibleVarOrigin = 'host-provided' | 'dormouse-materialized' | 'missing';
1515

1616
export interface ThemeMetadataSnapshot {
1717
id: string;
@@ -152,9 +152,9 @@ function captureVisibleVars(
152152
let origin: VisibleVarOrigin = value ? 'host-provided' : 'missing';
153153

154154
if (value && materialized.get(name) === value) {
155-
origin = 'mouseterm-materialized';
155+
origin = 'dormouse-materialized';
156156
} else if (value && applied && !applied.theme.vars[name] && applied.resolvedVars[name] === value) {
157-
origin = 'mouseterm-materialized';
157+
origin = 'dormouse-materialized';
158158
}
159159

160160
return {

0 commit comments

Comments
 (0)