Commit graph

11 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
b24b94d827
Handle motions when a selection is present in text::Editor 2023-09-14 14:18:49 +02:00
Héctor Ramón Jiménez
e6c2db8a93
Fix Cursor::Caret position on lines that wrap on whitespace 2023-09-14 00:47:04 +02:00
Héctor Ramón Jiménez
ab020383b9
Fix scrolling offset for Cursor::Selection 2023-09-14 00:41:15 +02:00
Héctor Ramón Jiménez
f14ef7a606
Fix clippy lints 2023-09-13 16:31:56 +02:00
Héctor Ramón Jiménez
f4c51a96d5
Introduce Motion concept in core::text::editor 2023-09-13 16:11:43 +02:00
Héctor Ramón Jiménez
40eb648f1e
Implement Cursor::Selection calculation in Editor::cursor 2023-09-13 15:00:33 +02:00
Héctor Ramón Jiménez
a28ed825c1
Fix subline positioning in Editor::cursor 2023-09-12 20:57:46 +02:00
Héctor Ramón Jiménez
4389ab9865
Fix cursor offset with Affinity::After at the end of lines in Editor::cursor 2023-09-12 18:27:30 +02:00
Héctor Ramón Jiménez
abab144857
Return Cursor::Caret if selection matches cursor position in Editor::cursor 2023-09-12 18:20:02 +02:00
Héctor Ramón Jiménez
1455911b63
Add Enter variant to Action in text::Editor 2023-09-12 15:03:23 +02:00
Héctor Ramón Jiménez
6448429103
Draft Editor API and TextEditor widget 2023-09-12 14:51:00 +02:00