Commit graph

81 commits

Author SHA1 Message Date
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
6536231dfc
Fix no_std compilation 2023-11-15 09:09:47 -07:00
Jeremy Soller
38bed64ef1
Use cosmic_undo_2 instead of undo_2 for improved compiler support 2023-11-15 09:09:46 -07:00
Jeremy Soller
56f71ef973
Shape if needed to process left/right commands 2023-11-14 13:43:33 -07:00
Jeremy Soller
abf58279be
Implement TextObject::Search 2023-11-14 13:23:00 -07:00
Jeremy Soller
bab94a7823
Join together vim changes 2023-11-14 12:28:56 -07:00
Jeremy Soller
0eefb12608
Editor: Fix indent/unindent empty lines 2023-11-14 09:03:36 -07:00
Jeremy Soller
4c85a6be72
ViEditor: Track when changed 2023-11-13 14:46:46 -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
e942e649ed
Support LeftInLine and RightInLine motions 2023-11-13 11:10:05 -07:00
Jeremy Soller
b3c5f14e47
Remove two-face (it can be added by user of library) 2023-11-13 10:42:03 -07:00
Jeremy Soller
d001e5c09e Implement all modit motions required 2023-11-12 19:01:20 -07:00
Jeremy Soller
fbc33c183a
Convert more actions to modit keys, fix passthrough 2023-11-10 15:53:19 -07:00
Jeremy Soller
ddcd3c8795
Support search 2023-11-10 12:23:00 -07:00
Jeremy Soller
e8dd8ec7d1
Support modit::Key enum 2023-11-10 09:47:45 -07:00
Jeremy Soller
9efcc41a5a
Remove unused import and implemented todo 2023-11-09 09:35:04 -07:00
Jeremy Soller
c79c132694
Editor: Fix SoftHome 2023-11-08 15:32:11 -07:00
Jeremy Soller
d7e066c105
Support more modit events 2023-11-08 14:23:13 -07:00
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
74c92e0419 ViEditor: switch to using modit 2023-11-07 15:57:00 -07:00
Jeremy Soller
db0883b525 Editor: add GotoLine action 2023-11-07 15:56:31 -07: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
Jeremy Soller
423fc22439
ViEditor: fix cursor and select positions 2023-10-27 13:17:56 -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
Héctor Ramón Jiménez
0bb02227de
Use attributes at cursor position for insertions in Editor 2023-09-17 22:37:18 +02: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
John Nunley
440d24ffa0
Add more Debug implementations
I generally like to implement Debug on these kind of types.
2023-07-07 21:44:21 -07:00
Jeremy Soller
edd9eb8b23
Merge branch 'offsetting-and-scaling' 2023-07-06 06:47:34 -06:00
Jeremy Soller
85ac473056
Fix tests 2023-07-06 06:47:12 -06:00