From 8350ee9a0ef38ff4e78bfa5dc30e874d6d2510ef Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Mon, 21 Feb 2022 22:58:54 +0800 Subject: 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. --- helix-term/src/commands.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'helix-term') 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() { -- cgit v1.2.3-70-g09d2