Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

Replace section header emoji with cyan uppercase text

Maximilian Roos0e2c00599619
diff --git a/CLAUDE.md b/CLAUDE.md
index 6ee27a982..301b4f46f 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -229,6 +229,8 @@ output::print(warning_message(cformat!("Branch <bold>{name}</> not found")))?;
**Every user-facing message requires either an emoji or a gutter** for consistent visual separation.
+**Section titles** (experimental): For output with distinct sections (like `wt hook show`, `wt config show`), use cyan uppercase text without emoji: `<cyan>SECTION TITLE</>`. This distinguishes organizational headers from status messages. Currently being trialed — expand to other commands if it works well.
+
### Blank Line Principles
- **No leading/trailing blanks** - Start immediately, end cleanly
diff --git a/src/commands/config.rs b/src/commands/config.rs
index b1f8d1e3e..84c553947 100644
--- a/src/commands/config.rs
+++ b/src/commands/config.rs
@@ -206,7 +206,7 @@ fn render_user_config(out: &mut String) -> anyhow::Result<()> {
out,
"{}",
cformat!(
- "{INFO_EMOJI} User Config: <bold>{}</>",
+ "<cyan>USER CONFIG</> {}",
format_path_for_display(&config_path)
)
)?;
@@ -269,7 +269,7 @@ fn render_project_config(out: &mut String) -> anyhow::Result<()> {
writeln!(
out,
"{}",
- cformat!("{INFO_EMOJI} <dim>Project Config: Not in a git repository</>")
+ cformat!("<cyan><dim>PROJECT CONFIG</> Not in a git repository</>")
)?;
return Ok(());
}
@@ -280,7 +280,7 @@ fn render_project_config(out: &mut String) -> anyhow::Result<()> {
out,
"{}",
cformat!(
- "{INFO_EMOJI} Project Config: <bold>{}</>",
+ "<cyan>PROJECT CONFIG</> {}",
format_path_for_display(&config_path)
)
)?;
diff --git a/src/commands/standalone.rs b/src/commands/standalone.rs
index cacb8e405..f23a10ad2 100644
--- a/src/commands/standalone.rs
+++ b/src/commands/standalone.rs
@@ -716,7 +716,7 @@ fn render_user_hooks(
out,
"{}",
cformat!(
- "{INFO_EMOJI} User Hooks: <bold>{}</>",
+ "<cyan>USER HOOKS</> {}",
config_path
.as_ref()
.map(|p| format_path_for_display(p))
@@ -777,7 +777,7 @@ fn render_project_hooks(
out,
"{}",
cformat!(
- "{INFO_EMOJI} Project Hooks: <bold>{}</>",
+ "<cyan>PROJECT HOOKS</> {}",
format_path_for_display(&config_path)
)
)?;
diff --git a/tests/integration_tests/config_show.rs b/tests/integration_tests/config_show.rs
index b686cf831..b6873118f 100644
--- a/tests/integration_tests/config_show.rs
+++ b/tests/integration_tests/config_show.rs
@@ -51,13 +51,13 @@ server = "npm run dev"
----- stdout -----
----- stderr -----
- ⚪ User Config: ~/.config/worktrunk/config.toml
+ USER CONFIG ~/.config/worktrunk/config.toml
  worktree-path = "../{{ main_worktree }}.{{ branch }}"
 
  [projects."test-project"]
  approved-commands = ["npm install"]
- ⚪ Project Config: [REPO]/.config/wt.toml
+ PROJECT CONFIG [REPO]/.config/wt.toml
  post-create = "npm install"
 
  [post-start]
@@ -99,10 +99,10 @@ fn test_config_show_no_project_config() {
----- stdout -----
----- stderr -----
- ⚪ User Config: ~/.config/worktrunk/config.toml
+ USER CONFIG ~/.config/worktrunk/config.toml
  worktree-path = "../{{ main_worktree }}.{{ branch }}"
- ⚪ Project Config: [REPO]/.config/wt.toml
+ PROJECT CONFIG [REPO]/.config/wt.toml
💡 Not found
⚪ Skipped bash; ~/.bashrc not found
@@ -140,10 +140,10 @@ fn test_config_show_outside_git_repo() {
----- stdout -----
----- stderr -----
- ⚪ User Config: ~/.config/worktrunk/config.toml
+ USER CONFIG ~/.config/worktrunk/config.toml
  worktree-path = "../{{ main_worktree }}.{{ branch }}"
- ⚪ Project Config: Not in a git repository
+ PROJECT CONFIG Not in a git repository
⚪ Skipped bash; ~/.bashrc not found
⚪ Skipped zsh; ~/.zshrc not found
@@ -298,10 +298,10 @@ fn test_config_show_warns_unknown_project_keys() {
----- stdout -----
----- stderr -----
- ⚪ User Config: ~/.config/worktrunk/config.toml
+ USER CONFIG ~/.config/worktrunk/config.toml
  worktree-path = "../{{ main_worktree }}.{{ branch }}"
- ⚪ Project Config: [REPO]/.config/wt.toml
+ PROJECT CONFIG [REPO]/.config/wt.toml
🟡 Unknown key post-merge-command will be ignored
  [post-merge-command]
  deploy = "task deploy"
@@ -341,14 +341,14 @@ fn test_config_show_warns_unknown_user_keys() {
----- stdout -----
----- stderr -----
- ⚪ User Config: ~/.config/worktrunk/config.toml
+ USER CONFIG ~/.config/worktrunk/config.toml
🟡 Unknown key commit-gen will be ignored
  worktree-path = "../{{ main_worktree }}.{{ branch }}"
 
  [commit-gen]
  command = "llm"
- ⚪ Project Config: [REPO]/.config/wt.toml
+ PROJECT CONFIG [REPO]/.config/wt.toml
💡 Not found
⚪ Skipped bash; ~/.bashrc not found
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_doctor_command_not_found.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_doctor_command_not_found.snap
index 6f04b78ec..16e0616b3 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_doctor_command_not_found.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_doctor_command_not_found.snap
@@ -26,14 +26,14 @@ exit_code: 0
----- stdout -----
----- stderr -----
-⚪ User Config: ~/.config/worktrunk/config.toml
+USER CONFIG ~/.config/worktrunk/config.toml
  worktree-path = "../{{ main_worktree }}.{{ branch }}"
 
  [commit-generation]
  command = "nonexistent-llm-command-12345"
  args = ["-m", "test-model"]
-⚪ Project Config: [REPO]/.config/wt.toml
+PROJECT CONFIG [REPO]/.config/wt.toml
💡 Not found
⚪ Skipped bash; ~/.bashrc not found
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_doctor_not_configured.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_doctor_not_configured.snap
index 495377b3f..b3fbc137e 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_doctor_not_configured.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_doctor_not_configured.snap
@@ -26,10 +26,10 @@ exit_code: 0
----- stdout -----
----- stderr -----
-⚪ User Config: ~/.config/worktrunk/config.toml
+USER CONFIG ~/.config/worktrunk/config.toml
  worktree-path = "../{{ main_worktree }}.{{ branch }}"
-⚪ Project Config: [REPO]/.config/wt.toml
+PROJECT CONFIG [REPO]/.config/wt.toml
💡 Not found
⚪ Skipped bash; ~/.bashrc not found
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 5f8ff1d73..19afdfbee 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
@@ -26,10 +26,10 @@ exit_code: 0
----- stdout -----
----- stderr -----
-⚪ User Config: ~/.config/worktrunk/config.toml
+USER CONFIG ~/.config/worktrunk/config.toml
💡 Empty file (using defaults)
-⚪ Project Config: [REPO]/.config/wt.toml
+PROJECT CONFIG [REPO]/.config/wt.toml
💡 Not found
💡 Not configured shell extension & completions for bash @ ~/.bashrc
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_correct_order.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_correct_order.snap
index aa106f622..54b5daab3 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_correct_order.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_correct_order.snap
@@ -26,10 +26,10 @@ exit_code: 0
----- stdout -----
----- stderr -----
-⚪ User Config: ~/.config/worktrunk/config.toml
+USER CONFIG ~/.config/worktrunk/config.toml
💡 Empty file (using defaults)
-⚪ Project Config: [REPO]/.config/wt.toml
+PROJECT CONFIG [REPO]/.config/wt.toml
💡 Not found
⚪ Already configured shell extension & completions for zsh @ ~/.zshrc
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_warning.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_warning.snap
index 92dc2a3b6..2ff3f39f4 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_warning.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_warning.snap
@@ -18,6 +18,7 @@ info:
LC_ALL: C
SOURCE_DATE_EPOCH: "1735776000"
WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"
+ WORKTRUNK_TEST_COMPINIT_MISSING: "1"
XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"
---
success: true
@@ -25,10 +26,10 @@ exit_code: 0
----- stdout -----
----- stderr -----
-⚪ User Config: ~/.config/worktrunk/config.toml
+USER CONFIG ~/.config/worktrunk/config.toml
💡 Empty file (using defaults)
-⚪ Project Config: [REPO]/.config/wt.toml
+PROJECT CONFIG [REPO]/.config/wt.toml
💡 Not found
⚪ Already configured shell extension & completions for zsh @ ~/.zshrc
diff --git a/tests/snapshots/integration__integration_tests__hook_show__hook_show_approval_status.snap b/tests/snapshots/integration__integration_tests__hook_show__hook_show_approval_status.snap
index eb2119405..75c4373e0 100644
--- a/tests/snapshots/integration__integration_tests__hook_show__hook_show_approval_status.snap
+++ b/tests/snapshots/integration__integration_tests__hook_show__hook_show_approval_status.snap
@@ -25,10 +25,10 @@ exit_code: 0
----- stdout -----
----- stderr -----
-⚪ User Hooks: ~/.config/worktrunk/config.toml
+USER HOOKS ~/.config/worktrunk/config.toml
💡 (none configured)
-⚪ Project Hooks: [REPO]/.config/wt.toml
+PROJECT HOOKS [REPO]/.config/wt.toml
⚪ pre-merge build:
  cargo build
❓ pre-merge test: (requires approval)
diff --git a/tests/snapshots/integration__integration_tests__hook_show__hook_show_filter_by_type.snap b/tests/snapshots/integration__integration_tests__hook_show__hook_show_filter_by_type.snap
index 11a005692..ca78a3726 100644
--- a/tests/snapshots/integration__integration_tests__hook_show__hook_show_filter_by_type.snap
+++ b/tests/snapshots/integration__integration_tests__hook_show__hook_show_filter_by_type.snap
@@ -26,10 +26,10 @@ exit_code: 0
----- stdout -----
----- stderr -----
-[TEST_CONFIG]
+[TEST_CONFIG]
💡 (none configured)
-⚪ Project Hooks: [REPO]/.config/wt.toml
+PROJECT HOOKS [REPO]/.config/wt.toml
❓ pre-merge build: (requires approval)
  cargo build
❓ pre-merge test: (requires approval)
diff --git a/tests/snapshots/integration__integration_tests__hook_show__hook_show_no_hooks.snap b/tests/snapshots/integration__integration_tests__hook_show__hook_show_no_hooks.snap
index c2e8cb902..c814ab409 100644
--- a/tests/snapshots/integration__integration_tests__hook_show__hook_show_no_hooks.snap
+++ b/tests/snapshots/integration__integration_tests__hook_show__hook_show_no_hooks.snap
@@ -25,8 +25,8 @@ exit_code: 0
----- stdout -----
----- stderr -----
-[TEST_CONFIG]
+[TEST_CONFIG]
💡 (none configured)
-⚪ Project Hooks: [REPO]/.config/wt.toml
+PROJECT HOOKS [REPO]/.config/wt.toml
💡 (not found)
diff --git a/tests/snapshots/integration__integration_tests__hook_show__hook_show_with_both_configs.snap b/tests/snapshots/integration__integration_tests__hook_show__hook_show_with_both_configs.snap
index 0126e2122..103f36f65 100644
--- a/tests/snapshots/integration__integration_tests__hook_show__hook_show_with_both_configs.snap
+++ b/tests/snapshots/integration__integration_tests__hook_show__hook_show_with_both_configs.snap
@@ -25,10 +25,10 @@ exit_code: 0
----- stdout -----
----- stderr -----
-[TEST_CONFIG]
+[TEST_CONFIG]
💡 (none configured)
-⚪ Project Hooks: [REPO]/.config/wt.toml
+PROJECT HOOKS [REPO]/.config/wt.toml
❓ post-start deps: (requires approval)
  npm install
❓ pre-merge build: (requires approval)
diff --git a/tests/snapshots/integration__integration_tests__internal_flag__config_show_with_internal_flag.snap b/tests/snapshots/integration__integration_tests__internal_flag__config_show_with_internal_flag.snap
index a092b4c3b..15fb4daa2 100644
--- a/tests/snapshots/integration__integration_tests__internal_flag__config_show_with_internal_flag.snap
+++ b/tests/snapshots/integration__integration_tests__internal_flag__config_show_with_internal_flag.snap
@@ -26,10 +26,10 @@ exit_code: 0
----- stdout -----
----- stderr -----
-⚪ User Config: ~/.config/worktrunk/config.toml
+USER CONFIG ~/.config/worktrunk/config.toml
  worktree-path = "../{{ main_worktree }}.{{ branch }}"
-⚪ Project Config: [REPO]/.config/wt.toml
+PROJECT CONFIG [REPO]/.config/wt.toml
💡 Not found
⚪ Skipped bash; ~/.bashrc not found