make tests pass

This commit is contained in:
Aram Drevekenin 2024-07-17 14:20:47 +02:00
parent 902f600514
commit 67c920769d
8 changed files with 701 additions and 9 deletions

View File

@ -1,6 +1,6 @@
---
source: src/tests/e2e/cases.rs
assertion_line: 1050
assertion_line: 1064
expression: last_snapshot
---
Zellij (e2e-test)  Tab #1 
@ -26,4 +26,4 @@ expression: last_snapshot
│ ││ │
│ ││ │
└────────────────────────────────────────────────┘└────────────────────────────────────────────────┘
Ctrl + g  p  t  n  h  s  o  q  Alt +  <n> New Pane  <←↓↑→> Change Focus 
Ctrl + g  p  t  n  h  s  o  q  Alt +  <n> New  <←↓↑→> Focus  <f> Floating

View File

@ -1,6 +1,6 @@
---
source: src/tests/e2e/cases.rs
assertion_line: 2349
assertion_line: 2372
expression: last_snapshot
---
Zellij (e2e-test)  Tab #1  Alt <[]>  VERTICAL 
@ -26,4 +26,4 @@ expression: last_snapshot
│ ││ │
│ ││ │
└─────────────────────────────────────────────────────────────────────────┘└ [ EXIT CODE: 0 ] <ENTER> re-run, <ESC> drop to shell, <Ctrl-c> exit ────┘
Ctrl + <g> LOCK  <p> PANE  <t> TAB  <n> RESIZE  <h> MOVE  <s> SEARCH  <o> SESSION  <q> QUIT  Alt +  <n> New  <←↓↑→> Focus 
Ctrl + <g> LOCK  <p> PANE  <t> TAB  <n> RESIZE  <h> MOVE  <s> SEARCH  <o> SESSION  <q> QUIT 

Binary file not shown.

View File

@ -1,6 +1,6 @@
---
source: zellij-utils/src/setup.rs
assertion_line: 725
assertion_line: 753
expression: "format!(\"{:#?}\", config)"
---
Config {
@ -117,6 +117,16 @@ Config {
Tmux,
),
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -552,6 +562,16 @@ Config {
Tmux,
),
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -997,6 +1017,16 @@ Config {
Normal,
),
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -1590,6 +1620,16 @@ Config {
Tmux,
),
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -2066,6 +2106,16 @@ Config {
}: [
PageScrollDown,
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -2441,6 +2491,16 @@ Config {
Scroll,
),
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -2824,6 +2884,16 @@ Config {
}: [
PageScrollDown,
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -3224,6 +3294,16 @@ Config {
Normal,
),
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -3545,6 +3625,16 @@ Config {
Normal,
),
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -3854,6 +3944,34 @@ Config {
Tmux,
),
],
KeyWithModifier {
bare_key: Char(
'c',
),
key_modifiers: {},
}: [
LaunchOrFocusPlugin(
Alias(
PluginAlias {
name: "configuration",
configuration: Some(
PluginUserConfiguration(
{},
),
),
initial_cwd: None,
run_plugin: None,
},
),
true,
true,
false,
false,
),
SwitchToMode(
Normal,
),
],
KeyWithModifier {
bare_key: Char(
'd',
@ -3862,6 +3980,16 @@ Config {
}: [
Detach,
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -4238,6 +4366,16 @@ Config {
Tmux,
),
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -4620,6 +4758,16 @@ Config {
Tmux,
),
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -5064,6 +5212,16 @@ Config {
}: [
Detach,
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -5409,6 +5567,18 @@ Config {
),
initial_cwd: None,
},
"configuration": RunPlugin {
_allow_exec_host_cmd: false,
location: Zellij(
PluginTag(
"configuration",
),
),
configuration: PluginUserConfiguration(
{},
),
initial_cwd: None,
},
"filepicker": RunPlugin {
_allow_exec_host_cmd: false,
location: Zellij(

View File

@ -1,6 +1,6 @@
---
source: zellij-utils/src/setup.rs
assertion_line: 783
assertion_line: 811
expression: "format!(\"{:#?}\", config)"
---
Config {
@ -117,6 +117,16 @@ Config {
Tmux,
),
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -552,6 +562,16 @@ Config {
Tmux,
),
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -997,6 +1017,16 @@ Config {
Normal,
),
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -1590,6 +1620,16 @@ Config {
Tmux,
),
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -2066,6 +2106,16 @@ Config {
}: [
PageScrollDown,
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -2441,6 +2491,16 @@ Config {
Scroll,
),
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -2824,6 +2884,16 @@ Config {
}: [
PageScrollDown,
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -3224,6 +3294,16 @@ Config {
Normal,
),
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -3545,6 +3625,16 @@ Config {
Normal,
),
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -3854,6 +3944,34 @@ Config {
Tmux,
),
],
KeyWithModifier {
bare_key: Char(
'c',
),
key_modifiers: {},
}: [
LaunchOrFocusPlugin(
Alias(
PluginAlias {
name: "configuration",
configuration: Some(
PluginUserConfiguration(
{},
),
),
initial_cwd: None,
run_plugin: None,
},
),
true,
true,
false,
false,
),
SwitchToMode(
Normal,
),
],
KeyWithModifier {
bare_key: Char(
'd',
@ -3862,6 +3980,16 @@ Config {
}: [
Detach,
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -4238,6 +4366,16 @@ Config {
Tmux,
),
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -4620,6 +4758,16 @@ Config {
Tmux,
),
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -5064,6 +5212,16 @@ Config {
}: [
Detach,
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -5409,6 +5567,18 @@ Config {
),
initial_cwd: None,
},
"configuration": RunPlugin {
_allow_exec_host_cmd: false,
location: Zellij(
PluginTag(
"configuration",
),
),
configuration: PluginUserConfiguration(
{},
),
initial_cwd: None,
},
"filepicker": RunPlugin {
_allow_exec_host_cmd: false,
location: Zellij(

View File

@ -1,6 +1,6 @@
---
source: zellij-utils/src/setup.rs
assertion_line: 825
assertion_line: 853
expression: "format!(\"{:#?}\", config)"
---
Config {
@ -134,6 +134,18 @@ Config {
),
initial_cwd: None,
},
"configuration": RunPlugin {
_allow_exec_host_cmd: false,
location: Zellij(
PluginTag(
"configuration",
),
),
configuration: PluginUserConfiguration(
{},
),
initial_cwd: None,
},
"filepicker": RunPlugin {
_allow_exec_host_cmd: false,
location: Zellij(

View File

@ -1,6 +1,6 @@
---
source: zellij-utils/src/setup.rs
assertion_line: 811
assertion_line: 839
expression: "format!(\"{:#?}\", config)"
---
Config {
@ -117,6 +117,16 @@ Config {
Tmux,
),
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -552,6 +562,16 @@ Config {
Tmux,
),
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -997,6 +1017,16 @@ Config {
Normal,
),
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -1590,6 +1620,16 @@ Config {
Tmux,
),
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -2066,6 +2106,16 @@ Config {
}: [
PageScrollDown,
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -2441,6 +2491,16 @@ Config {
Scroll,
),
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -2824,6 +2884,16 @@ Config {
}: [
PageScrollDown,
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -3224,6 +3294,16 @@ Config {
Normal,
),
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -3545,6 +3625,16 @@ Config {
Normal,
),
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -3854,6 +3944,34 @@ Config {
Tmux,
),
],
KeyWithModifier {
bare_key: Char(
'c',
),
key_modifiers: {},
}: [
LaunchOrFocusPlugin(
Alias(
PluginAlias {
name: "configuration",
configuration: Some(
PluginUserConfiguration(
{},
),
),
initial_cwd: None,
run_plugin: None,
},
),
true,
true,
false,
false,
),
SwitchToMode(
Normal,
),
],
KeyWithModifier {
bare_key: Char(
'd',
@ -3862,6 +3980,16 @@ Config {
}: [
Detach,
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -4238,6 +4366,16 @@ Config {
Tmux,
),
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -4620,6 +4758,16 @@ Config {
Tmux,
),
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -5064,6 +5212,16 @@ Config {
}: [
Detach,
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -5713,6 +5871,18 @@ Config {
),
initial_cwd: None,
},
"configuration": RunPlugin {
_allow_exec_host_cmd: false,
location: Zellij(
PluginTag(
"configuration",
),
),
configuration: PluginUserConfiguration(
{},
),
initial_cwd: None,
},
"filepicker": RunPlugin {
_allow_exec_host_cmd: false,
location: Zellij(

View File

@ -1,6 +1,6 @@
---
source: zellij-utils/src/setup.rs
assertion_line: 797
assertion_line: 825
expression: "format!(\"{:#?}\", config)"
---
Config {
@ -117,6 +117,16 @@ Config {
Tmux,
),
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -552,6 +562,16 @@ Config {
Tmux,
),
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -997,6 +1017,16 @@ Config {
Normal,
),
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -1590,6 +1620,16 @@ Config {
Tmux,
),
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -2066,6 +2106,16 @@ Config {
}: [
PageScrollDown,
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -2441,6 +2491,16 @@ Config {
Scroll,
),
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -2824,6 +2884,16 @@ Config {
}: [
PageScrollDown,
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -3224,6 +3294,16 @@ Config {
Normal,
),
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -3545,6 +3625,16 @@ Config {
Normal,
),
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -3854,6 +3944,34 @@ Config {
Tmux,
),
],
KeyWithModifier {
bare_key: Char(
'c',
),
key_modifiers: {},
}: [
LaunchOrFocusPlugin(
Alias(
PluginAlias {
name: "configuration",
configuration: Some(
PluginUserConfiguration(
{},
),
),
initial_cwd: None,
run_plugin: None,
},
),
true,
true,
false,
false,
),
SwitchToMode(
Normal,
),
],
KeyWithModifier {
bare_key: Char(
'd',
@ -3862,6 +3980,16 @@ Config {
}: [
Detach,
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -4238,6 +4366,16 @@ Config {
Tmux,
),
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -4620,6 +4758,16 @@ Config {
Tmux,
),
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -5064,6 +5212,16 @@ Config {
}: [
Detach,
],
KeyWithModifier {
bare_key: Char(
'f',
),
key_modifiers: {
Alt,
},
}: [
ToggleFloatingPanes,
],
KeyWithModifier {
bare_key: Char(
'g',
@ -5409,6 +5567,18 @@ Config {
),
initial_cwd: None,
},
"configuration": RunPlugin {
_allow_exec_host_cmd: false,
location: Zellij(
PluginTag(
"configuration",
),
),
configuration: PluginUserConfiguration(
{},
),
initial_cwd: None,
},
"filepicker": RunPlugin {
_allow_exec_host_cmd: false,
location: Zellij(