Jeremy Soller
aece6486b9
Adapt to newer modit
2023-11-08 11:57:02 -07:00
Jeremy Soller
7a4cf29d4d
Editor: shaped and layout lines inserted by Action::Enter
2023-11-08 11:56:16 -07:00
Jeremy Soller
fa83b2efe9
Support NextChar and PreviousChar modit motions
2023-11-08 11:03:53 -07:00
Jeremy Soller
48675af079
Merge pull request #200 from MarijnS95/fontdb-0.16
...
Bump `fontdb` to `0.16`
2023-11-07 16:14:09 -07:00
Jeremy Soller
74c92e0419
ViEditor: switch to using modit
2023-11-07 15:57:00 -07:00
Jeremy Soller
659001dad8
editor-orbclient: fix scaling
2023-11-07 15:56:43 -07:00
Jeremy Soller
db0883b525
Editor: add GotoLine action
2023-11-07 15:56:31 -07:00
Marijn Suijten
2c987b6c96
deny: Disallow duplicate dependency versions again
...
Partially reverts 587bb5c98f .
2023-11-07 10:58:13 +01:00
Jeremy Soller
55d33cced5
Merge pull request #201 from rednaz1337/main
...
Don't use Emoji fonts as monospace fallback
2023-11-04 11:10:26 -06:00
hz
ed67add28a
Don't use Emoji fonts as monospace fallback
2023-11-04 14:31:18 +01:00
Jeremy Soller
e62fea5efd
SyntaxEditor: Support using two-face syntax definitions
2023-11-02 13:38:25 -06:00
Jeremy Soller
ac389d9eeb
SyntaxEditor: Allow retrieving syntax theme, optimize updates to theme
2023-11-02 12:55:45 -06:00
Jeremy Soller
241c4ca357
Buffer::set_rich_text: Only add attrs if they don't match the defaults
2023-11-02 10:24:28 -06:00
Jeremy Soller
6196d72266
Syntax highlight on demand
2023-11-02 09:57:24 -06:00
Jeremy Soller
ca35e1f429
ViEditor: redraw when passthrough mode changed
2023-11-01 14:17:37 -06:00
Jeremy Soller
7855dce09d
Add indent action and tab width
2023-11-01 13:31:53 -06:00
Jeremy Soller
d53932bd7c
Add function to set metrics and size simultaneously
2023-10-31 20:40:46 -06:00
Marijn Suijten
aecd4c777c
Bump fontdb to 0.16
...
We were getting duplicate `ttf-parser` dependencies because of
`rustybuzz` releasing its `ttf-parser 0.20` upgrade out of sync with
`fontdb 0.16`, whose update just got published.
2023-10-31 16:16:33 +01:00
Jeremy Soller
423fc22439
ViEditor: fix cursor and select positions
2023-10-27 13:17:56 -06:00
Jeremy Soller
ad10e7373b
Require default Attrs to be specified in set_rich_text
2023-10-27 13:08:27 -06:00
Jeremy Soller
c1e40363ab
ViEditor: implement search, capture commands
2023-10-20 14:11:18 -06:00
Jeremy Soller
7526fa9726
Editor: Request redraw/scroll on set_cursor
2023-10-20 13:54:54 -06:00
Jeremy Soller
37789ccdf7
ViEditor: expose current mode, add word stubs
2023-10-20 12:34:03 -06:00
Jeremy Soller
a29eefca5a
ViEditor: implement I and ^ using SoftHome
2023-10-20 10:26:17 -06:00
Jeremy Soller
4adcbf6784
Editor: add SoftHome action to skip blank space
2023-10-20 10:25:46 -06:00
Jeremy Soller
c6e4f9d04c
ViEditor: add passthrough mode (disables vi features)
2023-10-20 09:46:21 -06:00
Jeremy Soller
6d59885200
ViEditor: draw syntax background color
2023-10-20 09:45:25 -06:00
Jeremy Soller
163d8ef26e
0.10.0
2023-10-19 09:57:40 -06:00
Jeremy Soller
3f84eb7cb4
Merge pull request #192 from dovreshef/add_rendering_tests
...
Add image render tests
2023-09-27 08:54:16 -06:00
Dov Reshef
40c56e92b3
Cargo-deny: allow 'BSD-2-Clause', 'BSD-3-Clause' license for tiny-skia dev-dependency
2023-09-27 11:57:18 +03:00
Dov Reshef
7f684ae099
Rendering tests: use git lfs in github actions so the tests will succeed
2023-09-27 11:57:18 +03:00
Dov Reshef
8db03fe3cf
Add image render tests
...
Add tests that will match rendered words/paragraphs against reference
images.
Use env var `GENERATE_IMAGES` to write the initial reference images to
the repository.
2023-09-27 11:57:18 +03:00
Jeremy Soller
e2adc1e8da
Merge pull request #191 from dovreshef/fix_rtl_issue_190
...
Fix rendering of RTL words
2023-09-23 11:38:59 -06:00
Dov Reshef
ba96cceacc
Fix rendering of RTL words
2023-09-23 17:13:03 +03:00
Jeremy Soller
30398c2f0c
Merge pull request #188 from EHfive/use_self_cell
...
Use self_cell for creating self-referential struct
2023-09-18 12:25:02 -06:00
Jeremy Soller
4a6c388ce2
Merge pull request #187 from hecrj/respect-fontconfig-aliases
...
Respect `fontconfig` font aliases when enabled
2023-09-18 12:24:05 -06:00
Huang-Huang Bao
331710a16f
Use self_cell for creating self-referential struct
...
Remove indigenous unsafe self-referential implemention which has a lesser chance to be audited.
2023-09-19 02:16:23 +08:00
Héctor Ramón Jiménez
9d1d5a54c6
Respect fontconfig font aliases when enabled
2023-09-18 19:59:35 +02:00
Jeremy Soller
33706262f6
Update all dependencies
2023-09-18 08:57:01 -06:00
Jeremy Soller
a3f6ca35f1
Merge pull request #183 from EHfive/mark_msrv
...
Set MSRV to 1.65
2023-09-18 08:47:17 -06:00
Jeremy Soller
f388e5048e
Merge pull request #181 from hecrj/editor-fixes
...
Small `Editor` fixes
2023-09-18 08:46:53 -06:00
Jeremy Soller
d8a66ee781
Merge pull request #186 from EHfive/fix-editor-libcosmoc-vi
...
Fix building editor-libcosmic with vi feature
2023-09-18 08:46:29 -06:00
Héctor Ramón Jiménez
0bb02227de
Use attributes at cursor position for insertions in Editor
2023-09-17 22:37:18 +02:00
Huang-Huang Bao
68ec25d38a
Fix building editor-libcosmic with vi feature
...
The vi editor has no update_theme method, fix it with feature gate.
2023-09-17 11:52:34 +08:00
Héctor Ramón Jiménez
cb83458e7d
Rewrite PreviousWord logic in Editor with iterators
2023-09-16 16:18:58 +02:00
Héctor Ramón Jiménez
4aacd436c3
Fix NextWord action in Editor when line ends with word boundaries
2023-09-16 16:18:58 +02:00
Héctor Ramón Jiménez
797f1c7941
Set cursor_moved to true in Editor::insert_string
2023-09-16 16:18:58 +02:00
Héctor Ramón Jiménez
6235716beb
Make Edit::copy_selection immutable
2023-09-16 16:18:56 +02:00
Huang-Huang Bao
32c4fd2a0f
Set MSRV to 1.65
...
The MSRV was scanned by cargo-msrv, the result shows src/buffer.rs uses let - else statements which requires rust 1.65.0.
This also reformat the Cargo.toml.
2023-09-15 19:52:53 +08:00
Jeremy Soller
1eab951e27
Merge pull request #149 from tigregalis/set-rich-text
...
Add `Buffer::set_rich_text` method
2023-09-11 10:58:39 -06:00