zellij/zellij-utils/src/input
a-kenji 5ede25dc37 Add tabs to layouts
fixes #603, fixes #349

* The layout has now a unique `tabs` section,
  that can be used, like the `parts` section,
  everything that is not inside the tabs section
  is assumed to be present on every single tab
  that is opened.

  This is a BREAKING CHANGE for people that use
  custom `layouts` already, since the `tabs` section
  is not optional - for clarity and intentionality reasons.

  The functionality to specify multiple tabs is already there,
  but is still gated behind a panic, until #621 is fixed.
  So for now one tab can be specified to load on startup.

* The `NewTab` action can optionally be bound to open
  a layout that is assumed to be in the new `tabs` section

  This is a BREAKING CHANGE for people that have the
  `NewTab` action already bound in the config file:

```
- action: [NewTab, ]
  key: [F: 5,]
```
must now be specified as:
```
- action: [NewTab: ,]
  key: [F: 5,]
```
  Optionally a layout that should be opened on the new tab can be
  specified:
```
- action: [NewTab: {
  direction: Vertical,
  parts: [ {direction: Horizontal, split_size: {Percent: 50}}, {direction: Horizontal, run: {command: {cmd: "htop"}}},],
  key: [F: 6,]
```
or:
```
- action: [NewTab: {direction: Vertical, run: {command: {cmd: "htop"} }},]
  key: [F: 7,]
```
or
```
- action: [NewTab: {
  direction: Vertical,
  parts: [ {direction: Vertical, split_size: {Percent: 25},run: {plugin: "strider" }}, {direction: Horizontal}],}, MoveFocus: Left,]
  key: [F: 8,]

```
2021-07-23 17:13:35 +02:00
..
unit Add tabs to layouts 2021-07-23 17:13:35 +02:00
actions.rs Add tabs to layouts 2021-07-23 17:13:35 +02:00
command.rs Merge pull request #600 from a-kenji/layout-command 2021-07-09 16:58:29 +02:00
config.rs chore(clippy): needless_borrow 2021-06-29 23:02:51 +02:00
keybinds.rs Big refactor: separate crates for client, server and utilities 2021-05-16 21:41:56 +05:30
layout.rs Add tabs to layouts 2021-07-23 17:13:35 +02:00
mod.rs feat(ui): initial mouse support (#448) 2021-07-02 16:40:50 +02:00
mouse.rs feat(ui): initial mouse support (#448) 2021-07-02 16:40:50 +02:00
options.rs Add serde-alias for on_force_close 2021-07-09 15:05:47 +02:00
theme.rs Add color theme config 2021-05-30 15:07:21 +02:00