diff --git a/README.md b/README.md index a534c61..eac7cec 100644 --- a/README.md +++ b/README.md @@ -219,7 +219,7 @@ Full install. Works with Claude Code, Codex, pi, Copilot CLI, Droid, Oh My Pi, H | Key | Opens | |---|---| -| `Ctrl+B O` | this folder, with a file tree | +| `Ctrl+B D` | this folder, with a file tree | | `Ctrl+B Shift+O` | the agent's recent replies | | `Ctrl+B Ctrl+O` | the agent's newest reply, with no picker | | Ctrl-click a `file://…md` link | that file, only with the opt-in Links add-on below | @@ -247,6 +247,15 @@ command = "annotate.review" description = "review this repo's changes" ``` +In the review, `d` goes to the definition of a word on the cursor's line, and `ctrl+o` goes +back. `o` shows the whole file as it is now and `O` as it was before the change; `Esc` returns +to the diff. `x` marks a file viewed, and the file list ticks it. `z` hides or shows the notes, +here and in document reviews. + +To review a GitHub pull request, run `plannotator-tui herdr review 123` (or the pull request's +link) from a pane in the repository. It needs plannotator-tui on your `PATH` and a `gh` login, +and it posts nothing to GitHub. + `annotate.gate` opens the same folder review as `annotate.open`, with an **Approve** button (`A`). The agent gets `The user approved.` (with any notes as non-blocking guidance), or your numbered feedback as usual. Use it when an agent should wait for your sign-off. It has no @@ -286,7 +295,8 @@ plannotator-tui. If neither is installed, Ctrl-click shows a notification saying > the old behavior. **Send** (or `E`) makes the review the agent's next message. `q` closes. On an agent reply, `S` -sends and closes in one key; `E` and `q` are unchanged. +sends and closes in one key; `E` and `q` are unchanged. `/` searches the open document, then +`n` and `N` go to the next and previous match. | Option | Where | |---|---| @@ -294,6 +304,14 @@ sends and closes in one key; `E` and `q` are unchanged. | Open as full tab, split, or popup | `[herdr] placement = "overlay" \| "split" \| "popup"` in `~/.config/plannotator-tui/config.toml` | | Use without Herdr | [plannotator-tui](https://github.com/plannotator/plannotator-tui) | +Scripts and agents can leave a note without opening a pane: +`plannotator-tui --annotate-block ` now takes the same optional type +as `--annotate`, which is `comment`, `looks_good` or `delete`. + +> **Upgrading with Pi:** after the plugin moves to 0.11.0, run `plannotator-tui pi install` +> again, then `/reload` in each Pi session (or restart them). The new binary does not notice +> an older Pi extension. + ### Remote sessions Over SSH or `herdr --remote`, the plugin runs on the **server**. It gets the text only when diff --git a/herdr-plugin.toml b/herdr-plugin.toml index 6b0fa9a..5459f48 100644 --- a/herdr-plugin.toml +++ b/herdr-plugin.toml @@ -1,6 +1,6 @@ id = "annotate" name = "Annotate" -version = "0.10.0" +version = "0.11.0" min_herdr_version = "0.8.0" description = "Comment on terminal selections and copy annotations as agent context." platforms = ["linux", "macos", "windows"] diff --git a/links/herdr-plugin.toml b/links/herdr-plugin.toml index ecf6630..0a42b3d 100644 --- a/links/herdr-plugin.toml +++ b/links/herdr-plugin.toml @@ -15,7 +15,7 @@ id = "annotate-links" name = "Annotate Links" -version = "0.10.0" +version = "0.11.0" min_herdr_version = "0.8.0" description = "Open Ctrl-clicked file:// Markdown links in Annotate (needs the Annotate Full plugin)." platforms = ["linux", "macos", "windows"] diff --git a/lite/herdr-plugin.toml b/lite/herdr-plugin.toml index 880f861..c465cda 100644 --- a/lite/herdr-plugin.toml +++ b/lite/herdr-plugin.toml @@ -8,7 +8,7 @@ id = "annotate" name = "Annotate" -version = "0.10.0" +version = "0.11.0" min_herdr_version = "0.8.0" description = "Comment on terminal selections and copy annotations as agent context." platforms = ["linux", "macos", "windows"] diff --git a/plannotator-tui.version b/plannotator-tui.version index 78bc1ab..d9df1bb 100644 --- a/plannotator-tui.version +++ b/plannotator-tui.version @@ -1 +1 @@ -0.10.0 +0.11.0 diff --git a/scripts/test-fetch-plannotator-tui.ps1 b/scripts/test-fetch-plannotator-tui.ps1 index 7c1af31..2a9985b 100644 --- a/scripts/test-fetch-plannotator-tui.ps1 +++ b/scripts/test-fetch-plannotator-tui.ps1 @@ -74,7 +74,7 @@ try { $result = Invoke-Fetcher Assert-True ($result.ExitCode -eq 0) "local override failed: $($result.Output)" Assert-BytesEqual $source $destination "local override bytes differ" - Assert-True ((Get-Content -LiteralPath $stamp -Raw) -ceq "0.10.0") "local stamp differs" + Assert-True ((Get-Content -LiteralPath $stamp -Raw) -ceq "0.11.0") "local stamp differs" $env:PLANNOTATOR_TUI_BIN = $null $env:PLANNOTATOR_TUI_RELEASE_BASE = "http://127.0.0.1:1/must-not-be-requested" @@ -120,7 +120,7 @@ try { Assert-True ($result.ExitCode -eq 0) "download fixture failed: $($result.Output)" Assert-True ($result.Output -match "x86_64-pc-windows-msvc") "x64 target was not selected" Assert-BytesEqual $source $destination "downloaded destination bytes differ" - Assert-True ((Get-Content -LiteralPath $stamp -Raw) -ceq "0.10.0") "download stamp differs" + Assert-True ((Get-Content -LiteralPath $stamp -Raw) -ceq "0.11.0") "download stamp differs" Set-Content -LiteralPath $stamp -NoNewline -Value "preserve-this-stamp" $beforeHash = (Get-FileHash -Algorithm SHA256 -LiteralPath $destination).Hash diff --git a/scripts/test-fetch-plannotator-tui.sh b/scripts/test-fetch-plannotator-tui.sh index a4c2a60..33a0d2e 100644 --- a/scripts/test-fetch-plannotator-tui.sh +++ b/scripts/test-fetch-plannotator-tui.sh @@ -14,7 +14,7 @@ cp "$repository_root/plannotator-tui.version" "$plugin_root/" source_binary="$source_root/plannotator-tui local" cat > "$source_binary" <<'EOF' #!/usr/bin/env sh -printf 'plannotator-tui 0.10.0\n' +printf 'plannotator-tui 0.11.0\n' EOF chmod +x "$source_binary" printf 'old destination' > "$plugin_root/bin/plannotator-tui.exe" @@ -23,10 +23,10 @@ printf 'old-version' > "$plugin_root/bin/plannotator-tui.version" PLANNOTATOR_TUI_BIN="$source_binary" bash "$plugin_root/scripts/fetch-plannotator-tui.sh" cmp "$source_binary" "$plugin_root/bin/plannotator-tui.exe" -test "$(cat "$plugin_root/bin/plannotator-tui.version")" = 0.10.0 +test "$(cat "$plugin_root/bin/plannotator-tui.version")" = 0.11.0 test ! -e "$plugin_root/bin/plannotator-tui" -test "$("$plugin_root/bin/plannotator-tui.exe" --version)" = "plannotator-tui 0.10.0" -test "$(bash "$plugin_root/scripts/plannotator-tui.sh" --version)" = "plannotator-tui 0.10.0" +test "$("$plugin_root/bin/plannotator-tui.exe" --version)" = "plannotator-tui 0.11.0" +test "$(bash "$plugin_root/scripts/plannotator-tui.sh" --version)" = "plannotator-tui 0.11.0" output="$(bash "$plugin_root/scripts/fetch-plannotator-tui.sh")" case "$output" in diff --git a/scripts/test-windows-full-manifest.py b/scripts/test-windows-full-manifest.py index 6eef1f0..707cffb 100644 --- a/scripts/test-windows-full-manifest.py +++ b/scripts/test-windows-full-manifest.py @@ -183,8 +183,8 @@ def check_distributed(path: Path, version_path: Path, native_version_path: Path) manifest = load(path) check_top_level_windows(path, manifest) check_native_lite(path, manifest) - if version_path.read_text(encoding="utf-8").strip() != "0.10.0": - fail(version_path, "plannotator-tui.version is not 0.10.0") + if version_path.read_text(encoding="utf-8").strip() != "0.11.0": + fail(version_path, "plannotator-tui.version is not 0.11.0") if native_version_path.read_text(encoding="utf-8").strip() != "0.2.4": fail(native_version_path, "herdr-annotate.version is not 0.2.4") diff --git a/windows-full/herdr-plugin.toml b/windows-full/herdr-plugin.toml index 49267bb..fd7bdf4 100644 --- a/windows-full/herdr-plugin.toml +++ b/windows-full/herdr-plugin.toml @@ -21,7 +21,7 @@ id = "annotate" name = "Annotate" -version = "0.10.0" +version = "0.11.0" min_herdr_version = "0.9.0" description = "Comment on terminal selections and copy annotations as agent context." platforms = ["windows"]