diff options
author | a-kenji <aks.kenji@protonmail.com> | 2021-08-21 23:27:23 +0200 |
---|---|---|
committer | a-kenji <aks.kenji@protonmail.com> | 2021-08-21 23:27:23 +0200 |
commit | 88b4063879845cf53397f60201473ce386280cfe (patch) | |
tree | 2451496e64350111d503673bcdac11a4f2b5d6a6 /zellij-client | |
parent | 2e1775678577e8587ca0830a15810212c4b209f7 (diff) |
Add `template` section in `layout` file
It works as follows:
```
---
template:
direction: Horizontal
parts:
- direction: Vertical
split_size:
Fixed: 1
run:
plugin: tab-bar
- direction: Vertical
body: true
- direction: Vertical
split_size:
Fixed: 2
run:
plugin: status-bar
tabs:
- direction: Vertical
```
The tabs are created in the body section of the template.
Diffstat (limited to 'zellij-client')
-rw-r--r-- | zellij-client/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zellij-client/src/lib.rs b/zellij-client/src/lib.rs index ec0c3c745..f74a74ddf 100644 --- a/zellij-client/src/lib.rs +++ b/zellij-client/src/lib.rs @@ -19,7 +19,7 @@ use zellij_utils::{ channels::{self, ChannelWithContext, SenderWithContext}, consts::{SESSION_NAME, ZELLIJ_IPC_PIPE}, errors::{ClientContext, ContextType, ErrorInstruction}, - input::{actions::Action, config::Config, layout::MainLayout, options::Options}, + input::{actions::Action, config::Config, layout::LayoutTemplate, options::Options}, ipc::{ClientAttributes, ClientToServerMsg, ExitReason, ServerToClientMsg}, }; @@ -87,7 +87,7 @@ pub fn start_client( opts: CliArgs, config: Config, info: ClientInfo, - layout: Option<MainLayout>, + layout: Option<LayoutTemplate>, ) { info!("Starting Zellij client!"); let clear_client_terminal_attributes = "\u{1b}[?1l\u{1b}=\u{1b}[r\u{1b}12l\u{1b}[?1000l\u{1b}[?1002l\u{1b}[?1003l\u{1b}[?1005l\u{1b}[?1006l\u{1b}[?12l"; |