Skip to content

Commit 3b57059

Browse files
committed
docs: describe Plan Compaction
- also fix CI bug wrt fmt check
1 parent 1fd4908 commit 3b57059

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ fmt: ## Format code with Prettier
8686

8787
fmt-check: ## Check code formatting
8888
@echo "Checking TypeScript/JSON/Markdown formatting..."
89-
@bun x prettier --check $(PRETTIER_PATTERNS) 2>&1 | grep -v 'No files matching'
89+
@bun x prettier --check $(PRETTIER_PATTERNS)
9090

9191
fmt-shell: ## Format shell scripts with shfmt
9292
@./scripts/fmt.sh --shell

docs/context-management.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ Commands for managing conversation history length and token usage.
44

55
## Comparison
66

7-
| Approach | `/clear` | `/truncate` | `/compact` | Plan Compaction |
8-
| ------------------------ | -------- | ----------- | ---------------- | ---------------- |
9-
| **Speed** | Instant | Instant | Slower (uses AI) | Instant |
10-
| **Context Preservation** | None | Temporal | Intelligent | Intelligent |
11-
| **Cost** | Free | Free | Uses API tokens | Free |
12-
| **Reversible** | No | No | No | Yes |
13-
7+
| Approach | `/clear` | `/truncate` | `/compact` | Plan Compaction |
8+
| ------------------------ | -------- | ----------- | ---------------- | --------------- |
9+
| **Speed** | Instant | Instant | Slower (uses AI) | Instant |
10+
| **Context Preservation** | None | Temporal | Intelligent | Intelligent |
11+
| **Cost** | Free | Free | Uses API tokens | Free |
12+
| **Reversible** | No | No | No | Yes |
1413

1514
## Plan Compaction
1615

docs/vim-mode.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Vim mode is always enabled. Press **ESC** to enter normal mode from insert mode.
4848
### Line Movement
4949

5050
- **0** - Move to beginning of line
51-
- **_** - Move to first non-whitespace character of line
51+
- **\_** - Move to first non-whitespace character of line
5252
- **$** - Move to end of line
5353
- **Home** - Same as **0**
5454
- **End** - Same as **$**
@@ -102,7 +102,7 @@ Vim's power comes from combining operators with motions. All operators work with
102102
- **e** - To end of word
103103
- **$** - To end of line
104104
- **0** - To beginning of line
105-
- **_** - To first non-whitespace character
105+
- **\_** - To first non-whitespace character
106106

107107
### Examples
108108

src/utils/vim.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,4 +515,3 @@ describe("Vim Command Integration Tests", () => {
515515
});
516516
});
517517
});
518-

src/utils/vim.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ export function moveToFirstNonWhitespace(text: string, cursor: number): number {
103103
return i >= lineEnd ? lineStart : i;
104104
}
105105

106-
107106
/**
108107
* Move cursor vertically by delta lines, maintaining desiredColumn if provided.
109108
*/
@@ -743,7 +742,10 @@ function tryHandleNavigation(state: VimState, key: string): VimKeyResult | null
743742
}
744743

745744
case "_":
746-
return handleKey(state, { cursor: moveToFirstNonWhitespace(text, cursor), desiredColumn: null });
745+
return handleKey(state, {
746+
cursor: moveToFirstNonWhitespace(text, cursor),
747+
desiredColumn: null,
748+
});
747749

748750
case "$":
749751
case "End": {

0 commit comments

Comments
 (0)