Commit graph

181 commits

Author SHA1 Message Date
Michael Sippel 3968baffe1
wip 2023-07-08 08:21:10 +02:00
Michael Sippel 66c6478124
context: add meta_chars collection 2023-05-19 11:26:05 +02:00
Michael Sippel 52efcfc6c6
type term: change display parenthesis to <>, allow \n to as newline character literal 2023-05-19 11:21:29 +02:00
Michael Sippel b0f30e9198
wip: TypeTermEditor 2023-04-03 14:39:02 +02:00
Michael Sippel bdc19c33de remove deprecated Commander traits 2023-03-25 09:01:05 +01:00
Michael Sippel b6bd888d3d
node: ViewPort for editor, cleanup PTYListEditor
- move split/join functions into ListEditor
- separate PTYListStyle and PTYListController
2023-03-25 09:00:54 +01:00
Michael Sippel 1575fa756e
ReprTree: add from_char() 2023-03-25 08:49:19 +01:00
Michael Sippel 17b58e6bca
TypeTerm: type-ladder arguments, variables & char-literals 2023-03-25 08:46:42 +01:00
Michael Sippel f1eedad3fe
pty editor: more resilient handling of results in join functions 2023-03-02 02:42:30 +01:00
Michael Sippel fb20fb94e7
fix flickering in some terminals 2023-03-02 02:41:22 +01:00
Michael Sippel 4b6cc1ee55
implement first typelader-compatibility algorithm 2023-02-27 21:31:19 +01:00
Michael Sippel 57682826f8
diagnostics: add make_info 2023-02-26 19:40:35 +01:00
Michael Sippel 2bef092859
ansi parser: stop on zero byte 2023-02-24 22:51:53 +01:00
Michael Sippel 4acce3921d
ObjCommander: return TreeNavResult 2023-02-24 19:26:46 +01:00
Michael Sippel 73499e0ab3
style 2023-02-24 18:44:47 +01:00
Michael Sippel b6929f9463
node: get_data_port/get_data_view 2023-02-24 18:44:01 +01:00
Michael Sippel aafc9235ab
list editor: avoid empty lists when splitting at multiple levels
adds compatibility to load shell pipeline from file
2023-02-21 15:17:39 +01:00
Michael Sippel c2a9d8e3bd
impl ObjCommander, simplify type creation & data retrieval from node" 2023-02-20 03:45:53 +01:00
Michael Sippel cf313727a6
further refactor pty-list, node morphisms, commander 2023-02-18 04:15:47 +01:00
Michael Sippel 2bdea3e2a3
upgrade node with morphisms 2023-02-17 00:59:07 +01:00
Michael Sippel 6f942c8940
factor out r3vi and shell crates 2023-02-16 15:11:22 +01:00
Michael Sippel d43d99c6d3
PTYListEditor: move style into node constructor 2023-02-11 12:03:37 +01:00
Michael Sippel 4afdb61b87
type dict: add get_typename 2023-02-11 11:54:30 +01:00
Michael Sippel 6867297eea
singleton2sequence: value only at first element
fixes chain with singleton tosequence filter
2023-01-07 13:13:27 +01:00
Michael Sippel 47b8900adc
implement tree cursor widget as projection pipeline 2023-01-07 05:14:46 +01:00
Michael Sippel a9550600f4
singleton: add flatten() & to_sequence() 2023-01-07 04:30:58 +01:00
Michael Sippel 0edbd748a5
further file renaming 2023-01-02 18:49:32 +01:00
Michael Sippel 280796ab17
move type-system & context into separate module 2023-01-02 13:18:55 +01:00
Michael Sippel 97000cab7a
move toy widgets from shell into lib 2023-01-01 16:12:20 +01:00
Michael Sippel 883cd01f99
wip 2022-12-21 01:55:42 +01:00
Michael Sippel 7a24111f08
fix warnings 2022-12-18 01:39:01 +01:00
Michael Sippel 35498a2fa7
begin refactor to node-struct and obj-commmander 2022-12-18 01:20:17 +01:00
Michael Sippel bcbeb2298a
allow nested contexts
improve make_editor
2022-11-19 01:45:57 +01:00
Michael Sippel bed4bc329b
cleanup editor constructors 2022-11-18 00:21:29 +01:00
Michael Sippel 2db92ef6aa
sum editor: forward diagnostics 2022-11-18 00:13:02 +01:00
Michael Sippel 0a8c77772c
replace TerminalTreeEditor with Nested trait 2022-11-13 15:26:25 +01:00
Michael Sippel 97624e1a8e
char editor: dont exit on invalid input 2022-11-05 23:44:44 +01:00
Michael Sippel 1588375e7d
fix style 2022-11-05 23:44:16 +01:00
Michael Sippel 96e47c3cd5
sum editor 2022-11-05 22:33:46 +01:00
Michael Sippel 294013de02 sequence enumerate(): rename variable 2022-11-05 11:57:06 +01:00
Michael Sippel 4b8b857134 commander: display error on invalid symbol 2022-11-05 11:57:06 +01:00
Michael Sippel 912f08e914 grid area: correctly convert empty set to empty range 2022-11-05 11:57:06 +01:00
Michael Sippel 06c90197da product editor: update diagnostics view 2022-11-05 11:57:06 +01:00
Michael Sippel 8eea49a688 grid flatten: fix corner case when chunk shrinks to zero area
wrong integer cast caused endless iterator
2022-11-05 11:57:06 +01:00
Michael Sippel 273f20d3db pty list: add split key 2022-11-05 11:57:06 +01:00
Michael Sippel b2f437d7df add diagnostics; contanis some bugs 2022-11-05 11:57:06 +01:00
Michael Sippel 906cc51329 sequence: add enumerate() 2022-11-05 11:57:06 +01:00
Michael Sippel 5dd4773205 product editor: fix out-of-bounds in edge case 2022-11-05 11:57:06 +01:00
Michael Sippel 096e343f25 improve colors 2022-11-05 11:57:06 +01:00
Michael Sippel 21f7043ef0 product editor: fix background color highlighting
introduce update_segment() to simplify updating of meta information of segments
2022-11-05 11:57:06 +01:00
Michael Sippel 507887535f list nav: catch some out of bounds errors 2022-11-05 11:57:06 +01:00
Michael Sippel 4e02b41a77 shell: first commander prototype 2022-11-05 11:56:56 +01:00
Michael Sippel 55eb594521
product editor: grid layout 2022-06-26 00:49:35 +02:00
Michael Sippel d8e8f763a6
cleanup product editor 2022-06-24 15:54:05 +02:00
Michael Sippel 5fef75e24f
listeditor cleanup 2022-06-19 23:13:21 +02:00
Michael Sippel b0b91af2ad
sequence decorators 2022-06-17 18:20:13 +02:00
Michael Sippel 87ed4ef1ca
buffers: store inner viewport instead of cast 2022-06-17 18:19:04 +02:00
Michael Sippel 0ded47410c
product editor: move tree nav to separate file 2022-05-23 22:51:23 +02:00
Michael Sippel f118eada34
product editor 2022-05-08 23:30:49 +02:00
Michael Sippel 61c2d55441
IndexArea: start at (0,0) for empty range 2022-02-13 16:40:05 +01:00
Michael Sippel 8239b1e8d5 singleton2index: dont use Full area 2022-02-10 21:17:21 +01:00
Michael Sippel 31a8202dd7
IndexArea.range(): set end to 0 instead of max
avoids capacity overflow
2021-11-29 09:12:22 +01:00
Michael Sippel 411b773ab5
fix warnings & format 2021-11-19 12:19:52 +01:00
Michael Sippel bf8a949cdd
move plot to separate file 2021-11-19 12:04:37 +01:00
Michael Sippel f480b79031
try to improve ansi parsing 2021-11-18 22:55:32 +01:00
Michael Sippel ef1a477d4a
ansi parser: PtyView to display cursor & scrolling 2021-11-18 17:47:29 +01:00
Michael Sippel 4ab20be1c5
SingletonBuffer: add get_mut() 2021-11-18 14:43:10 +01:00
Michael Sippel 941da4ed7d
add grid/buffer 2021-11-17 22:32:31 +01:00
Michael Sippel c9c6958a62
process editor: write keyboard input to pty 2021-11-11 22:29:37 +01:00
Michael Sippel 43321d18fb
some more ansi parsing improvements 2021-11-09 02:56:21 +01:00
Michael Sippel 4ad8316636
improve ansi parsing 2021-11-07 17:42:36 +01:00
Michael Sippel 05a189a2bb
implement some more ansi codes 2021-11-07 09:43:50 +01:00
Michael Sippel 2fd209c502
list editor: catch out of bounds in ListEditor::get_item() 2021-11-07 08:50:36 +01:00
Michael Sippel 7fdc0bf272
optimize index views with IndexArea enum to allow range based notifications 2021-11-07 08:48:04 +01:00
Michael Sippel bfd27fa3fa
update dependencies 2021-10-01 16:29:18 +02:00
Michael Sippel c68a9f785d
shell: use a ListEditor of ProcessLaunchers in top level 2021-09-24 23:31:09 +02:00
Michael Sippel 372ef9cb77
shell: use portable-pty crate instead of pty-rs 2021-09-15 15:24:39 +02:00
Michael Sippel 1076d2a1e9 Merge branch 'topic-sdf' 2021-09-14 23:50:58 +02:00
Michael Sippel edb8416f67
terminal: filter out of bounds atoms 2021-09-13 01:41:29 +02:00
Michael Sippel cdeb0f9bc8
list editor: fix out of bounds on backspace 2021-09-12 17:39:24 +02:00
Michael Sippel 880610c39d
IntegerEditor: reverse digit sequence in get_value() to use the more commonplace endiannes as default 2021-09-10 02:06:24 +02:00
Michael Sippel b86220ae90
first color editor 2021-09-06 00:08:36 +02:00
Michael Sippel cee6e02a04
shell: first ProcessLauncher with PTY 2021-09-03 06:49:18 +02:00
Michael Sippel bd1572c632
SequenceView: add .iter() 2021-09-02 22:37:09 +02:00
Michael Sippel fe4707e7b2
StringEditor & PosIntEditor: add get_data_port() 2021-08-31 03:03:51 +02:00
Michael Sippel 8b19ab94c7
sequence: add filter_map()
could be more efficient
2021-08-31 02:57:42 +02:00
Michael Sippel 73eec59f58
ListEditor: better NavResult in dn(): avoid jumping when calling dn on lowest level 2021-08-31 02:11:49 +02:00
Michael Sippel fdd5e925b1
add PosIntEditor 2021-08-31 02:10:10 +02:00
Michael Sippel a3d966df11
fix some bugs and add help to demo 2021-08-28 17:01:31 +02:00
Michael Sippel 11eb30bd5b
list editor cleanup & fix nesting 2021-08-28 03:08:41 +02:00
Michael Sippel fb5ae53e88
add IndexBuffer 2021-08-27 22:31:25 +02:00
Michael Sippel cec7b4a0a0
more improvements for ListEditor
fix some glitches by refactoring ListCursor: mode is now always present, only idx is optional
2021-08-26 08:20:51 +02:00
Michael Sippel 5eefcbb4d1
projection: remove_arg 2021-08-24 23:15:18 +02:00
Michael Sippel 2563e06000
list editor: refactor cursor handling 2021-08-23 05:00:57 +02:00
Michael Sippel 9905a2376f
build StringEditor and PosIntEditor ontop of ListEditor
add DigitEditor and CharEditor
2021-08-16 01:27:35 +02:00
Michael Sippel fef4b930ae
TreeNav: get tree address of cursor 2021-08-16 00:10:25 +02:00
Michael Sippel 5753fb5af8
singleton: to_index() & to_grid() 2021-08-16 00:08:33 +02:00
Michael Sippel 603034a065
TreeNav trait
adapt ListEditor and StringEditor
2021-08-15 04:27:09 +02:00
Michael Sippel 127c43bca0
list editor: add path view
add decorate() on OuterViewPort to create a ListDecorator
2021-08-15 02:05:33 +02:00
Michael Sippel 78c5ffcdbe
small notification fixes 2021-08-11 18:08:53 +02:00