Jeremy Soller
cbbf6f0d8f
Allow Editor to use reference or Arc of Buffer
2024-01-17 13:31:03 -07:00
Jeremy Soller
ae030e9885
Move color and x_opt out of Cursor
2024-01-17 13:31:03 -07:00
Jeremy Soller
d0b4b4635e
Refactor of scroll and shaping
...
- Scroll is identified by line index and layout index, instead of just
layout index
- Shaping has the option to prune, where caches outside of the scroll
view are cleared
- Syntax editor no longer requires layout of all lines, only of lines
inside scroll
- BufferLine has a metadata field that can be used by other abstractions
to know when text was changed
2024-01-17 13:31:03 -07:00
Jeremy Soller
018a2e9d2a
Move cursor motions to new Motion enum, move handling to Buffer
2024-01-17 13:31:03 -07:00
tigregalis
053efa77b6
remove todo comment
2023-06-09 11:26:08 +08:00
tigregalis
6e336ad1cd
replace use of str::lines with BidiParagraphs
2023-06-09 11:26:07 +08:00
Jeremy Soller
f101f5ca93
Merge branch 'example-deps' of https://github.com/geieredgar/cosmic-text into geieredgar-example-deps
2023-03-17 18:18:20 -06:00
Edgar Geier
384c5c1fdc
Remove Mutex from FontSystem
2023-03-12 10:39:56 +01:00
Edgar Geier
46e9ef0246
Make BorrowedWithFontSystem borrow FontSystem mutably
2023-03-12 10:39:56 +01:00
Edgar Geier
057b5b6fa9
Extract borrow of FontSystem from Buffer
2023-03-12 10:39:54 +01:00
Edgar Geier
d59fd3f46b
Update example dependencies
2023-03-06 22:43:25 +01:00
Jeremy Soller
bd27ca8ad8
Merge pull request #88 from geieredgar/clippy-fixes
...
Fix clippy warnings
2023-03-02 14:53:08 -07:00
Edgar Geier
6c501c6640
Fix clippy warnings
2023-03-01 22:58:41 +01:00
Edgar Geier
4e93853765
Remove lifetime from SwashCache
2023-03-01 22:41:59 +01:00
Jeremy Soller
2b991129e3
Fix editor-test
2023-03-01 11:46:41 -07:00
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