aboutsummaryrefslogtreecommitdiffstats
path: root/assets
diff options
context:
space:
mode:
authorBrooks Rady <b.j.rady@gmail.com>2021-03-26 13:20:06 +0000
committerGitHub <noreply@github.com>2021-03-26 13:20:06 +0000
commitd818661c727a59312e1a43432e84fbeec79fc145 (patch)
treee8ab04124ee7f5c87cd88be63c1867c7d9b2289c /assets
parentfix(render): various rendering issues (#238) (diff)
parentFix some overzealous format!() removals and a stray comment (diff)
downloadsl0ppij-d818661c727a59312e1a43432e84fbeec79fc145.tar.gz
sl0ppij-d818661c727a59312e1a43432e84fbeec79fc145.tar.xz
sl0ppij-d818661c727a59312e1a43432e84fbeec79fc145.zip
feat(plugin): refactored to a new and more general plugin API
- Changed `init()` to `load()` - Deduplicated structs that are in both `zellij` and `zellij-tile` - WASM thread now keeps a mapping of plugins and event subscriptions - Added host-functions for subscribing and unsubscribing from events - Introduced the `update(event)` callback into the API (which is called to handle plugin events) - Made mode changes send an event to the WASM thread - Removed the `AppInstruction::Get/SetState` calls (and any global state) - Removed the `get_help()` host function - Added an event system for key-presses - Added an event for updating tabs - Ported support for renaming tabs - Removed every plugin callback other than `load()`, `update(event)`, and `draw(rows, cols)` - Removed every WASM thread event other than Load, Draw, Update, Unload, and Quit - Calls render after a plugin is updated - Switched back to upstream `termion` - Loads of lint fixing - Shrunk and simplified the code!
Diffstat (limited to 'assets')
-rw-r--r--assets/layouts/default.yaml2
-rw-r--r--assets/layouts/strider.yaml2
2 files changed, 0 insertions, 4 deletions
diff --git a/assets/layouts/default.yaml b/assets/layouts/default.yaml
index f46569b7..408f2f38 100644
--- a/assets/layouts/default.yaml
+++ b/assets/layouts/default.yaml
@@ -5,8 +5,6 @@ parts:
split_size:
Fixed: 1
plugin: tab-bar
- events:
- - Tab
- direction: Vertical
expansion_boundary: true
- direction: Vertical
diff --git a/assets/layouts/strider.yaml b/assets/layouts/strider.yaml
index cd972d20..9d0f09b0 100644
--- a/assets/layouts/strider.yaml
+++ b/assets/layouts/strider.yaml
@@ -5,8 +5,6 @@ parts:
split_size:
Fixed: 1
plugin: tab-bar
- events:
- - Tab
- direction: Vertical
parts:
- direction: Horizontal