Skip to content

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.md
index 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 different
operation 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 different
is about to happen" and gives the user's eye a natural stopping point before they
diff --git a/src/commands/config/show.rs b/src/commands/config/show.rs
index 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 configuration
if 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.snap
index 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
↳ To verify wrapper loaded: type wt
○ bash: Skipped; ~/.bashrc not found
○ zsh: Skipped; ~/.zshrc not found
-
↳ To configure, run wt config shell install
CLAUDE CODE
diff --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.snap
index 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
  if command -v wt >/dev/null 2>&1; then eval "$(command wt config shell init zsh)"; fi
↳ To verify wrapper loaded: type wt
○ fish: Skipped; ~/.config/fish/functions not found
-
↳ To configure, run wt config shell install
CLAUDE CODE
diff --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.snap
index 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
↳ bash: Not configured shell extension & completions
○ zsh: Skipped; ~/.zshrc not found
○ fish: Skipped; ~/.config/fish/functions not found
-
↳ To configure, run wt config shell install
▲ Found wt in ~/.bashrc:3 but not detected as integration:
  alias wt="git worktree"