Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
feat: Prettify tab completion for branches
Maximilian Roos5e5015913077
diff --git a/src/completion.rs b/src/completion.rsindex 635c6c5a4..1539ec815 100644--- a/src/completion.rs+++ b/src/completion.rs@@ -86,8 +86,9 @@ fn complete_branches(suppress_with_create: bool) -> Vec<CompletionCandidate> {.map(|branch| {let time_str = format_relative_time_short(branch.timestamp);let help = match branch.category {- BranchCategory::Worktree | BranchCategory::Local => time_str,- BranchCategory::Remote(remote) => format!("{}, {}", time_str, remote),+ BranchCategory::Worktree => format!("+ {}", time_str),+ BranchCategory::Local => format!("⎇ {}", time_str),+ BranchCategory::Remote(remote) => format!("⇣ {} {}", time_str, remote),};CompletionCandidate::new(branch.name).help(Some(help.into()))})