diff options
author | Aram Drevekenin <aram@poor.dev> | 2024-02-26 15:30:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-26 15:30:15 +0100 |
commit | 21273ac95a2fed6b07d8550fe2d4f65993be7037 (patch) | |
tree | f5a7aa488ece8f21c17350bb3ec14ceaf15f60a7 /zellij-utils/src/snapshots/zellij_utils__setup__setup_test__layout_themes_override_config_themes.snap | |
parent | 27bffbf1533b4b2d3c10b1305557c75ddd121374 (diff) |
feat(plugins): introduce plugin aliases (#3157)
* working prototype with passing tests
* new tests and passing plugin tests as well
* style(code): cleanups
* cleanup strider from unused search feature
* prototype of removing old plugin block from the config
* aliases working from config file and all tests passing
* fixups and cleanups
* use aliases in layouts
* update test snapshot
* style(fmt): rustfmt
Diffstat (limited to 'zellij-utils/src/snapshots/zellij_utils__setup__setup_test__layout_themes_override_config_themes.snap')
-rw-r--r-- | zellij-utils/src/snapshots/zellij_utils__setup__setup_test__layout_themes_override_config_themes.snap | 190 |
1 files changed, 94 insertions, 96 deletions
diff --git a/zellij-utils/src/snapshots/zellij_utils__setup__setup_test__layout_themes_override_config_themes.snap b/zellij-utils/src/snapshots/zellij_utils__setup__setup_test__layout_themes_override_config_themes.snap index ba5df24df..1d6821303 100644 --- a/zellij-utils/src/snapshots/zellij_utils__setup__setup_test__layout_themes_override_config_themes.snap +++ b/zellij-utils/src/snapshots/zellij_utils__setup__setup_test__layout_themes_override_config_themes.snap @@ -1,6 +1,6 @@ --- source: zellij-utils/src/setup.rs -assertion_line: 771 +assertion_line: 799 expression: "format!(\"{:#?}\", config)" --- Config { @@ -2655,17 +2655,19 @@ Config { 'w', ): [ LaunchOrFocusPlugin( - RunPlugin { - _allow_exec_host_cmd: false, - location: Zellij( - PluginTag( - "session-manager", + RunPlugin( + RunPlugin { + _allow_exec_host_cmd: false, + location: Zellij( + PluginTag( + "session-manager", + ), ), - ), - configuration: PluginUserConfiguration( - {}, - ), - }, + configuration: PluginUserConfiguration( + {}, + ), + }, + ), true, true, false, @@ -4135,91 +4137,87 @@ Config { }, }, }, - plugins: { - PluginTag( - "compact-bar", - ): PluginConfig { - path: "compact-bar", - run: Pane( - None, - ), - _allow_exec_host_cmd: false, - location: Zellij( - PluginTag( - "compact-bar", - ), - ), - userspace_configuration: PluginUserConfiguration( - {}, - ), - }, - PluginTag( - "session-manager", - ): PluginConfig { - path: "session-manager", - run: Pane( - None, - ), - _allow_exec_host_cmd: false, - location: Zellij( - PluginTag( - "session-manager", - ), - ), - userspace_configuration: PluginUserConfiguration( - {}, - ), - }, - PluginTag( - "status-bar", - ): PluginConfig { - path: "status-bar", - run: Pane( - None, - ), - _allow_exec_host_cmd: false, - location: Zellij( - PluginTag( - "status-bar", - ), - ), - userspace_configuration: PluginUserConfiguration( - {}, - ), - }, - PluginTag( - "strider", - ): PluginConfig { - path: "strider", - run: Pane( - None, - ), - _allow_exec_host_cmd: false, - location: Zellij( - PluginTag( - "strider", - ), - ), - userspace_configuration: PluginUserConfiguration( - {}, - ), - }, - PluginTag( - "tab-bar", - ): PluginConfig { - path: "tab-bar", - run: Pane( - None, - ), - _allow_exec_host_cmd: false, - location: Zellij( - PluginTag( - "tab-bar", - ), - ), - userspace_configuration: PluginUserConfiguration( - {}, - ), + plugins: PluginAliases { + aliases: { + "compact-bar": RunPlugin { + _allow_exec_host_cmd: false, + location: Zellij( + PluginTag( + "compact-bar", + ), + ), + configuration: PluginUserConfiguration( + {}, + ), + }, + "filepicker": RunPlugin { + _allow_exec_host_cmd: false, + location: Zellij( + PluginTag( + "strider", + ), + ), + configuration: PluginUserConfiguration( + {}, + ), + }, + "session-manager": RunPlugin { + _allow_exec_host_cmd: false, + location: Zellij( + PluginTag( + "session-manager", + ), + ), + configuration: PluginUserConfiguration( + {}, + ), + }, + "status-bar": RunPlugin { + _allow_exec_host_cmd: false, + location: Zellij( + PluginTag( + "status-bar", + ), + ), + configuration: PluginUserConfiguration( + {}, + ), + }, + "strider": RunPlugin { + _allow_exec_host_cmd: false, + location: Zellij( + PluginTag( + "strider", + ), + ), + configuration: PluginUserConfiguration( + {}, + ), + }, + "tab-bar": RunPlugin { + _allow_exec_host_cmd: false, + location: Zellij( + PluginTag( + "tab-bar", + ), + ), + configuration: PluginUserConfiguration( + {}, + ), + }, + "welcome-screen": RunPlugin { + _allow_exec_host_cmd: false, + location: Zellij( + PluginTag( + "session-manager", + ), + ), + configuration: PluginUserConfiguration( + { + "welcome_screen": "true", + }, + ), + }, }, }, ui: UiConfig { |