From acfcaff936a0e05df79f5f638e1716cd13cd6ea6 Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Thu, 11 Jun 2026 14:01:18 -0300 Subject: [PATCH] Iterate on placeholder copywriting for branch and worktree pickers (#59130) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This change is motivated by user feedback where we saw some confusion where they didn't know that you could create either a worktree or branch through simply typing in their respective picker's editor. Hopefully, this new placeholder in each of them will help communicate that. Release Notes: - Improved placeholder copywriting in both the branch and worktree pickers to communicate it's possible to type-to-create each. Co-authored-by: María Craig --- crates/git_ui/src/branch_picker.rs | 6 +----- crates/git_ui/src/worktree_picker.rs | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/crates/git_ui/src/branch_picker.rs b/crates/git_ui/src/branch_picker.rs index e3ff9d4b15..86ab692e03 100644 --- a/crates/git_ui/src/branch_picker.rs +++ b/crates/git_ui/src/branch_picker.rs @@ -1050,11 +1050,7 @@ impl PickerDelegate for BranchListDelegate { fn placeholder_text(&self, _window: &mut Window, _cx: &mut App) -> Arc { match self.state { PickerState::List | PickerState::NewRemote | PickerState::NewBranch => { - if self.is_select_only() { - "Select branch…" - } else { - "Switch branch…" - } + "Switch or type to create a branch…" } PickerState::CreateRemote(_) => "Enter a name for this remote…", } diff --git a/crates/git_ui/src/worktree_picker.rs b/crates/git_ui/src/worktree_picker.rs index 5d09dfbbd2..312697bf1b 100644 --- a/crates/git_ui/src/worktree_picker.rs +++ b/crates/git_ui/src/worktree_picker.rs @@ -764,7 +764,7 @@ impl PickerDelegate for WorktreePickerDelegate { type ListItem = AnyElement; fn placeholder_text(&self, _window: &mut Window, _cx: &mut App) -> Arc { - "Select a worktree…".into() + "Select or type to create a worktree…".into() } fn editor_position(&self) -> PickerEditorPosition {