diff options
| author | Aram Drevekenin <aram@poor.dev> | 2024-07-18 10:45:42 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-18 10:45:42 +0200 |
| commit | 2deffc3289ff05a1429366cfa7cf7195ec27034f (patch) | |
| tree | 5e8af968db1c5bb966bfe25b484c001378ab9351 /zellij-utils/src/data.rs | |
| parent | docs(changelog): configuration screen (diff) | |
| download | sl0ppij-2deffc3289ff05a1429366cfa7cf7195ec27034f.tar.gz sl0ppij-2deffc3289ff05a1429366cfa7cf7195ec27034f.tar.xz sl0ppij-2deffc3289ff05a1429366cfa7cf7195ec27034f.zip | |
feat(plugins): add stringified layout to switch_session_with_layout (#3503)
Diffstat (limited to 'zellij-utils/src/data.rs')
| -rw-r--r-- | zellij-utils/src/data.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/zellij-utils/src/data.rs b/zellij-utils/src/data.rs index 1a3c9881..0ebb6f1b 100644 --- a/zellij-utils/src/data.rs +++ b/zellij-utils/src/data.rs @@ -1184,6 +1184,7 @@ pub enum LayoutInfo { BuiltIn(String), File(String), Url(String), + Stringified(String), } impl LayoutInfo { @@ -1192,6 +1193,7 @@ impl LayoutInfo { LayoutInfo::BuiltIn(name) => &name, LayoutInfo::File(name) => &name, LayoutInfo::Url(url) => &url, + LayoutInfo::Stringified(layout) => &layout, } } pub fn is_builtin(&self) -> bool { @@ -1199,6 +1201,7 @@ impl LayoutInfo { LayoutInfo::BuiltIn(_name) => true, LayoutInfo::File(_name) => false, LayoutInfo::Url(_url) => false, + LayoutInfo::Stringified(_stringified) => false, } } } |
