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.

docs: Correct action descriptions to reflect actual purpose (#46931)

Xin Zhao05a021c4a3be
diff --git a/crates/debugger_ui/src/debugger_ui.rs b/crates/debugger_ui/src/debugger_ui.rs
index bd5a7cda4a2..5b860e2bbc1 100644
--- a/crates/debugger_ui/src/debugger_ui.rs
+++ b/crates/debugger_ui/src/debugger_ui.rs
@@ -90,11 +90,10 @@ actions!(
]
);
-/// Extends selection down by a specified number of lines.
+/// Set a data breakpoint on the selected variable or memory region.
#[derive(PartialEq, Clone, Deserialize, Default, JsonSchema, Action)]
#[action(namespace = debugger)]
#[serde(deny_unknown_fields)]
-/// Set a data breakpoint on the selected variable or memory region.
pub struct ToggleDataBreakpoint {
/// The type of data breakpoint
/// Read & Write
diff --git a/crates/vim/src/helix.rs b/crates/vim/src/helix.rs
index 526519fd134..4602862e051 100644
--- a/crates/vim/src/helix.rs
+++ b/crates/vim/src/helix.rs
@@ -53,9 +53,9 @@ actions!(
HelixSubstitute,
/// Delete the selection and enter edit mode, without yanking the selection.
HelixSubstituteNoYank,
- /// Delete the selection and enter edit mode.
+ /// Select the next match for the current search query.
HelixSelectNext,
- /// Delete the selection and enter edit mode, without yanking the selection.
+ /// Select the previous match for the current search query.
HelixSelectPrevious,
]
);
diff --git a/crates/vim/src/normal.rs b/crates/vim/src/normal.rs
index 27662fc20c2..4437f4dc91f 100644
--- a/crates/vim/src/normal.rs
+++ b/crates/vim/src/normal.rs
@@ -100,9 +100,9 @@ actions!(
GoToTab,
/// Go to previous tab page (with count support).
GoToPreviousTab,
- /// Go to tab page (with count support).
+ /// Goes to the previous reference to the symbol under the cursor.
GoToPreviousReference,
- /// Go to previous tab page (with count support).
+ /// Goes to the next reference to the symbol under the cursor.
GoToNextReference,
]
);
diff --git a/crates/vim/src/object.rs b/crates/vim/src/object.rs
index 70785b4e94c..f852e24bc37 100644
--- a/crates/vim/src/object.rs
+++ b/crates/vim/src/object.rs
@@ -85,7 +85,7 @@ pub struct CandidateWithRanges {
close_range: Range<MultiBufferOffset>,
}
-/// Selects text at the same indentation level.
+/// Operates on text within or around parentheses `()`.
#[derive(Clone, Deserialize, JsonSchema, PartialEq, Action)]
#[action(namespace = vim)]
#[serde(deny_unknown_fields)]
@@ -94,7 +94,7 @@ struct Parentheses {
opening: bool,
}
-/// Selects text at the same indentation level.
+/// Operates on text within or around square brackets `[]`.
#[derive(Clone, Deserialize, JsonSchema, PartialEq, Action)]
#[action(namespace = vim)]
#[serde(deny_unknown_fields)]
@@ -103,7 +103,7 @@ struct SquareBrackets {
opening: bool,
}
-/// Selects text at the same indentation level.
+/// Operates on text within or around angle brackets `<>`.
#[derive(Clone, Deserialize, JsonSchema, PartialEq, Action)]
#[action(namespace = vim)]
#[serde(deny_unknown_fields)]
@@ -111,7 +111,8 @@ struct AngleBrackets {
#[serde(default)]
opening: bool,
}
-/// Selects text at the same indentation level.
+
+/// Operates on text within or around curly brackets `{}`.
#[derive(Clone, Deserialize, JsonSchema, PartialEq, Action)]
#[action(namespace = vim)]
#[serde(deny_unknown_fields)]
diff --git a/crates/zed_actions/src/lib.rs b/crates/zed_actions/src/lib.rs
index 84746cfb03e..d13bfdd2f2e 100644
--- a/crates/zed_actions/src/lib.rs
+++ b/crates/zed_actions/src/lib.rs
@@ -128,7 +128,7 @@ pub struct IncreaseBufferFontSize {
pub persist: bool,
}
-/// Increases the font size in the editor buffer.
+/// Opens the settings editor at a specific path.
#[derive(PartialEq, Clone, Debug, Deserialize, JsonSchema, Action)]
#[action(namespace = zed)]
#[serde(deny_unknown_fields)]
@@ -512,7 +512,7 @@ pub enum Spawn {
#[serde(default)]
reveal_target: Option<RevealTarget>,
},
- /// Spawns a task by the name given.
+ /// Spawns a task by the tag given.
ByTag {
task_tag: String,
#[serde(default)]