Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Iterate on placeholder copywriting for branch and worktree pickers (#59130)

Danilo Lealacfcaff936a0
diff --git a/crates/git_ui/src/branch_picker.rs b/crates/git_ui/src/branch_picker.rs
index e3ff9d4b158..86ab692e03e 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<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…",
}
diff --git a/crates/git_ui/src/worktree_picker.rs b/crates/git_ui/src/worktree_picker.rs
index 5d09dfbbd2f..312697bf1b9 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<str> {
- "Select a worktree…".into()
+ "Select or type to create a worktree…".into()
}
fn editor_position(&self) -> PickerEditorPosition {