on master help sign in
Change parameter object keybind from `p` to `a` (#1708)
b0aaf08Gokul Soumya
book/src/keymap.md+2−2
@@ -268,8 +268,8 @@ Mappings in the style of [vim-unimpaired](https://github.com/tpope/vim-unimpaire
268| `[f` | Go to previous function (**TS**) | `goto_prev_function` |
268| `[f` | Go to previous function (**TS**) | `goto_prev_function` |
269| `]c` | Go to next class (**TS**) | `goto_next_class` |
269| `]c` | Go to next class (**TS**) | `goto_next_class` |
270| `[c` | Go to previous class (**TS**) | `goto_prev_class` |
270| `[c` | Go to previous class (**TS**) | `goto_prev_class` |
271−| `]p` | Go to next parameter (**TS**) | `goto_next_parameter` |
271+| `]a` | Go to next argument/parameter (**TS**) | `goto_next_parameter` |
272−| `[p` | Go to previous parameter (**TS**) | `goto_prev_parameter` |
272+| `[a` | Go to previous argument/parameter (**TS**) | `goto_prev_parameter` |
273| `]o` | Go to next comment (**TS**) | `goto_next_comment` |
273| `]o` | Go to next comment (**TS**) | `goto_next_comment` |
274| `[o` | Go to previous comment (**TS**) | `goto_prev_comment` |
274| `[o` | Go to previous comment (**TS**) | `goto_prev_comment` |
275| `[space` | Add newline above | `add_newline_above` |
275| `[space` | Add newline above | `add_newline_above` |
book/src/usage.md+1−1
@@ -68,7 +68,7 @@ Currently supported: `word`, `surround`, `function`, `class`, `parameter`.
68| `(`, `[`, `'`, etc | Specified surround pairs |
68| `(`, `[`, `'`, etc | Specified surround pairs |
69| `f` | Function |
69| `f` | Function |
70| `c` | Class |
70| `c` | Class |
71−| `p` | Parameter |
71+| `a` | Argument/parameter |
72| `o` | Comment |
72| `o` | Comment |
73
73
74> NOTE: `f`, `c`, etc need a tree-sitter grammar active for the current
74> NOTE: `f`, `c`, etc need a tree-sitter grammar active for the current
helix-term/src/commands.rs+2−2
@@ -3965,7 +3965,7 @@ fn select_textobject(cx: &mut Context, objtype: textobject::TextObject) {
3965 'W' => textobject::textobject_word(text, range, objtype, count, true),
3965 'W' => textobject::textobject_word(text, range, objtype, count, true),
3966 'c' => textobject_treesitter("class", range),
3966 'c' => textobject_treesitter("class", range),
3967 'f' => textobject_treesitter("function", range),
3967 'f' => textobject_treesitter("function", range),
3968− 'p' => textobject_treesitter("parameter", range),
3968+ 'a' => textobject_treesitter("parameter", range),
3969 'o' => textobject_treesitter("comment", range),
3969 'o' => textobject_treesitter("comment", range),
3970 'm' => {
3970 'm' => {
3971 let ch = text.char(range.cursor(text));
3971 let ch = text.char(range.cursor(text));
@@ -3999,7 +3999,7 @@ fn select_textobject(cx: &mut Context, objtype: textobject::TextObject) {
3999 ("W", "WORD"),
3999 ("W", "WORD"),
4000 ("c", "Class (tree-sitter)"),
4000 ("c", "Class (tree-sitter)"),
4001 ("f", "Function (tree-sitter)"),
4001 ("f", "Function (tree-sitter)"),
4002− ("p", "Parameter (tree-sitter)"),
4002+ ("a", "Argument/parameter (tree-sitter)"),
4003 ("o", "Comment (tree-sitter)"),
4003 ("o", "Comment (tree-sitter)"),
4004 ("m", "Matching delimiter under cursor"),
4004 ("m", "Matching delimiter under cursor"),
4005 (" ", "... or any character acting as a pair"),
4005 (" ", "... or any character acting as a pair"),
helix-term/src/keymap.rs+2−2
@@ -607,7 +607,7 @@ impl Default for Keymaps {
607 "D" => goto_first_diag,
607 "D" => goto_first_diag,
608 "f" => goto_prev_function,
608 "f" => goto_prev_function,
609 "c" => goto_prev_class,
609 "c" => goto_prev_class,
610− "p" => goto_prev_parameter,
610+ "a" => goto_prev_parameter,
611 "o" => goto_prev_comment,
611 "o" => goto_prev_comment,
612 "space" => add_newline_above,
612 "space" => add_newline_above,
613 },
613 },
@@ -616,7 +616,7 @@ impl Default for Keymaps {
616 "D" => goto_last_diag,
616 "D" => goto_last_diag,
617 "f" => goto_next_function,
617 "f" => goto_next_function,
618 "c" => goto_next_class,
618 "c" => goto_next_class,
619− "p" => goto_next_parameter,
619+ "a" => goto_next_parameter,
620 "o" => goto_next_comment,
620 "o" => goto_next_comment,
621 "space" => add_newline_below,
621 "space" => add_newline_below,
622 },
622 },