helix-mods/helix-term/src/keymap
Szabin 70e4cdbd8e
Add command to merge non-consecutive ranges (#7053)
* Add command for merging non-consecutive ranges

* Add `merge_selections` command to book

* Simplify `merge_ranges`

Heeded the advice of @the-mikedavis to stop iterating over all ranges and simply merge the first and the last range, as the invariants of `Selection` guarantee that the list of ranges is always sorted and never empty.

* Clarify doc comment of `merge_ranges`
2023-05-20 01:31:39 +02:00
..
default.rs Add command to merge non-consecutive ranges (#7053) 2023-05-20 01:31:39 +02:00
macros.rs Add refresh-config and open-config command (#1803) 2022-03-25 18:05:20 +09:00