You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
helix-plus/helix-term/src
Michael Davis 274f2ea459 Use requested direction for new textobject selection range
This changes the behavior of operations like `]f`/`[f` to set the
direction of the new range to the direction of the action.

The original behavior was to always use the head of the next function.
This is inconsistent with the behavior of goto_next_paragraph and makes
it impossible to create extend variants of the textobject motions.

This causes a behavior change when there are nested functions. The
behavior in the parent commit is that repeated uses of `]f` will
select every function in the file even if nested. With this commit,
functions are skipped.

It's notable that it's possible to emulate the original behavior by
using the `ensure_selections_forward` (A-:) command between invocations
of `]f`.
2 years ago
..
commands Add goto preview (#2982) 2 years ago
keymap Remove default insert mode movement bindings 2 years ago
ui Cycled to end/beginning + no more matches msgs (#3176) 2 years ago
application.rs diagnostics: Use Vec<Tag> instead of Option<Vec<Tag>> 2 years ago
args.rs Add command line parameter to specify log file (#3807) 2 years ago
commands.rs Use requested direction for new textobject selection range 2 years ago
compositor.rs Add bracketed paste (#3233) 2 years ago
config.rs Move top level lsp config to editor.lsp (#1868) 2 years ago
health.rs Show clipboard info in --health output (#2947) 2 years ago
job.rs fix(command): write-quit: do not quit if write fails 2 years ago
keymap.rs Improve keymap errors from command typos (#3931) 2 years ago
lib.rs Add refresh-config and open-config command (#1803) 2 years ago
main.rs Add command line parameter to specify log file (#3807) 2 years ago