JL710
4f31665805
fix for no_std
2024-07-19 19:28:25 -06:00
JL710
05374aa34d
implement Clone for Editor
2024-07-19 19:28:25 -06:00
Pavel Strakhov
a3a6262e5d
Add Edit::cursor_position
2024-06-10 10:39:58 -06:00
Jeremy Soller
3c94352f3f
Support expanding tabs
2024-06-10 08:12:42 -06:00
Jeremy Soller
46d60a3723
Implement Clone for Buffer and use Arc::make_mut
2024-01-17 13:31:03 -07:00
Jeremy Soller
0a11fb1045
Make Editor::buffer_ref accessible, rename lifetimes
2024-01-17 13:31:03 -07:00
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
Jeremy Soller
94e6cdefda
Add select by word and double/triple click actions
2023-12-12 10:29:14 -07:00
Jeremy Soller
de6f2c7fbe
Editor: make delete_range and insert_at methods public
2023-12-05 10:04:50 -07:00
Jeremy Soller
cbd567d238
Support line selection
2023-11-28 10:42:50 -07:00
Jeremy Soller
7d21045b2f
Add primitive auto indent
2023-11-16 08:59:43 -07:00
Jeremy Soller
1207fd6d80
Edit: use u16 for tab_width
2023-11-16 08:38:48 -07:00
Jeremy Soller
19ae07bd3b
Fix some clippy lints
2023-11-15 09:21:13 -07:00
Jeremy Soller
5352fdee94
Undo/redo support in ViEditor
2023-11-13 13:31:06 -07:00
Jeremy Soller
7830f4107c
Enable external change tracking
2023-11-13 12:37:07 -07:00
Jeremy Soller
db0883b525
Editor: add GotoLine action
2023-11-07 15:56:31 -07:00
Jeremy Soller
7855dce09d
Add indent action and tab width
2023-11-01 13:31:53 -06:00
Jeremy Soller
4adcbf6784
Editor: add SoftHome action to skip blank space
2023-10-20 10:25:46 -06:00
Héctor Ramón Jiménez
6235716beb
Make Edit::copy_selection immutable
2023-09-16 16:18:56 +02:00
Dima Rets
6dba04df08
allow setting cursor
2023-06-10 12:53:34 +01:00
Edgar Geier
3331f41d7a
Improve documentation
2023-03-12 10:39:57 +01: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
Jeremy Soller
8cc988d374
Run cargo fmt
2023-01-04 20:03:03 -07:00
Audrey Dutcher
8e09a128bb
Many upgrades for Editor
2023-01-04 18:41:26 -07:00
Audrey Dutcher
39d3219df9
Add Editor::insert_text
2023-01-04 18:41:26 -07:00
Jeremy Soller
2342bf0eae
Add more vi commands
2022-11-21 15:49:12 -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