aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* fix: Map all selections on transaction.applyBlaž Hrastnik2021-07-31
|
* Add more unit tests for pos_at_screen_coords.Nathan Vegdahl2021-07-31
| | | | | Specifically, test cases for double-width characters and grapheme clusters.
* Update popup and diagnostics in onedark themeGokul Soumya2021-07-30
|
* mouse: Remove verify_screen_coords, refactor primary selection modificationBlaž Hrastnik2021-07-30
|
* Remove the jumpBlaž Hrastnik2021-07-30
|
* Mouse selection support (#509)Dmitry Sharshakov2021-07-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Initial mouse selection support Signed-off-by: Dmitry Sharshakov <d3dx12.xx@gmail.com> * Disable mouse event capture if editor crashes Signed-off-by: Dmitry Sharshakov <d3dx12.xx@gmail.com> * Translate screen coordinates to view position Signed-off-by: Dmitry Sharshakov <d3dx12.xx@gmail.com> * Select full lines by dragging on line numbers Signed-off-by: Dmitry Sharshakov <d3dx12.xx@gmail.com> * editor: don't register dragging as a jump Signed-off-by: Dmitry Sharshakov <d3dx12.xx@gmail.com> * Count graphemes correctly Signed-off-by: Dmitry Sharshakov <d3dx12.xx@gmail.com> * Do not select lines when dragging on the line number bar Signed-off-by: Dmitry Sharshakov <d3dx12.xx@gmail.com> * Split out verify_screen_coords Signed-off-by: Dmitry Sharshakov <d3dx12.xx@gmail.com> * Do not iterate over the graphemes twice Signed-off-by: Dmitry Sharshakov <d3dx12.xx@gmail.com> * Switch view by clicking on it Signed-off-by: Dmitry Sharshakov <d3dx12.xx@gmail.com> * Add disable-mouse config option Signed-off-by: Dmitry Sharshakov <d3dx12.xx@gmail.com> * Support multiple selections with mouse Signed-off-by: Dmitry Sharshakov <d3dx12.xx@gmail.com> * Remove unnecessary check Signed-off-by: Dmitry Sharshakov <d3dx12.xx@gmail.com> * Refactor using match expression Co-authored-by: Gokul Soumya <gokulps15@gmail.com> Signed-off-by: Dmitry Sharshakov <d3dx12.xx@gmail.com> * Rename local variable Signed-off-by: Dmitry Sharshakov <d3dx12.xx@gmail.com> * Rename mouse option Signed-off-by: Dmitry Sharshakov <d3dx12.xx@gmail.com> * Refactor code Signed-off-by: Dmitry Sharshakov <d3dx12.xx@gmail.com> * Fix dragging selection Signed-off-by: Dmitry Sharshakov <d3dx12.xx@gmail.com> * Fix crash when clicking past last line Signed-off-by: Dmitry Sharshakov <d3dx12.xx@gmail.com> * Count characters better Signed-off-by: Dmitry Sharshakov <d3dx12.xx@gmail.com> * Remove comparison not needed anymore Signed-off-by: Dmitry Sharshakov <d3dx12.xx@gmail.com> * Validate coordinates before resolving position Signed-off-by: Dmitry Sharshakov <d3dx12.xx@gmail.com> * Tidy up references to editor tree Signed-off-by: Dmitry Sharshakov <d3dx12.xx@gmail.com> * Better way to determine line end and avoid overflow Signed-off-by: Dmitry Sharshakov <d3dx12.xx@gmail.com> * Fix for last line Signed-off-by: Dmitry Sharshakov <d3dx12.xx@gmail.com> * Add unit tests for text_pos_at_screen_coords Signed-off-by: Dmitry Sharshakov <d3dx12.xx@gmail.com> Co-authored-by: Gokul Soumya <gokulps15@gmail.com>
* Remove embed_runtime featureBlaž Hrastnik2021-07-30
| | | | It's no longer practical to maintain. Closes #451
* Move indent-style code into `helix_core::indent`.Nathan Vegdahl2021-07-30
|
* Give default document a single line ending.Nathan Vegdahl2021-07-30
|
* Fix incorrect behavior of `find_char` command and friends.Nathan Vegdahl2021-07-30
| | | | | | The non-extending variants of the commands weren't selecting from the range head. Fixes #527.
* Fixes for new clippy lints in Rust 1.54.Nathan Vegdahl2021-07-29
|
* Merge pull request #376 from cessen/great_line_ending_and_cursor_range_cleanupBlaž Hrastnik2021-07-29
|\ | | | | The Great Line Ending & Cursor Range Cleanup
| * Fix typo in comment.Nathan Vegdahl2021-07-29
| |
| * Fix bug with `/` searching after non-ascii characters.Nathan Vegdahl2021-07-28
| | | | | | | | | | Forgot to convert from char indices to byte indices before passing to the regex engine.
| * Enforce cursor/selection invariants in one place.Nathan Vegdahl2021-07-28
| | | | | | | | Rather than per-command like before.
| * Merge branch 'master' into great_line_ending_and_cursor_range_cleanupNathan Vegdahl2021-07-28
| |\
| * | Minor cleanup of the vertical movement code.Nathan Vegdahl2021-07-27
| | |
| * | Use `match` for branching on the `Direction` enum in more places.Nathan Vegdahl2021-07-27
| | |
| * | Add unit tests for some of the new `Range` methods.Nathan Vegdahl2021-07-27
| | |
| * | Improve `Range` documentation and organization.Nathan Vegdahl2021-07-27
| | |
| * | Merge branch 'master' into great_line_ending_and_cursor_range_cleanupNathan Vegdahl2021-07-26
| |\ \
| * | | Address some PR comments.Nathan Vegdahl2021-07-26
| | | |
| * | | Start searches at the right side of the block cursor.Nathan Vegdahl2021-07-26
| | | |
| * | | Collect some common patterns into methods on `Range`.Nathan Vegdahl2021-07-26
| | | |
| * | | Switch to a cleaner range-head moving abstraction.Nathan Vegdahl2021-07-24
| | | | | | | | | | | | | | | | Also fix a bunch of bugs related to it.
| * | | Fixed find_till_char and find_char commands.Nathan Vegdahl2021-07-24
| | | | | | | | | | | | | | | | | | | | They worked correctly when extending, but not for normal cursor movement.
| * | | Fix surround replace command replacing the wrong position on the right.Nathan Vegdahl2021-07-24
| | | |
| * | | Merge branch 'master' into great_line_ending_and_cursor_range_cleanupNathan Vegdahl2021-07-24
| |\ \ \
| * | | | Put selection in separate variable in commands code.Nathan Vegdahl2021-07-24
| | | | |
| * | | | Fix append mode, and make insertion always happen at head of range.Nathan Vegdahl2021-07-23
| | | | |
| * | | | Fix ocassional panic when matching brackets.Nathan Vegdahl2021-07-23
| | | | |
| * | | | Revert display-width-based vertical cursor movement.Nathan Vegdahl2021-07-22
| | | | | | | | | | | | | | | | | | | | Still needs to be done, but should be part of a separate PR.
| * | | | Calculate the line that the range head is on correctly.Nathan Vegdahl2021-07-22
| | | | |
| * | | | Use `Range::line_range()` in some more places I missed.Nathan Vegdahl2021-07-22
| | | | |
| * | | | Fix append mode not editing correctly.Nathan Vegdahl2021-07-21
| | | | | | | | | | | | | | | | | | | | | | | | | This is currently a bit of a hack, and still doesn't behave quite how we probably want. Left a TODO.
| * | | | Fix yank not working with internally zero-width ranges.Nathan Vegdahl2021-07-21
| | | | |
| * | | | Fix selections not being modified quite correctly with text edits.Nathan Vegdahl2021-07-21
| | | | |
| * | | | Don't insert a final line ending on file load/reload.Nathan Vegdahl2021-07-21
| | | | |
| * | | | Fixes for misc bugs with view movement.Nathan Vegdahl2021-07-21
| | | | |
| * | | | Merge branch 'master' into great_line_ending_and_cursor_range_cleanupNathan Vegdahl2021-07-20
| |\ \ \ \
| * | | | | Use new `Range::line_range()` method in more places, as appropriate.Nathan Vegdahl2021-07-20
| | | | | |
| * | | | | Fix comment toggle command also sometimes toggling the next line.Nathan Vegdahl2021-07-20
| | | | | |
| * | | | | Fix various bugs related to goto-end-of-line command.Nathan Vegdahl2021-07-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This also fixes a bug with `Selection::normalize()`, that could result in an out-of-bounds primary index.
| * | | | | Fix line-wise `p` pasting before the current line instead of after.Nathan Vegdahl2021-07-20
| | | | | |
| * | | | | Fix incorrect line hihglight when a selection is at the end of a line.Nathan Vegdahl2021-07-20
| | | | | |
| * | | | | Make search work a little nicer when there are already selections.Nathan Vegdahl2021-07-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Specifically, if you have text like "aaaaaaaaa" and you search for "a", the new behavior will actually progress through all of the "a"s, whereas the previous behavior would be stuck on a single one.
| * | | | | Fix `Selection::push()` to make the pushed range primary.Nathan Vegdahl2021-07-20
| | | | | | | | | | | | | | | | | | | | | | | | Apparently I accidentally deleted that behavior in the cleanup.
| * | | | | Fix extend line behavior.Nathan Vegdahl2021-07-20
| | | | | |
| * | | | | Handle edge case in `range_to_target()` correctly.Nathan Vegdahl2021-07-19
| | | | | |
| * | | | | Fixed primary cursor position calculation to use 1-width semantics.Nathan Vegdahl2021-07-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This had a bunch of knock-on effects that were buggy, such as bracket match highlighting.