summaryrefslogtreecommitdiffstats
path: root/zellij-utils/assets
diff options
context:
space:
mode:
authorspacemaison <tuchsen@protonmail.com>2021-09-22 10:13:21 -0700
committerGitHub <noreply@github.com>2021-09-22 18:13:21 +0100
commitc9372212f68fed52d45590b2dac271ab6270d943 (patch)
tree031f384ab012817656876b5db020b9e9c6a41a1f /zellij-utils/assets
parentc39f02181052f1c0948001d4ae419009fc0df677 (diff)
feat(plugin): add manifest to allow for plugin configuration (#660)
* feat(plugins-manifest): Add a plugins manifest to allow for more configuration of plugins * refactor(plugins-manifest): Better storage of plugin metadata in wasm_vm * fix(plugins-manifest): Inherit permissions from run configuration * refactor(plugins-manifest): Rename things for more clarity - The Plugins/Plugin structs had "Config" appended to them to clarify that they're metadata about plugins, and not the plugins themselves. - The PluginType::OncePerPane variant was renamed to be just PluginType::Pane, and the documentation clarified to explain what it is. - The "service" nomenclature was completely removed in favor of "headless". * refactor(plugins-manifest): Move security warning into start plugin * refactor(plugins-manifest): Remove hack in favor of standard method * refactor(plugins-manifest): Change display of plugin location The only time that a plugin location is displayed in Zellij is the border of the pane. Having `zellij:strider` display instead of just `strider` was a little annoying, so we're stripping out the scheme information from a locations display. * refactor(plugins-manifest): Add a little more documentation * fix(plugins-manifest): Formatting Co-authored-by: Jesse Tuchsen <not@disclosing>
Diffstat (limited to 'zellij-utils/assets')
-rw-r--r--zellij-utils/assets/config/default.yaml7
-rw-r--r--zellij-utils/assets/layouts/default.yaml4
-rw-r--r--zellij-utils/assets/layouts/disable-status-bar.yaml2
-rw-r--r--zellij-utils/assets/layouts/strider.yaml6
4 files changed, 13 insertions, 6 deletions
diff --git a/zellij-utils/assets/config/default.yaml b/zellij-utils/assets/config/default.yaml
index 60b4069eb..c00fdfbed 100644
--- a/zellij-utils/assets/config/default.yaml
+++ b/zellij-utils/assets/config/default.yaml
@@ -248,6 +248,13 @@ keybinds:
key: [Ctrl: 'q',]
- action: [Detach,]
key: [Char: 'd',]
+plugins:
+ - path: tab-bar
+ tag: tab-bar
+ - path: status-bar
+ tag: status-bar
+ - path: strider
+ tag: strider
# Choose what to do when zellij receives SIGTERM, SIGINT, SIGQUIT or SIGHUP
# eg. when terminal window with an active zellij session is closed
diff --git a/zellij-utils/assets/layouts/default.yaml b/zellij-utils/assets/layouts/default.yaml
index 549dea24b..0688e54bb 100644
--- a/zellij-utils/assets/layouts/default.yaml
+++ b/zellij-utils/assets/layouts/default.yaml
@@ -8,7 +8,7 @@ template:
Fixed: 1
run:
plugin:
- path: tab-bar
+ location: "zellij:tab-bar"
- direction: Vertical
body: true
- direction: Vertical
@@ -17,6 +17,6 @@ template:
Fixed: 2
run:
plugin:
- path: status-bar
+ location: "zellij:status-bar"
tabs:
- direction: Vertical
diff --git a/zellij-utils/assets/layouts/disable-status-bar.yaml b/zellij-utils/assets/layouts/disable-status-bar.yaml
index e97bb8f1e..107793980 100644
--- a/zellij-utils/assets/layouts/disable-status-bar.yaml
+++ b/zellij-utils/assets/layouts/disable-status-bar.yaml
@@ -8,6 +8,6 @@ template:
Fixed: 1
run:
plugin:
- path: tab-bar
+ location: "zellij:tab-bar"
- direction: Vertical
body: true
diff --git a/zellij-utils/assets/layouts/strider.yaml b/zellij-utils/assets/layouts/strider.yaml
index ccb2a5748..26e1eba4f 100644
--- a/zellij-utils/assets/layouts/strider.yaml
+++ b/zellij-utils/assets/layouts/strider.yaml
@@ -8,7 +8,7 @@ template:
Fixed: 1
run:
plugin:
- path: tab-bar
+ location: "zellij:tab-bar"
- direction: Vertical
body: true
- direction: Vertical
@@ -17,7 +17,7 @@ template:
Fixed: 2
run:
plugin:
- path: status-bar
+ location: "zellij:status-bar"
tabs:
- direction: Vertical
parts:
@@ -26,5 +26,5 @@ tabs:
Percent: 20
run:
plugin:
- path: strider
+ location: "zellij:strider"
- direction: Horizontal