aboutsummaryrefslogtreecommitdiff
path: root/src/text/rich.rs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* feat(selectable): draft implementation of selectable widgetalex-ds132025-12-301-22/+63
|
* feat: implement selection across bounds with hacky copy solutionalex-ds132025-12-301-4/+86
| | | | | | | | | | | - This commit implements the selection across bounds, which is it allows a selection to start out of bounds and allows a selection that started on another widget to be dragged in bounds and select multiple different widgets. However in order to get the copy working on `ctrl/cmd + c` it resorts to a hacky solution where each widget clears the clipboard when a drag movement comes into its bounds and when the user presses `ctrl/cmd + c` it appends it's selected text to the clipboard.
* fix: graphemes with multi codepoint on multiple visual linesalex-ds132025-12-291-47/+79
| | | | | | | - The logic for graphemes with multiple codepoints was working when they were on a single visual line, however on multiple visual lines the lines after the one that contained such grapheme weren't taking that into consideration.
* fix: select graphemes with multi codepoints properlyalex-ds132025-12-291-14/+24
| | | | | | | | | - We continue to use the graphemes index for the selection ends, however when calculating the selection rectangles we now check if the visual line had any glyph with `start` and `end` index bigger than 1 before or within the range and update the range accordingly. This way all the code that checks for word boundaries when selecting by words still functions properly.
* fix: outbounds selecting when inside a scrollablealex-ds132025-12-291-1/+1
| | | | | | | - If we were dragging a selection and move the mouse out of bounds of the text widget and an the same time it went out of bounds of a parent scrollable, the cursor would be levitated so we weren't getting it's cursor position. Now we land the cursor before checking the position.
* fix: take visual bounds into consideration when text is centeredalex-ds132025-12-291-4/+53
|
* feat: correct selection on wrapped lines and allow mouse drag out of boundsalex-ds132025-12-291-156/+131
|
* chore: add missing hint_factor fields (iced update)Polesznyák Márk2025-12-291-2/+8
|
* chore: update as necessary for upstream iced changesPolesznyák Márk2025-12-081-6/+3
|
* chore: update as necessary for upstream iced changesPolesznyák Márk2025-11-211-2/+2
|
* feat: implement double-click + drag by-word selectionPolesznyák Márk2025-11-121-9/+16
|
* feat(rich): add `on_link_hover` and `on_hover_lost`Polesznyák Márk2025-11-031-12/+63
|
* feat: clean up debugging code, add multi-line fix to `Rich`Polesznyák Márk2025-10-261-25/+121
|
* feat: implement triple-click + drag by-line selectionPolesznyák Márk2025-10-211-13/+24
|
* feat: add selectable `Rich` widget with an examplePolesznyák Márk2025-10-191-0/+841
|
* feat: initial commitPolesznyák Márk2025-10-181-0/+0