diff options
| author | Aram Drevekenin <aram@poor.dev> | 2023-11-02 08:17:23 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-02 08:17:23 +0100 |
| commit | 7e5f22f8c9d24119bc84aa10a9d1d7239b1f1ff1 (patch) | |
| tree | 587367d122c6c5e0c71dc5155373eae56cee30ff /src | |
| parent | fix(cli): session names only for attach in fish completion (#2857) (diff) | |
| download | sl0ppij-7e5f22f8c9d24119bc84aa10a9d1d7239b1f1ff1.tar.gz sl0ppij-7e5f22f8c9d24119bc84aa10a9d1d7239b1f1ff1.tar.xz sl0ppij-7e5f22f8c9d24119bc84aa10a9d1d7239b1f1ff1.zip | |
feat(plugins): UI components (#2898)
* parsing rendering private osc table
* move components to DCS and add tests
* refactor: move components to their own thing
* ribbon and selected-ribbon ui components
* nested list ui component
* selected and indices for nested list
* coordinates and size for ui components
* use Text with ribbon
* add tests for components
* refactor: ui components
* refactor: ui components api
* style(fmt): rustfmt
* style(fmt): cleanups
Diffstat (limited to 'src')
| -rw-r--r-- | src/tests/e2e/remote_runner.rs | 2 | ||||
| -rw-r--r-- | src/tests/fixtures/nested-list-ui-component | 1 | ||||
| -rw-r--r-- | src/tests/fixtures/nested-list-ui-component-with-coordinates | 1 | ||||
| -rw-r--r-- | src/tests/fixtures/ribbon-ui-component | 1 | ||||
| -rw-r--r-- | src/tests/fixtures/ribbon-ui-component-with-coordinates | 1 | ||||
| -rw-r--r-- | src/tests/fixtures/table-ui-component | 1 | ||||
| -rw-r--r-- | src/tests/fixtures/table-ui-component-with-coordinates | 1 | ||||
| -rw-r--r-- | src/tests/fixtures/text-ui-component | 1 | ||||
| -rw-r--r-- | src/tests/fixtures/text-ui-component-with-coordinates | 1 |
9 files changed, 10 insertions, 0 deletions
diff --git a/src/tests/e2e/remote_runner.rs b/src/tests/e2e/remote_runner.rs index 0da5bce7..60a3eb56 100644 --- a/src/tests/e2e/remote_runner.rs +++ b/src/tests/e2e/remote_runner.rs @@ -235,6 +235,7 @@ fn read_from_channel( }))); let sixel_image_store = Rc::new(RefCell::new(SixelImageStore::default())); let debug = false; + let arrow_fonts = true; let mut terminal_output = TerminalPane::new( 0, pane_geom, @@ -249,6 +250,7 @@ fn read_from_channel( None, None, debug, + arrow_fonts, ); // 0 is the pane index loop { if !should_keep_running.load(Ordering::SeqCst) { diff --git a/src/tests/fixtures/nested-list-ui-component b/src/tests/fixtures/nested-list-ui-component new file mode 100644 index 00000000..fd1b4e08 --- /dev/null +++ b/src/tests/fixtures/nested-list-ui-component @@ -0,0 +1 @@ +Pznested_list;105,116,101,109,32,49;105,116,101,109,32,50;|105,116,101,109,32,51;105,116,101,109,32,52;|105,116,101,109,32,53,32,108,115,100,107,102,106,108,115,107,100,106,32,102,108,107,115,100,106,102,32,108,107,115,100,106,32,102,108,107,115,106,100,32,102;||105,116,101,109,32,54,32,115,108,100,107,102,106,115,108,107,100,102,106,32,108,115,100,107,106,102,32,108,115,107,100,106,102,32,108,115,107,100,106,102,32,108,107,115,100,106,102,32,108,115,107,100,106,102,32;105,116,101,109,32,55\
diff --git a/src/tests/fixtures/nested-list-ui-component-with-coordinates b/src/tests/fixtures/nested-list-ui-component-with-coordinates new file mode 100644 index 00000000..73a677d9 --- /dev/null +++ b/src/tests/fixtures/nested-list-ui-component-with-coordinates @@ -0,0 +1 @@ +Pznested_list;1/1/20/3;$0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,8$$10,11,12,13,14,15,16,17,18,19,20,21,22,23,24$105,116,101,109,32,49,32,119,105,116,104,32,115,111,109,101,32,110,105,99,101,32,116,101,120,116,46,46,46;|$8$0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32$1,2,3,4,5,6,7,8,9,10,11,12,13,14$105,116,101,109,32,50,32,119,105,116,104,32,115,111,109,101,32,110,111,116,32,115,111,32,110,105,99,101,32,116,101,120,116;x$0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,8$$5,6,7,8,9,10,11,12,13,14,15,16,17,18,19$105,116,101,109,32,51,32,105,115,32,97,32,114,101,97,108,32,101,121,101,32,111,112,101,110,101,114;|$8$$0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,1,2,3,4,5,6,7,8,9,10,11,12,13,14$105,116,101,109,32,52,32,105,115,32,106,117,115,116,32,97,110,111,116,104,101,114,32,105,116,101,109,44,32,114,101,97,108,108,121\
diff --git a/src/tests/fixtures/ribbon-ui-component b/src/tests/fixtures/ribbon-ui-component new file mode 100644 index 00000000..5e28ccdd --- /dev/null +++ b/src/tests/fixtures/ribbon-ui-component @@ -0,0 +1 @@ +Pzribbon;27,91,49,109,60,27,91,51,56,59,53,59,57,109,110,27,91,51,57,59,51,56,59,53,59,48,109,62,32,82,69,83,73,90,69\
diff --git a/src/tests/fixtures/ribbon-ui-component-with-coordinates b/src/tests/fixtures/ribbon-ui-component-with-coordinates new file mode 100644 index 00000000..d3c33ad3 --- /dev/null +++ b/src/tests/fixtures/ribbon-ui-component-with-coordinates @@ -0,0 +1 @@ +Pzribbon;2/2/10/;1,2,3,4$114,105,98,98,111,110,32,49\
diff --git a/src/tests/fixtures/table-ui-component b/src/tests/fixtures/table-ui-component new file mode 100644 index 00000000..60754bbb --- /dev/null +++ b/src/tests/fixtures/table-ui-component @@ -0,0 +1 @@ +Pztable;5;7;116,105,116,108,101,49;116,105,116,108,101,50;116,105,116,108,101,51;116,105,116,108,101,52;116,105,116,108,101,53;49,108,107,115,100,106,102,108,107,115,100,106,102;108,107,106,100,115,102,108,107,115,106,100,102;108,107,106,115,100,108,107,102,106,115,102,100;108,107,106,115,100,108,107,106,102,100;108,107,106,100,115,108,107,106,115,100,102;50,108,107,115,100,106,102,108,107,115,100,106,102;108,107,106,100,115,102,108,107,115,106,100,102;108,107,106,240,159,152,179,240,159,152,179,115,100,108,107,102,106,115,102,100;108,107,106,115,100,108,107,106,102,100;108,107,106,100,115,108,107,106,115,100,102;51,108,107,115,100,106,102,108,107,115,100,106,102;108,107,106,100,115,102,108,107,115,106,100,102;108,107,106,115,100,240,159,152,179,108,107,102,106,115,102,100;108,107,106,115,100,108,107,106,102,100;108,107,106,100,115,108,107,106,115,100,102;52,108,107,115,100,106,102,108,107,115,50,50,50,100,106,102;108,107,240,159,152,179,50,50,50,106,100,115,102,108,107,115,106,100,102;108,107,50,50,50,106,115,100,108,107,102,106,115,102,100;108,107,119,119,119,106,115,100,108,107,106,102,100;108,107,106,100,115,108,107,106,115,100,102;53,108,107,115,100,106,102,108,107,115,100,106,102;108,107,106,100,115,102,108,107,115,106,100,102;108,107,106,115,100,108,107,102,106,115,102,100;108,107,115,100,106,102,108,107,115,106,102,100,108,107,106,115,100,108,107,106,102,100;108,107,106,100,114,114,114,114,115,108,107,106,115,100,102;27,91,51,54,109,54,108,107,115,100,106,102,108,107,240,159,152,179,115,100,106,102;27,91,52,54,109,108,240,159,152,179,107,106,100,115,102,108,107,115,106,100,102;108,107,106,115,100,108,107,102,106,115,102,100;108,107,106,115,100,108,107,106,102,100;108,119,119,107,119,107,106,100,115,108,107,106,115,100,102\
diff --git a/src/tests/fixtures/table-ui-component-with-coordinates b/src/tests/fixtures/table-ui-component-with-coordinates new file mode 100644 index 00000000..927237e9 --- /dev/null +++ b/src/tests/fixtures/table-ui-component-with-coordinates @@ -0,0 +1 @@ +Pztable;4/4/20/3;3;5;116,105,116,108,101,49;116,105,116,108,101,50;116,105,116,108,101,51;1,2,3,4$99,111,110,116,101,110,116,32,49;$$0,1,2,3,4,5,6,7,8$99,111,110,116,101,110,116,32,50;99,111,110,116,101,110,116,32,51;x99,111,110,116,101,110,116,32,49,49;x99,111,110,116,101,110,116,32,50,50;x99,111,110,116,101,110,116,32,51,51;99,111,110,116,101,110,116,32,49,49,49;99,111,110,116,101,110,116,32,50,50,50;99,111,110,116,101,110,116,32,51,51;99,111,110,116,101,110,116,32,49,49;x99,111,110,116,101,110,116,32,50,50;99,111,110,116,101,110,116,32,51,51\
diff --git a/src/tests/fixtures/text-ui-component b/src/tests/fixtures/text-ui-component new file mode 100644 index 00000000..348f405b --- /dev/null +++ b/src/tests/fixtures/text-ui-component @@ -0,0 +1 @@ +Pztext;x0,1,2$3,4,5$7,8,9$102,111,111,32,98,97,114,32,98,97,122\
diff --git a/src/tests/fixtures/text-ui-component-with-coordinates b/src/tests/fixtures/text-ui-component-with-coordinates new file mode 100644 index 00000000..aeb7867e --- /dev/null +++ b/src/tests/fixtures/text-ui-component-with-coordinates @@ -0,0 +1 @@ +Pztext;58/4//;x0,1,2$3,4,5$7,8,9$102,111,111,32,98,97,114,32,98,97,122\
|
