Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
fix(output): remove blank line between hint and its subject in config show (#1007)
Maximilian Roos4cc7998a71cd
diff --git a/.claude/skills/writing-user-outputs/SKILL.md b/.claude/skills/writing-user-outputs/SKILL.mdindex c2666902b..17770f604 100644--- a/.claude/skills/writing-user-outputs/SKILL.md+++ b/.claude/skills/writing-user-outputs/SKILL.md@@ -471,6 +471,20 @@ Specific rules:- **One blank between phases** — When a sub-operation completes and a differentoperation begins, add a blank line to visually separate them- **Never double blanks** — One blank line maximum between elements+- **Hints attach to their subject** — Never put a blank line between a hint and+ the message it elaborates on. Hints (↳) are subordinate — they belong directly+ below their parent message with no gap.++ ```+ // GOOD - hint directly follows its subject+ ↳ fish: Not configured shell extension+ ↳ To configure, run wt config shell install++ // BAD - blank line detaches hint from subject+ ↳ fish: Not configured shell extension++ ↳ To configure, run wt config shell install+ ```**Prompt spacing:** A blank line before the prompt signals "something differentis about to happen" and gives the user's eye a natural stopping point before theydiff --git a/src/commands/config/show.rs b/src/commands/config/show.rsindex cfab75a78..a72672773 100644--- a/src/commands/config/show.rs+++ b/src/commands/config/show.rs@@ -791,7 +791,6 @@ fn render_shell_status(out: &mut String) -> anyhow::Result<()> {// Summary hint when shells need configurationif any_not_configured {- writeln!(out)?;writeln!(out,"{}",diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_fish_without_completions.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_fish_without_completions.snapindex 55ee1858f..c5a050406 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_fish_without_completions.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_fish_without_completions.snap@@ -54,7 +54,6 @@ exit_code: 0[2m↳[22m [2mTo verify wrapper loaded: [90mtype wt[39m[22m[2m○[22m [2mbash: Skipped; ~/.bashrc not found[22m[2m○[22m [2mzsh: Skipped; ~/.zshrc not found[22m-[2m↳[22m [2mTo configure, run [90mwt config shell install[39m[22m[36mCLAUDE CODE[39mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_partial_shell_config_shows_hint.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_partial_shell_config_shows_hint.snapindex 60e94620c..40657b988 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_partial_shell_config_shows_hint.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_partial_shell_config_shows_hint.snap@@ -54,7 +54,6 @@ exit_code: 0[107m [0m [2m[0m[2m[35mif[0m[2m [0m[2m[34mcommand[0m[2m [0m[2m[36m-v[0m[2m wt [0m[2m[36m>[0m[2m/dev/null [0m[2m[33m2[0m[2m>&1; [0m[2m[35mthen[0m[2m [0m[2m[34meval[0m[2m [0m[2m[32m"$([0m[2m[34mcommand[0m[2m wt config shell init zsh)"[0m[2m; [0m[2m[35mfi[0m[2m[2m↳[22m [2mTo verify wrapper loaded: [90mtype wt[39m[22m[2m○[22m [2mfish: Skipped; ~/.config/fish/functions not found[22m-[2m↳[22m [2mTo configure, run [90mwt config shell install[39m[22m[36mCLAUDE CODE[39mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_unmatched_candidate_warning.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_unmatched_candidate_warning.snapindex 762bc42e2..8de0e980b 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_unmatched_candidate_warning.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_unmatched_candidate_warning.snap@@ -13,6 +13,7 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"GIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""GIT_TERMINAL_PROMPT: "0"HOME: "[TEST_HOME]"LANG: C@@ -51,7 +52,6 @@ exit_code: 0[2m↳[22m [2mbash: Not configured shell extension & completions[22m[2m○[22m [2mzsh: Skipped; ~/.zshrc not found[22m[2m○[22m [2mfish: Skipped; ~/.config/fish/functions not found[22m-[2m↳[22m [2mTo configure, run [90mwt config shell install[39m[22m[33m▲[39m [33mFound [1mwt[22m in [1m~/.bashrc:3[22m but not detected as integration:[39m[107m [0m [2m[0m[2m[34malias[0m[2m wt=[0m[2m[32m"git worktree"[0m[2m