helix/helix-core/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`.
2022-10-03 10:44:08 -04:00
..
increment Resolve clippy lints () 2022-08-04 14:32:59 +09:00
auto_pairs.rs use main application event loop 2022-06-18 23:54:03 -04:00
chars.rs Temporarily turn on unicode-lines 2022-03-17 10:53:50 +09:00
comment.rs Fix toggle_comments command on multiple selections () 2022-04-05 10:01:58 +09:00
config.rs Add support for local language configuration () 2022-04-18 12:10:51 +09:00
diagnostic.rs diagnostics: Use Vec<Tag> instead of Option<Vec<Tag>> 2022-09-20 16:28:00 +09:00
diff.rs Fix Clippy lints in tests () 2022-01-23 16:37:23 +09:00
graphemes.rs Improve Readability () 2022-06-01 12:01:37 -05:00
history.rs Improve Readability () 2022-06-01 12:01:37 -05:00
indent.rs Fix cargo doc warnings, and add GitHub action to ensure it () 2022-09-03 09:58:16 -05:00
lib.rs Split helix_core::find_root and helix_loader::find_local_config_dirs () 2022-09-23 17:04:07 +09:00
line_ending.rs Fix failing test with unicode-lines feature () 2022-08-17 10:37:34 +09:00
macros.rs Split parts of helix-term into helix-view. 2020-09-21 18:24:16 +09:00
match_brackets.rs Fix match brackets comment () 2021-12-24 07:27:31 +05:30
movement.rs Use requested direction for new textobject selection range 2022-10-03 10:44:08 -04:00
object.rs Fix edge-case in tree-sitter expand_selection selection command () 2022-06-25 13:12:30 -05:00
path.rs Add workspace and document diagnostics picker () 2022-06-30 18:16:18 +09:00
position.rs feat: make move_vertically aware of tabs and wide characters () 2022-06-22 01:36:36 +09:00
register.rs fixes showing the last prompt on empty input () 2022-06-24 17:14:48 +02:00
search.rs Jump to the next number on the line before incrementing () 2022-04-01 22:14:37 +09:00
selection.rs Use requested direction for new textobject selection range 2022-10-03 10:44:08 -04:00
shellwords.rs Enable shellwords for Windows (with escaping disabled) () 2022-06-22 01:48:01 +09:00
state.rs Reduce State use a bit further 2021-08-26 09:21:07 +09:00
surround.rs Improve Readability () 2022-06-01 12:01:37 -05:00
syntax.rs fix: map_err()? instead of unwrap () 2022-09-13 15:08:23 +09:00
test.rs Remove usage of format ident feature from tests () 2022-04-08 21:26:50 +05:30
textobject.rs Adjust m textobject description and minor code clarification () 2022-08-17 10:41:59 +09:00
transaction.rs core: transaction: Resolve some TODOs 2022-03-03 17:04:25 +09:00
wrap.rs add reflow command () 2022-05-02 23:24:22 +09:00