Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
Format help text command references with backticks
Maximilian Roos92abd99656c3
diff --git a/README.md b/README.mdindex 07f33b843..9fe57ff9c 100644--- a/README.md+++ b/README.md@@ -113,7 +113,7 @@ cargo install worktrunk && wt config shell install## Next steps-- Learn the core commands: [wt switch](https://worktrunk.dev/switch/), [wt list](https://worktrunk.dev/list/), [wt merge](https://worktrunk.dev/merge/), [wt remove](https://worktrunk.dev/remove/)+- Learn the core commands: [`wt switch`](https://worktrunk.dev/switch/), [`wt list`](https://worktrunk.dev/list/), [`wt merge`](https://worktrunk.dev/merge/), [`wt remove`](https://worktrunk.dev/remove/)- Set up [project hooks](https://worktrunk.dev/hook/) for automated setup- Explore [LLM commit messages](https://worktrunk.dev/llm-commits/), [fzf-likeselector](https://worktrunk.dev/select/), [Claude Code integration](https://worktrunk.dev/claude-code/), [CIdiff --git a/docs/content/config.md b/docs/content/config.mdindex 0ed42d2f4..ef7458b95 100644--- a/docs/content/config.md+++ b/docs/content/config.md@@ -146,7 +146,7 @@ notify = "notify-send 'Merging {{ branch }}'"User hooks run before project hooks and don't require approval. Skip with `--no-verify`.-See [wt hook](@/hook.md#user-hooks) for complete documentation.+See [`wt hook`](@/hook.md#user-hooks) for complete documentation.## Project config@@ -163,7 +163,7 @@ test = "npm test"lint = "npm run lint"```-See [wt hook](@/hook.md) for complete documentation on hook types, execution order, template variables, and [JSON context](@/hook.md#json-context).+See [`wt hook`](@/hook.md) for complete documentation on hook types, execution order, template variables, and [JSON context](@/hook.md#json-context).### Dev server URL@@ -787,7 +787,7 @@ Usage: <b><span class=c>wt config state default-branch</span></b> <span class=c>## wt config state ci-status-Caches GitHub/GitLab CI status for display in [wt list](@/list.md#ci-status).+Caches GitHub/GitLab CI status for display in [`wt list`](@/list.md#ci-status).### How it works@@ -807,7 +807,7 @@ Caches GitHub/GitLab CI status for display in [wt list](@/list.md#ci-status).| `no-ci` | No checks configured || `error` | Fetch error (rate limit, network, auth) |-See [wt list CI status](@/list.md#ci-status) for display symbols and colors.+See [`wt list` CI status](@/list.md#ci-status) for display symbols and colors.### When to usediff --git a/docs/content/hook.md b/docs/content/hook.mdindex 74a553e2b..d27cdbf7a 100644--- a/docs/content/hook.md+++ b/docs/content/hook.md@@ -118,7 +118,7 @@ cleanup = "rm -rf /tmp/cache/{{ branch }}"- **pre-remove** — Before removing worktree during cleanup- **post-merge** — After cleanup completes-See [wt merge](@/merge.md#pipeline) for the complete pipeline.+See [`wt merge`](@/merge.md#pipeline) for the complete pipeline.## Configuration@@ -470,9 +470,9 @@ fi## See also-- [wt merge](@/merge.md) — Runs hooks automatically during merge-- [wt switch](@/switch.md) — Runs post-create/post-start hooks on `--create`-- [wt config](@/config.md) — Manage hook approvals+- [`wt merge`](@/merge.md) — Runs hooks automatically during merge+- [`wt switch`](@/switch.md) — Runs post-create/post-start hooks on `--create`+- [`wt config`](@/config.md) — Manage hook approvals## Command referencediff --git a/docs/content/list.md b/docs/content/list.mdindex 2c04d3097..bf959f43a 100644--- a/docs/content/list.md+++ b/docs/content/list.md@@ -261,7 +261,7 @@ Missing a field that would be generally useful? [Open an issue](https://github.c## See also-- [wt select](@/select.md) — Interactive worktree picker with live preview+- [`wt select`](@/select.md) — Interactive worktree picker with live preview## Command referencediff --git a/docs/content/llm-commits.md b/docs/content/llm-commits.mdindex e067c0f21..3960f52e3 100644--- a/docs/content/llm-commits.md+++ b/docs/content/llm-commits.md@@ -100,7 +100,7 @@ Squashes branch commits into one with LLM-generated message:$ wt step squash```-See [wt merge](@/merge.md) and [wt step](@/step.md) for full documentation.+See [`wt merge`](@/merge.md) and [`wt step`](@/step.md) for full documentation.## Prompt templatesdiff --git a/docs/content/merge.md b/docs/content/merge.mdindex 753a68635..7110d46ac 100644--- a/docs/content/merge.md+++ b/docs/content/merge.md@@ -55,7 +55,7 @@ wt merge --no-commit1. **Squash** — Stages uncommitted changes, then combines all commits since target into one (like GitHub's "Squash and merge"). Use `--stage` to control what gets staged: `all` (default), `tracked`, or `none`. A backup ref is saved to `refs/wt-backup/<branch>`. With `--no-squash`, uncommitted changes become a separate commit and individual commits are preserved.2. **Rebase** — Rebases onto target if behind. Skipped if already up-to-date. Conflicts abort immediately.-3. **Pre-merge hooks** — Hooks run after rebase, before merge. Failures abort. See [wt hook](@/hook.md).+3. **Pre-merge hooks** — Hooks run after rebase, before merge. Failures abort. See [`wt hook`](@/hook.md).4. **Merge** — Fast-forward merge to the target branch. Non-fast-forward merges are rejected.5. **Pre-remove hooks** — Hooks run before removing worktree. Failures abort.6. **Cleanup** — Removes the worktree and branch. Use `--no-remove` to keep the worktree. When already on the target branch or in the main worktree, the worktree is preserved.@@ -79,9 +79,9 @@ lint = "cargo clippy"## See also-- [wt step](@/step.md) — Run individual operations (commit, squash, rebase, push)-- [wt remove](@/remove.md) — Remove worktrees without merging-- [wt switch](@/switch.md) — Navigate to other worktrees+- [`wt step`](@/step.md) — Run individual operations (commit, squash, rebase, push)+- [`wt remove`](@/remove.md) — Remove worktrees without merging+- [`wt switch`](@/switch.md) — Navigate to other worktrees## Command referencediff --git a/docs/content/remove.md b/docs/content/remove.mdindex 7d854db62..60f86a1be 100644--- a/docs/content/remove.md+++ b/docs/content/remove.md@@ -61,12 +61,12 @@ Removal runs in the background by default (returns immediately). Logs are writte## Shortcuts-`@` (current), `-` (previous), `^` (default branch). See [wt switch](@/switch.md#shortcuts).+`@` (current), `-` (previous), `^` (default branch). See [`wt switch`](@/switch.md#shortcuts).## See also-- [wt merge](@/merge.md) — Remove worktree after merging-- [wt list](@/list.md) — View all worktrees+- [`wt merge`](@/merge.md) — Remove worktree after merging+- [`wt list`](@/list.md) — View all worktrees## Command referencediff --git a/docs/content/select.md b/docs/content/select.mdindex 437ab90f4..5ba5ed383 100644--- a/docs/content/select.md+++ b/docs/content/select.md@@ -49,8 +49,8 @@ Branches without worktrees are included — selecting one creates a worktree. (`## See also-- [wt list](@/list.md) — Static table view with all worktree metadata-- [wt switch](@/switch.md) — Direct switching to a known target branch+- [`wt list`](@/list.md) — Static table view with all worktree metadata+- [`wt switch`](@/switch.md) — Direct switching to a known target branch## Command referencediff --git a/docs/content/step.md b/docs/content/step.mdindex bd67eeeab..6f1850244 100644--- a/docs/content/step.md+++ b/docs/content/step.md@@ -38,8 +38,8 @@ wt step push## See also-- [wt merge](@/merge.md) — Runs commit → squash → rebase → hooks → push → cleanup automatically-- [wt hook](@/hook.md) — Run configured hooks+- [`wt merge`](@/merge.md) — Runs commit → squash → rebase → hooks → push → cleanup automatically+- [`wt hook`](@/hook.md) — Run configured hooks## Command referencediff --git a/docs/content/switch.md b/docs/content/switch.mdindex 9811a073a..527cf9c27 100644--- a/docs/content/switch.md+++ b/docs/content/switch.md@@ -74,10 +74,10 @@ To change which branch a worktree is on, use `git switch` inside that worktree.## See also-- [wt select](@/select.md) — Interactive worktree selection-- [wt list](@/list.md) — View all worktrees-- [wt remove](@/remove.md) — Delete worktrees when done-- [wt merge](@/merge.md) — Integrate changes back to the default branch+- [`wt select`](@/select.md) — Interactive worktree selection+- [`wt list`](@/list.md) — View all worktrees+- [`wt remove`](@/remove.md) — Delete worktrees when done+- [`wt merge`](@/merge.md) — Integrate changes back to the default branch## Command referencediff --git a/docs/content/tips-patterns.md b/docs/content/tips-patterns.mdindex 02fe2a18b..daf6a4d46 100644--- a/docs/content/tips-patterns.md+++ b/docs/content/tips-patterns.md@@ -153,7 +153,7 @@ Shows PR/CI status for all branches, including those without worktrees. CI indicwt list --format=json```-Structured output for dashboards, statuslines, and scripts. See [wt list](@/list.md) for query examples.+Structured output for dashboards, statuslines, and scripts. See [`wt list`](@/list.md) for query examples.## Reuse `default-branch`@@ -177,7 +177,7 @@ Reference Taskfile/Justfile/Makefile in hooks:## Shortcuts-Special arguments work across all commands—see [wt switch](@/switch.md#shortcuts) for the full list.+Special arguments work across all commands—see [`wt switch`](@/switch.md#shortcuts) for the full list.```bashwt switch --create hotfix --base=@ # Branch from current HEADdiff --git a/docs/content/worktrunk.md b/docs/content/worktrunk.mdindex 9302e2fce..36c019af7 100644--- a/docs/content/worktrunk.md+++ b/docs/content/worktrunk.md@@ -112,7 +112,7 @@ cargo install worktrunk && wt config shell install## Next steps-- Learn the core commands: [wt switch](@/switch.md), [wt list](@/list.md), [wt merge](@/merge.md), [wt remove](@/remove.md)+- Learn the core commands: [`wt switch`](@/switch.md), [`wt list`](@/list.md), [`wt merge`](@/merge.md), [`wt remove`](@/remove.md)- Set up [project hooks](@/hook.md) for automated setup- Explore [LLM commit messages](@/llm-commits.md), [fzf-likeselector](@/select.md), [Claude Code integration](@/claude-code.md), [CIdiff --git a/src/cli.rs b/src/cli.rsindex 57bb39076..52022f92f 100644--- a/src/cli.rs+++ b/src/cli.rs@@ -509,7 +509,7 @@ Without a subcommand, runs `get`."#/// CI status cache#[command(name = "ci-status",- after_long_help = r#"Caches GitHub/GitLab CI status for display in [wt list](@/list.md#ci-status).+ after_long_help = r#"Caches GitHub/GitLab CI status for display in [`wt list`](@/list.md#ci-status).## How it works@@ -529,7 +529,7 @@ Without a subcommand, runs `get`."#| `no-ci` | No checks configured || `error` | Fetch error (rate limit, network, auth) |-See [wt list CI status](@/list.md#ci-status) for display symbols and colors.+See [`wt list` CI status](@/list.md#ci-status) for display symbols and colors.## When to use@@ -1312,10 +1312,10 @@ To change which branch a worktree is on, use `git switch` inside that worktree.## See also-- [wt select](@/select.md) — Interactive worktree selection-- [wt list](@/list.md) — View all worktrees-- [wt remove](@/remove.md) — Delete worktrees when done-- [wt merge](@/merge.md) — Integrate changes back to the default branch+- [`wt select`](@/select.md) — Interactive worktree selection+- [`wt list`](@/list.md) — View all worktrees+- [`wt remove`](@/remove.md) — Delete worktrees when done+- [`wt merge`](@/merge.md) — Integrate changes back to the default branch"#)]Switch {@@ -1595,7 +1595,7 @@ Missing a field that would be generally useful? Open an issue at https://github.## See also-- [wt select](@/select.md) — Interactive worktree picker with live preview+- [`wt select`](@/select.md) — Interactive worktree picker with live preview"#)]// TODO: `args_conflicts_with_subcommands` causes confusing errors for unknown@@ -1690,12 +1690,12 @@ Removal runs in the background by default (returns immediately). Logs are writte## Shortcuts-`@` (current), `-` (previous), `^` (default branch). See [wt switch](@/switch.md#shortcuts).+`@` (current), `-` (previous), `^` (default branch). See [`wt switch`](@/switch.md#shortcuts).## See also-- [wt merge](@/merge.md) — Remove worktree after merging-- [wt list](@/list.md) — View all worktrees+- [`wt merge`](@/merge.md) — Remove worktree after merging+- [`wt list`](@/list.md) — View all worktrees"#)]Remove {@@ -1776,7 +1776,7 @@ wt merge --no-commit1. **Squash** — Stages uncommitted changes, then combines all commits since target into one (like GitHub's "Squash and merge"). Use `--stage` to control what gets staged: `all` (default), `tracked`, or `none`. A backup ref is saved to `refs/wt-backup/<branch>`. With `--no-squash`, uncommitted changes become a separate commit and individual commits are preserved.2. **Rebase** — Rebases onto target if behind. Skipped if already up-to-date. Conflicts abort immediately.-3. **Pre-merge hooks** — Hooks run after rebase, before merge. Failures abort. See [wt hook](@/hook.md).+3. **Pre-merge hooks** — Hooks run after rebase, before merge. Failures abort. See [`wt hook`](@/hook.md).4. **Merge** — Fast-forward merge to the target branch. Non-fast-forward merges are rejected.5. **Pre-remove hooks** — Hooks run before removing worktree. Failures abort.6. **Cleanup** — Removes the worktree and branch. Use `--no-remove` to keep the worktree. When already on the target branch or in the main worktree, the worktree is preserved.@@ -1800,9 +1800,9 @@ lint = "cargo clippy"## See also-- [wt step](@/step.md) — Run individual operations (commit, squash, rebase, push)-- [wt remove](@/remove.md) — Remove worktrees without merging-- [wt switch](@/switch.md) — Navigate to other worktrees+- [`wt step`](@/step.md) — Run individual operations (commit, squash, rebase, push)+- [`wt remove`](@/remove.md) — Remove worktrees without merging+- [`wt switch`](@/switch.md) — Navigate to other worktrees"#)]Merge {@@ -1900,8 +1900,8 @@ Branches without worktrees are included — selecting one creates a worktree. (`## See also-- [wt list](@/list.md) — Static table view with all worktree metadata-- [wt switch](@/switch.md) — Direct switching to a known target branch+- [`wt list`](@/list.md) — Static table view with all worktree metadata+- [`wt switch`](@/switch.md) — Direct switching to a known target branch"#)]Select,@@ -1939,8 +1939,8 @@ wt step push## See also-- [wt merge](@/merge.md) — Runs commit → squash → rebase → hooks → push → cleanup automatically-- [wt hook](@/hook.md) — Run configured hooks+- [`wt merge`](@/merge.md) — Runs commit → squash → rebase → hooks → push → cleanup automatically+- [`wt hook`](@/hook.md) — Run configured hooks<!-- subdoc: for-each -->"#@@ -2063,7 +2063,7 @@ cleanup = "rm -rf /tmp/cache/{{ branch }}"- **pre-remove** — Before removing worktree during cleanup- **post-merge** — After cleanup completes-See [wt merge](@/merge.md#pipeline) for the complete pipeline.+See [`wt merge`](@/merge.md#pipeline) for the complete pipeline.## Configuration@@ -2415,9 +2415,9 @@ fi## See also-- [wt merge](@/merge.md) — Runs hooks automatically during merge-- [wt switch](@/switch.md) — Runs post-create/post-start hooks on `--create`-- [wt config](@/config.md) — Manage hook approvals+- [`wt merge`](@/merge.md) — Runs hooks automatically during merge+- [`wt switch`](@/switch.md) — Runs post-create/post-start hooks on `--create`+- [`wt config`](@/config.md) — Manage hook approvals<!-- subdoc: approvals -->"#@@ -2568,7 +2568,7 @@ notify = "notify-send 'Merging {{ branch }}'"User hooks run before project hooks and don't require approval. Skip with `--no-verify`.-See [wt hook](@/hook.md#user-hooks) for complete documentation.+See [`wt hook`](@/hook.md#user-hooks) for complete documentation.## Project config@@ -2585,7 +2585,7 @@ test = "npm test"lint = "npm run lint"```-See [wt hook](@/hook.md) for complete documentation on hook types, execution order, template variables, and [JSON context](@/hook.md#json-context).+See [`wt hook`](@/hook.md) for complete documentation on hook types, execution order, template variables, and [JSON context](@/hook.md#json-context).### Dev server URLdiff --git a/src/md_help.rs b/src/md_help.rsindex ce8ce536d..290de06cf 100644--- a/src/md_help.rs+++ b/src/md_help.rs@@ -394,6 +394,16 @@ mod tests {);}+ #[test]+ fn test_render_inline_formatting_backticks_in_link() {+ // Backticks inside link text should be preserved and rendered as code+ let result = render_inline_formatting("See [`wt hook`](@/hook.md) for details");+ // Should contain dimmed "wt hook" (code style)+ assert!(result.contains("\u{1b}[2mwt hook\u{1b}[0m"));+ assert!(result.contains("See "));+ assert!(result.contains(" for details"));+ }+#[test]fn test_render_inline_formatting_nested_brackets() {assert_eq!(diff --git a/tests/snapshots/integration__integration_tests__help__help_config_long.snap b/tests/snapshots/integration__integration_tests__help__help_config_long.snapindex f57acb25f..67af42c14 100644--- a/tests/snapshots/integration__integration_tests__help__help_config_long.snap+++ b/tests/snapshots/integration__integration_tests__help__help_config_long.snap@@ -161,7 +161,7 @@ Personal hooks that run for all repositories. Use the same syntax as project hooUser hooks run before project hooks and don't require approval. Skip with [2m--no-verify[0m.-See wt hook for complete documentation.+See [2mwt hook[0m for complete documentation.[32mProject config@@ -176,7 +176,7 @@ Create [2m.config/wt.toml[0m in the repository root:[2mtest = "npm test"[2mlint = "npm run lint"-See wt hook for complete documentation on hook types, execution order, template variables, and JSON context.+See [2mwt hook[0m for complete documentation on hook types, execution order, template variables, and JSON context.[1mDev server URLdiff --git a/tests/snapshots/integration__integration_tests__help__help_config_state_ci_status.snap b/tests/snapshots/integration__integration_tests__help__help_config_state_ci_status.snapindex fb8e53aa6..23d757d26 100644--- a/tests/snapshots/integration__integration_tests__help__help_config_state_ci_status.snap+++ b/tests/snapshots/integration__integration_tests__help__help_config_state_ci_status.snap@@ -13,6 +13,7 @@ info:GIT_EDITOR: ""RUST_LOG: warnSOURCE_DATE_EPOCH: "1735776000"+ TERM: alacrittyWORKTRUNK_CONFIG_PATH: /nonexistent/test/config.tomlWORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"---@@ -43,7 +44,7 @@ Usage: [1m[36mwt config state ci-status[0m [36m[OPTIONS][0m [36m[COMMAND][1m[36m-v[0m, [1m[36m--verboseShow commands and debug info-Caches GitHub/GitLab CI status for display in wt list.+Caches GitHub/GitLab CI status for display in [2mwt list[0m.[32mHow it works@@ -63,7 +64,7 @@ Caches GitHub/GitLab CI status for display in wt list.no-ci No checks configurederror Fetch error (rate limit, network, auth)-See wt list CI status for display symbols and colors.+See [2mwt list[0m CI status for display symbols and colors.[32mWhen to usediff --git a/tests/snapshots/integration__integration_tests__help__help_list_long.snap b/tests/snapshots/integration__integration_tests__help__help_list_long.snapindex 9e4de8d05..a8d4d6b10 100644--- a/tests/snapshots/integration__integration_tests__help__help_list_long.snap+++ b/tests/snapshots/integration__integration_tests__help__help_list_long.snap@@ -268,4 +268,4 @@ Missing a field that would be generally useful? Open an issue at https://github.[32mSee also-- wt select — Interactive worktree picker with live preview+- [2mwt select[0m — Interactive worktree picker with live previewdiff --git a/tests/snapshots/integration__integration_tests__help__help_list_narrow_80.snap b/tests/snapshots/integration__integration_tests__help__help_list_narrow_80.snapindex e9d558772..b87993a36 100644--- a/tests/snapshots/integration__integration_tests__help__help_list_narrow_80.snap+++ b/tests/snapshots/integration__integration_tests__help__help_list_narrow_80.snap@@ -291,4 +291,4 @@ https://github.com/max-sixty/worktrunk.[32mSee also-- wt select — Interactive worktree picker with live preview+- [2mwt select[0m — Interactive worktree picker with live previewdiff --git a/tests/snapshots/integration__integration_tests__help__help_md_merge.snap b/tests/snapshots/integration__integration_tests__help__help_md_merge.snapindex 56901e0cf..50061b77c 100644--- a/tests/snapshots/integration__integration_tests__help__help_md_merge.snap+++ b/tests/snapshots/integration__integration_tests__help__help_md_merge.snap@@ -111,7 +111,7 @@ wt merge --no-commit1. **Squash** — Stages uncommitted changes, then combines all commits since target into one (like GitHub's "Squash and merge"). Use `--stage` to control what gets staged: `all` (default), `tracked`, or `none`. A backup ref is saved to `refs/wt-backup/<branch>`. With `--no-squash`, uncommitted changes become a separate commit and individual commits are preserved.2. **Rebase** — Rebases onto target if behind. Skipped if already up-to-date. Conflicts abort immediately.-3. **Pre-merge hooks** — Hooks run after rebase, before merge. Failures abort. See [wt hook](@/hook.md).+3. **Pre-merge hooks** — Hooks run after rebase, before merge. Failures abort. See [`wt hook`](@/hook.md).4. **Merge** — Fast-forward merge to the target branch. Non-fast-forward merges are rejected.5. **Pre-remove hooks** — Hooks run before removing worktree. Failures abort.6. **Cleanup** — Removes the worktree and branch. Use `--no-remove` to keep the worktree. When already on the target branch or in the main worktree, the worktree is preserved.@@ -135,9 +135,9 @@ lint = "cargo clippy"## See also-- [wt step](@/step.md) — Run individual operations (commit, squash, rebase, push)-- [wt remove](@/remove.md) — Remove worktrees without merging-- [wt switch](@/switch.md) — Navigate to other worktrees+- [`wt step`](@/step.md) — Run individual operations (commit, squash, rebase, push)+- [`wt remove`](@/remove.md) — Remove worktrees without merging+- [`wt switch`](@/switch.md) — Navigate to other worktrees----- stderr -----diff --git a/tests/snapshots/integration__integration_tests__help__help_merge_long.snap b/tests/snapshots/integration__integration_tests__help__help_merge_long.snapindex 85d7037cf..2bea6b8b8 100644--- a/tests/snapshots/integration__integration_tests__help__help_merge_long.snap+++ b/tests/snapshots/integration__integration_tests__help__help_merge_long.snap@@ -104,7 +104,7 @@ Skip committing/squashing (rebase still runs unless --no-rebase):what gets staged: [2mall[0m (default), [2mtracked[0m, or [2mnone[0m. A backup ref is saved to [2mrefs/wt-backup/<branch>[0m. With [2m--no-squash[0m, uncommitted changes become aseparate commit and individual commits are preserved.2. [1mRebase[0m — Rebases onto target if behind. Skipped if already up-to-date. Conflicts abort immediately.-3. [1mPre-merge hooks[0m — Hooks run after rebase, before merge. Failures abort. See wt hook.+3. [1mPre-merge hooks[0m — Hooks run after rebase, before merge. Failures abort. See [2mwt hook[0m.4. [1mMerge[0m — Fast-forward merge to the target branch. Non-fast-forward merges are rejected.5. [1mPre-remove hooks[0m — Hooks run before removing worktree. Failures abort.6. [1mCleanup[0m — Removes the worktree and branch. Use [2m--no-remove[0m to keep the worktree. When already on the target branch or in the main worktree, the@@ -131,6 +131,6 @@ hooks validate before merging — if they pass, the branch goes to the default b[32mSee also-- wt step — Run individual operations (commit, squash, rebase, push)-- wt remove — Remove worktrees without merging-- wt switch — Navigate to other worktrees+- [2mwt step[0m — Run individual operations (commit, squash, rebase, push)+- [2mwt remove[0m — Remove worktrees without merging+- [2mwt switch[0m — Navigate to other worktreesdiff --git a/tests/snapshots/integration__integration_tests__help__help_page_merge.snap b/tests/snapshots/integration__integration_tests__help__help_page_merge.snapindex 47049397a..cf56b9c9a 100644--- a/tests/snapshots/integration__integration_tests__help__help_page_merge.snap+++ b/tests/snapshots/integration__integration_tests__help__help_page_merge.snap@@ -67,7 +67,7 @@ wt merge --no-commit1. **Squash** — Stages uncommitted changes, then combines all commits since target into one (like GitHub's "Squash and merge"). Use `--stage` to control what gets staged: `all` (default), `tracked`, or `none`. A backup ref is saved to `refs/wt-backup/<branch>`. With `--no-squash`, uncommitted changes become a separate commit and individual commits are preserved.2. **Rebase** — Rebases onto target if behind. Skipped if already up-to-date. Conflicts abort immediately.-3. **Pre-merge hooks** — Hooks run after rebase, before merge. Failures abort. See [wt hook](@/hook.md).+3. **Pre-merge hooks** — Hooks run after rebase, before merge. Failures abort. See [`wt hook`](@/hook.md).4. **Merge** — Fast-forward merge to the target branch. Non-fast-forward merges are rejected.5. **Pre-remove hooks** — Hooks run before removing worktree. Failures abort.6. **Cleanup** — Removes the worktree and branch. Use `--no-remove` to keep the worktree. When already on the target branch or in the main worktree, the worktree is preserved.@@ -91,9 +91,9 @@ lint = "cargo clippy"## See also-- [wt step](@/step.md) — Run individual operations (commit, squash, rebase, push)-- [wt remove](@/remove.md) — Remove worktrees without merging-- [wt switch](@/switch.md) — Navigate to other worktrees+- [`wt step`](@/step.md) — Run individual operations (commit, squash, rebase, push)+- [`wt remove`](@/remove.md) — Remove worktrees without merging+- [`wt switch`](@/switch.md) — Navigate to other worktrees## Command referencediff --git a/tests/snapshots/integration__integration_tests__help__help_page_switch.snap b/tests/snapshots/integration__integration_tests__help__help_page_switch.snapindex 2bf5894d1..1587278a4 100644--- a/tests/snapshots/integration__integration_tests__help__help_page_switch.snap+++ b/tests/snapshots/integration__integration_tests__help__help_page_switch.snap@@ -86,10 +86,10 @@ To change which branch a worktree is on, use `git switch` inside that worktree.## See also-- [wt select](@/select.md) — Interactive worktree selection-- [wt list](@/list.md) — View all worktrees-- [wt remove](@/remove.md) — Delete worktrees when done-- [wt merge](@/merge.md) — Integrate changes back to the default branch+- [`wt select`](@/select.md) — Interactive worktree selection+- [`wt list`](@/list.md) — View all worktrees+- [`wt remove`](@/remove.md) — Delete worktrees when done+- [`wt merge`](@/merge.md) — Integrate changes back to the default branch## Command referencediff --git a/tests/snapshots/integration__integration_tests__help__help_remove_long.snap b/tests/snapshots/integration__integration_tests__help__help_remove_long.snapindex 478847051..4341cf0de 100644--- a/tests/snapshots/integration__integration_tests__help__help_remove_long.snap+++ b/tests/snapshots/integration__integration_tests__help__help_remove_long.snap@@ -110,9 +110,9 @@ the foreground.[32mShortcuts-[2m@[0m (current), [2m-[0m (previous), [2m^[0m (default branch). See wt switch.+[2m@[0m (current), [2m-[0m (previous), [2m^[0m (default branch). See [2mwt switch[0m.[32mSee also-- wt merge — Remove worktree after merging-- wt list — View all worktrees+- [2mwt merge[0m — Remove worktree after merging+- [2mwt list[0m — View all worktreesdiff --git a/tests/snapshots/integration__integration_tests__help__help_step_long.snap b/tests/snapshots/integration__integration_tests__help__help_step_long.snapindex 8177b0d3c..cc2d85669 100644--- a/tests/snapshots/integration__integration_tests__help__help_step_long.snap+++ b/tests/snapshots/integration__integration_tests__help__help_step_long.snap@@ -71,5 +71,5 @@ Manual merge workflow with review between steps:[32mSee also-- wt merge — Runs commit → squash → rebase → hooks → push → cleanup automatically-- wt hook — Run configured hooks+- [2mwt merge[0m — Runs commit → squash → rebase → hooks → push → cleanup automatically+- [2mwt hook[0m — Run configured hooksdiff --git a/tests/snapshots/integration__integration_tests__help__help_switch_long.snap b/tests/snapshots/integration__integration_tests__help__help_switch_long.snapindex 6acd855d1..d69a5b5f1 100644--- a/tests/snapshots/integration__integration_tests__help__help_switch_long.snap+++ b/tests/snapshots/integration__integration_tests__help__help_switch_long.snap@@ -134,7 +134,7 @@ To change which branch a worktree is on, use [2mgit switch[0m inside that work[32mSee also-- wt select — Interactive worktree selection-- wt list — View all worktrees-- wt remove — Delete worktrees when done-- wt merge — Integrate changes back to the default branch+- [2mwt select[0m — Interactive worktree selection+- [2mwt list[0m — View all worktrees+- [2mwt remove[0m — Delete worktrees when done+- [2mwt merge[0m — Integrate changes back to the default branch