Commit graph

30 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
4320ae6329
Use f32 instead of i32 for lengths
This allows users to use logical coordinates instead of physical ones.
2023-02-28 03:39:31 +01:00
Jeremy Soller
8cc988d374 Run cargo fmt 2023-01-04 20:03:03 -07:00
Jeremy Soller
ee54e7626b
Vi-style editor and other editor improvements (#40)
* WIP VI wrapper for editor

* WIP: block cursor

* Create Edit trait, run CI on all feature options

* Add prints describing build steps to ci.sh

* Custom rendering for Vi editor

* Clippy fixes

* More clippy fixes

* Show clippy results in CI

* Fix for Redox

* Fix clippy lint

* Add vi feature to enable vi-style editor

* Add escape to libcosmic text box
2022-11-15 12:26:59 -07:00
Jeremy Soller
ebd7c4058b
Fix editor-test compilation 2022-11-04 10:38:47 -06:00
Jeremy Soller
9a6a01a672
Add script to build everything and run all tests 2022-11-01 08:38:44 -06:00
Jeremy Soller
92cad6fe13
Decouple editing from buffer 2022-10-31 11:24:36 -06:00
Jeremy Soller
edf32ddd68
Fix editor-test 2022-10-27 11:22:57 -06:00
Jeremy Soller
3ece9236b3
Use Color in more places 2022-10-27 09:07:47 -06:00
Jeremy Soller
f133b1fca1
Improve API to set line attributes 2022-10-27 08:37:07 -06:00
Jeremy Soller
851e55d950
Add markdown sample 2022-10-26 15:37:26 -06:00
Jeremy Soller
119a570ee9
Cache font matches, use usize for line index, use font system for swash 2022-10-26 12:23:03 -06:00
Jeremy Soller
353a25b750 Reduce size of editor test 2022-10-25 22:10:05 -06:00
Jeremy Soller
e53956cb2d Fix scrolling with cursor 2022-10-25 20:49:15 -06:00
Jeremy Soller
59a4f8a4c1
Produce FontMatches inside of Buffer 2022-10-25 16:13:07 -06:00
Jeremy Soller
84f4381cdf
Add text attributes 2022-10-25 14:14:23 -06:00
Jeremy Soller
330a736136
Add function to get layout runs 2022-10-25 11:40:10 -06:00
Jeremy Soller
0f446368ca
Have TextBuffer own FontMatches 2022-10-25 11:10:44 -06:00
Jeremy Soller
c5e9412673
Do delete test using EGCs 2022-10-25 10:17:09 -06:00
Jeremy Soller
cc68315a3f
Disable character delete test until it can handle EGCs 2022-10-25 10:15:24 -06:00
Jeremy Soller
564dab009c Relicense MIT OR Apache 2.0 2022-10-24 12:58:15 -06:00
Jeremy Soller
1bce05d995
Fix UDHR test 2022-10-24 08:53:56 -06:00
Jeremy Soller
9b2bfbf3cb
Fix UDHR test and libcosmic compilation 2022-10-21 12:40:29 -06:00
Jeremy Soller
50dfd4e6ed
Performance improvements 2022-10-21 12:31:02 -06:00
Jeremy Soller
d5fde04d09
Re-enable parts of editor-test 2022-10-21 12:11:28 -06:00
Jeremy Soller
441112b5e2
More implementation of new buffer abstraction 2022-10-20 19:34:56 -06:00
Jeremy Soller
2bbacf5636
Log time to completion in editor-test 2022-10-20 09:16:39 -06:00
Jeremy Soller
a7ec42371c Begin updating to new buffer abstraction 2022-10-19 17:48:11 -06:00
Jeremy Soller
601547b83d
Improved backspace 2022-10-19 16:09:22 -06:00
Jeremy Soller
ac31fa8284
Improvements for tests 2022-10-19 15:31:09 -06:00
Jeremy Soller
a4e8d10c4f
Add test editor that tries to recreate text files 2022-10-19 15:12:38 -06:00