Skip to content

Commit

Permalink
feat(wasm-plugin-system): major overhaul and some goodies (#2510)
Browse files Browse the repository at this point in the history
* strider resiliency

* worker channel prototype

* finalized ui

* show hide plugin

* fs events to plugins

* tests for events and new screen instructions

* various refactoringz

* report plugin errors instead of crashing zellij

* fix plugin loading with workers

* refactor: move watch filesystem

* some fixes and refactoring

* refactor(panes): combine pane insertion logic

* refactor(screen): launch or focus

* refactor(pty): consolidate default shell fetching

* refactor: various cleanups

* initial refactoring

* more initial refactoring

* refactor(strider): search

* style(fmt): rustfmt

* style(pty): cleanup

* style(clippy): ok clippy

* style(fmt): rustfmt
  • Loading branch information
imsnif authored Jun 7, 2023
1 parent b8f0953 commit c11d75f
Show file tree
Hide file tree
Showing 52 changed files with 3,066 additions and 1,250 deletions.
120 changes: 111 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion default-plugins/fixture-plugin-for-tests/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,18 @@ impl<'de> ZellijWorker<'de> for TestWorker {
}

register_plugin!(State);
register_worker!(TestWorker, test_worker);
register_worker!(TestWorker, test_worker, TEST_WORKER);

impl ZellijPlugin for State {
fn load(&mut self) {
subscribe(&[
EventType::InputReceived,
EventType::SystemClipboardFailure,
EventType::CustomMessage,
EventType::FileSystemCreate,
EventType::FileSystemRead,
EventType::FileSystemUpdate,
EventType::FileSystemDelete,
]);
}

Expand Down
1 change: 1 addition & 0 deletions default-plugins/strider/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
unicode-width = "0.1.8"
ansi_term = "0.12.1"
strip-ansi-escapes = "0.1.1"
Loading

0 comments on commit c11d75f

Please sign in to comment.