diff options
| author | Aram Drevekenin <aram@poor.dev> | 2022-10-11 16:45:46 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-11 16:45:46 +0200 |
| commit | c64bf5207a0d1b79b305f11a3d73c9da77092b6e (patch) | |
| tree | 2f5c0efc7c41bc10d96b398c9861d5c7903d2ba8 /zellij-utils/src/input/unit | |
| parent | changelog: Add PR 1775 (diff) | |
| download | sl0ppij-c64bf5207a0d1b79b305f11a3d73c9da77092b6e.tar.gz sl0ppij-c64bf5207a0d1b79b305f11a3d73c9da77092b6e.tar.xz sl0ppij-c64bf5207a0d1b79b305f11a3d73c9da77092b6e.zip | |
feat(ux): rerun command pane (#1787)
* chore(config): default kdl keybindings config
* tests
* work
* refactor(config): move stuff around
* work
* tab merge layout
* work
* work
* layouts working
* work
* layout tests
* work
* work
* feat(parsing): kdl layouts without config
* refactor(kdl): move stuff around
* work
* tests(layout): add cases and fix bugs
* work
* fix(kdl): various bugs
* chore(layouts): move all layouts to kdl
* feat(kdl): shared keybidns
* fix(layout): do not count fixed panes toward percentile
* fix(keybinds): missing keybinds and actions
* fix(config): adjust default tips
* refactor(config): move stuff around
* fix(tests): make e2e tests pass
* fix(kdl): add verbose parsing errors
* fix(kdl): focused tab
* fix(layout): corret default_tab_template behavior
* style(code): fix compile warnings
* feat(cli): send actions through the cli
* fix(cli): exit only when action is done
* fix(cli): open embedded pane from floating pane
* fix(cli): send actions to other sessions
* feat(cli): command alias
* feat(converter): convert old config
* feat(converter): convert old layout and theme files
* feat(kdl): pretty errors
* feat(client): convert old YAML files on startup
* fix: various bugs and styling issues
* fix: e2e tests
* fix(screen): propagate errors after merge
* style(clippy): lower clippy level
* fix(tests): own session_name variable
* style(fmt): rustfmt
* fix(cli): various action fixes
* style(fmt): rustfmt
* fix(themes): loading of theme files
* style(fmt): rustfmt
* fix(tests): theme fixtures
* fix(layouts): better errors on unknown nodes
* fix(kdl): clarify valid node terminator error
* fix(e2e): adjust close tab test
* fix(e2e): adjust close tab test again
* style(code): cleanup some comments
* get command panes not to exit on command exit
* separate terminal pane_ids from raw_fds
* render frame according to exit status
* re-run command on enter and close pane on ctrl-c
* proper error when command is not found
* make ui nicer
* initial pane title for command panes
* fix pane override bug
* reap terminal_ids from os_input_output on pane close
* bool floating flag
* some ui tweaks
* fix tests
* make rustfmt happy
* e2e test for command pane
* fix various concurrency issues
* rename command to run in the cli
* rustfmt
* style(fmt): rustfmt
* fix(e2e): command => run
* fix(e2e): command => run in snapshot too!
Diffstat (limited to 'zellij-utils/src/input/unit')
| -rw-r--r-- | zellij-utils/src/input/unit/layout_test.rs | 3 | ||||
| -rw-r--r-- | zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_tab_and_pane_templates.snap | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/zellij-utils/src/input/unit/layout_test.rs b/zellij-utils/src/input/unit/layout_test.rs index b4b309ba..ffd35f20 100644 --- a/zellij-utils/src/input/unit/layout_test.rs +++ b/zellij-utils/src/input/unit/layout_test.rs @@ -201,6 +201,7 @@ fn layout_with_command_panes() { children: vec![PaneLayout { run: Some(Run::Command(RunCommand { command: PathBuf::from("htop"), + hold_on_close: true, ..Default::default() })), ..Default::default() @@ -226,6 +227,7 @@ fn layout_with_command_panes_and_cwd() { run: Some(Run::Command(RunCommand { command: PathBuf::from("htop"), cwd: Some(PathBuf::from("/path/to/my/cwd")), + hold_on_close: true, ..Default::default() })), ..Default::default() @@ -254,6 +256,7 @@ fn layout_with_command_panes_and_cwd_and_args() { command: PathBuf::from("htop"), cwd: Some(PathBuf::from("/path/to/my/cwd")), args: vec![String::from("-h"), String::from("-v")], + hold_on_close: true, ..Default::default() })), ..Default::default() diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_tab_and_pane_templates.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_tab_and_pane_templates.snap index 72101338..f32b346d 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_tab_and_pane_templates.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_tab_and_pane_templates.snap @@ -1,6 +1,6 @@ --- source: zellij-utils/src/input/./unit/layout_test.rs -assertion_line: 648 +assertion_line: 570 expression: "format!(\"{:#?}\", layout)" --- Layout { @@ -40,6 +40,7 @@ Layout { command: "htop", args: [], cwd: None, + hold_on_close: true, }, ), ), |
