diff options
author | Daniel S Poulin | 2023-02-10 19:52:57 +0000 |
---|---|---|
committer | GitHub | 2023-02-10 19:52:57 +0000 |
commit | 6929a12f291fa5dee50cde9c89845b206b7333fd (patch) | |
tree | 2dae3acd1ff9064db957f504da52afb41564a613 /helix-term/src/ui/fuzzy_match | |
parent | af1157f37c04e158b96f3e2da7c641356b2219dc (diff) |
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>
Diffstat (limited to 'helix-term/src/ui/fuzzy_match')
0 files changed, 0 insertions, 0 deletions