aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src
Commit message (Collapse)AuthorAge
...
* fix small terminal size panic with info popup (#563)Kirawi2021-08-09
| | | | | | | * fix small terminal size panic with info popup * remove unused enumerator * fix subtraction overflow panic
* config: Rename [terminal] to [editor] and pass it into EditorBlaž Hrastnik2021-08-08
|
* Resolve a couple TODOsBlaž Hrastnik2021-08-08
|
* Implement alt-( and alt-) to rotate selection contentsBlaž Hrastnik2021-08-08
|
* Do not shutdown lsp during claim_termLuctius2021-08-07
| | | | Fixes a bug where the language server is told to shutdown directly after application start.
* ui: menu: Allow wrapping around on ctrl-p/shift tabBlaž Hrastnik2021-08-06
|
* Implement selection rotation with `(` and `)`Blaž Hrastnik2021-08-06
|
* Exit extend after yankIvan Tham2021-08-05
| | | | Yank should proceed with normal mode.
* Refactor copy selection verticallyBlaž Hrastnik2021-08-05
|
* Vertical SelectionCor2021-08-05
|
* Add `goto_last_line` command, and bind it to `ge`.Nathan Vegdahl2021-08-04
| | | | Resolves #529.
* Use an empty stream on Windows to remove duplicationBlaž Hrastnik2021-08-03
|
* Add ctrl-z to suspendIvan Tham2021-08-03
|
* Use nicer filepaths instead of URIs in goto pickerBlaž Hrastnik2021-08-03
|
* 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>
* Move indent-style code into `helix_core::indent`.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
| |\
| * \ Merge branch 'master' into great_line_ending_and_cursor_range_cleanupNathan 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
| | | | |
| * | | | 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
| | | | |
| * | | | Fixes for misc bugs with view movement.Nathan Vegdahl2021-07-21
| | | | |
| * | | | Use new `Range::line_range()` method in more places, as appropriate.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 extend line behavior.Nathan Vegdahl2021-07-20
| | | | |
| * | | | 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.
| * | | | Properly fix `last_line` view calculation.Nathan Vegdahl2021-07-19
| | | | | | | | | | | | | | | | | | | | | | | | | Turned out to be simpler than I thought. Didn't even need to change the other use-sites.
| * | | | Fix last line number being drawn in the status bar.Nathan Vegdahl2021-07-19
| | | | |
| * | | | Merge branch 'master' into great_line_ending_and_cursor_range_cleanupNathan Vegdahl2021-07-19
| |\ \ \ \
| * | | | | Update word selection/navigation to work with gap indexing.Nathan Vegdahl2021-07-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also tweaked some of the existing behavior that seemed inconsistent and/or buggy. It's mostly identical, just a few corner cases are different.