aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorIvan Tham2022-03-07 13:25:26 +0000
committerBlaž Hrastnik2022-04-02 15:46:53 +0000
commit8b91ecde40e95a8ba956881c95da60adbf98abb6 (patch)
tree33298f2273bf8b537cdb46e7478e277497b2527e /helix-term
parent64c2490f2d9a9b98d1142243e815d2ff80c99f2a (diff)
Rename _para to _paragraph
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/commands.rs14
-rw-r--r--helix-term/src/keymap/default.rs4
2 files changed, 9 insertions, 9 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index ed3b45ae..f0fb469b 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -209,8 +209,8 @@ impl MappableCommand {
move_next_long_word_start, "Move to beginning of next long word",
move_prev_long_word_start, "Move to beginning of previous long word",
move_next_long_word_end, "Move to end of next long word",
- move_prev_para, "Move to previous paragraph",
- move_next_para, "Move to next paragraph",
+ move_prev_paragraph, "Move to previous paragraph",
+ move_next_paragraph, "Move to next paragraph",
extend_next_word_start, "Extend to beginning of next word",
extend_prev_word_start, "Extend to beginning of previous word",
extend_next_long_word_start, "Extend to beginning of next long word",
@@ -924,12 +924,12 @@ where
doc.set_selection(view.id, selection);
}
-fn move_prev_para(cx: &mut Context) {
- move_para_impl(cx, movement::move_prev_para)
+fn move_prev_paragraph(cx: &mut Context) {
+ move_para_impl(cx, movement::move_prev_paragraph)
}
-fn move_next_para(cx: &mut Context) {
- move_para_impl(cx, movement::move_next_para)
+fn move_next_paragraph(cx: &mut Context) {
+ move_para_impl(cx, movement::move_next_paragraph)
}
fn goto_file_start(cx: &mut Context) {
@@ -3991,7 +3991,7 @@ fn select_textobject(cx: &mut Context, objtype: textobject::TextObject) {
'f' => textobject_treesitter("function", range),
'a' => textobject_treesitter("parameter", range),
'o' => textobject_treesitter("comment", range),
- 'p' => textobject::textobject_para(text, range, objtype, count),
+ 'p' => textobject::textobject_paragraph(text, range, objtype, count),
'm' => {
let ch = text.char(range.cursor(text));
if !ch.is_ascii_alphanumeric() {
diff --git a/helix-term/src/keymap/default.rs b/helix-term/src/keymap/default.rs
index a7c1f1de..a8144ebc 100644
--- a/helix-term/src/keymap/default.rs
+++ b/helix-term/src/keymap/default.rs
@@ -104,7 +104,7 @@ pub fn default() -> HashMap<Mode, Keymap> {
"c" => goto_prev_class,
"a" => goto_prev_parameter,
"o" => goto_prev_comment,
- "p" => move_prev_para,
+ "p" => move_prev_paragraph,
"space" => add_newline_above,
},
"]" => { "Right bracket"
@@ -114,7 +114,7 @@ pub fn default() -> HashMap<Mode, Keymap> {
"c" => goto_next_class,
"a" => goto_next_parameter,
"o" => goto_next_comment,
- "p" => move_next_para,
+ "p" => move_next_paragraph,
"space" => add_newline_below,
},