Iterate on placeholder copywriting for branch and worktree pickers (#59130)
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 <maria@zed.dev>
This commit is contained in:
1 parent
61ad9ebfcd
commit
acfcaff936
2 files changed
+2
-6
No files matched your search
@@ -1050,11 +1050,7 @@ impl PickerDelegate for BranchListDelegate {
|
||||
fn placeholder_text(&self, _window: &mut Window, _cx: &mut App) -> Arc<str> {
|
||||
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…",
|
||||
}
|
||||
|
||||
@@ -764,7 +764,7 @@ impl PickerDelegate for WorktreePickerDelegate {
|
||||
type ListItem = AnyElement;
|
||||
|
||||
fn placeholder_text(&self, _window: &mut Window, _cx: &mut App) -> Arc<str> {
|
||||
"Select a worktree…".into()
|
||||
"Select or type to create a worktree…".into()
|
||||
}
|
||||
|
||||
fn editor_position(&self) -> PickerEditorPosition {
|
||||
|
||||
Reference in new issue
Block a user