aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src/auto_pairs.rs
Commit message (Collapse)AuthorAge
* Work on moving code over to LineEnding instead of assuming '\n'.Nathan Vegdahl2021-06-20
| | | | Also some general cleanup and some minor fixes along the way.
* Movement fixes, refactor and unit test suite (#217)PabloMansanet2021-06-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add convenience/clarity wrapper for Range initialization * Test horizontal moves * Add column jumping tests * Add failing movement conditions for multi-word moves * Refactor skip_over_next * Add complex forward movement unit tests * Add strict whitespace checks and edge case tests * Restore formatting * Remove unused function * Add empty test case for deletion and fix nth_prev_word_boundary * Add tests for backward motion * Refactor word movement * Address review comments and finish refactoring backwards move * Finish unit test suite * Fmt pass * Fix lint erors * Clean up diff restoring bad 'cargo fmt' actions * Simplify movement closures (thanks Pickfire) * Fmt pass * Replace index-based movement with iterator based movement, ensuring that each move incurs a single call to the RopeSlice API * Break down tuple function * Extract common logic to all movement functions * Split iterator helpers away into their own module * WIP reducing clones * Operate on spans * WIP simplifying iterators * Simplify motion helpers * Fix iterator * Fix all unit tests * Refactor and simplify * Simplify fold
* When calculating a new selection, we need to take newly inserted text into ↵Blaž Hrastnik2021-05-15
| | | | account.
* Implement pair expansion when pressing new line between bracket pairs.Blaž Hrastnik2021-05-06
| | | | | | | | | | From: {|} To: { | }
* auto_pairs: move if cursor, extend if selection.Blaž Hrastnik2021-04-22
|
* pairs: Use token utf8 lengths instead of 1.Blaž Hrastnik2021-04-06
|
* wip: Hooks & trigger characters for completion/signature_help.Blaž Hrastnik2021-03-24
|
* clippy lintBlaž Hrastnik2021-03-24
|
* Fix a scrolling crash where it would jump past the end of the buffer.Blaž Hrastnik2021-03-22
|
* Implement m / match_brackets (using tree sitter).Blaž Hrastnik2021-03-22
|
* Implement auto-pairs behavior for open and close.Blaž Hrastnik2021-03-22