helix-mirror/helix-term/tests/test
Daniel S Poulin 6929a12f29
Make m textobject look for pairs enclosing selections (#3344)
* Make `m` textobject look for pairs enclosing selections

Right now, this textobject only looks for pairs that surround the
cursor. This ensures that the pair found encloses each selection, which
is likely to be intuitively what is expected of this textobject.

* Simplification of match code

Co-authored-by: Michael Davis <mcarsondavis@gmail.com>

* Adjust logic for ensuring surround range encloses selection

Prior, it was missing the case where the start of the selection came
before the opening brace. We also had an off-by-one error where if the
end of the selection was on the closing brace it would not work.

* Refactor to search for the open pair specifically to avoid edge cases

* Adjust wording of autoinfo to reflect new functionality

* Implement tests for surround functionality in new integration style

* Fix handling of skip values

* Fix out of bounds error

* Add `ma` version of tests

* Fix formatting of tests

* Reduce indentation levels for readability, and update comments

* Preserve each selection's direction with enclosing pair surround

* Add test case for multiple cursors resulting in overlap

* Mark known failures as TODO

* Make tests multi-threaded or they fail

* Cargo fmt

* Fix typos in integration test comments

---------

Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2023-02-10 13:52:57 -06:00
..
auto_indent.rs disable lsp in integration tests 2023-02-02 14:53:18 -05:00
auto_pairs.rs flush writes on force quit (#4397) 2022-10-21 13:28:29 +09:00
commands.rs Fix the infinite loop when copying the cursor to the top of the file (#5888) 2023-02-09 23:28:33 +09:00
helpers.rs Check for external file modifications when writing (#5805) 2023-02-08 10:09:19 -06:00
movement.rs Make m textobject look for pairs enclosing selections (#3344) 2023-02-10 13:52:57 -06:00
prompt.rs flush writes on force quit (#4397) 2022-10-21 13:28:29 +09:00
splits.rs Fix transaction composition order in History::changes_since (#4981) 2022-12-03 12:09:08 +09:00
write.rs Check for external file modifications when writing (#5805) 2023-02-08 10:09:19 -06:00