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.

editor: Correct "Toggle Excerpt Fold" tip on macOS (#38487)

Bartosz Kaszubowskia3da66cec0f7
diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rs
index 3bc05ccd537..28fe68e71cb 100644
--- a/crates/editor/src/element.rs
+++ b/crates/editor/src/element.rs
@@ -3838,7 +3838,11 @@ impl EditorElement {
Tooltip::with_meta_in(
"Toggle Excerpt Fold",
Some(&ToggleFold),
- "Alt+click to toggle all",
+ if cfg!(target_os = "macos") {
+ "Option+click to toggle all"
+ } else {
+ "Alt+click to toggle all"
+ },
&focus_handle,
window,
cx,