aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorIvan Tham2022-02-21 14:58:54 +0000
committerBlaž Hrastnik2022-04-02 15:46:53 +0000
commit8350ee9a0ef38ff4e78bfa5dc30e874d6d2510ef (patch)
tree01c1486aaa420a8d98046619cde79d53b92cdb19 /helix-term
parente2a6e33b98ac6dd1d42be659706c7e0d248e8f5d (diff)
Add paragraph textobject
Change parameter/argument key from p to a since paragraph only have p but parameter are also called arguments sometimes and a is not used.
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/commands.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index beb564ad..ed3b45ae 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -3991,6 +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),
'm' => {
let ch = text.char(range.cursor(text));
if !ch.is_ascii_alphanumeric() {