Skip to content

Commit

Permalink
add tmux close pane key (#2058)
Browse files Browse the repository at this point in the history
* add tmux close pane key

* chore: update snapshots for new keybind

Co-authored-by: Jae-Heon Ji <atx6419@gmail.com>
  • Loading branch information
casonadams and jaeheonji authored Jan 3, 2023
1 parent 02e8086 commit ad21f81
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 5 deletions.
1 change: 1 addition & 0 deletions example/config.kdl
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ keybinds {
bind "k" { MoveFocus "Up"; SwitchToMode "Normal"; }
bind "o" { FocusNextPane; }
bind "d" { Detach; }
bind "x" { CloseFocus; SwitchToMode "Normal"; }
}
shared_except "locked" {
bind "Ctrl g" { SwitchToMode "Locked"; }
Expand Down
1 change: 1 addition & 0 deletions example/default.kdl
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ keybinds {
bind "k" { MoveFocus "Up"; SwitchToMode "Normal"; }
bind "o" { FocusNextPane; }
bind "d" { Detach; }
bind "x" { CloseFocus; SwitchToMode "Normal"; }
}
shared_except "locked" {
bind "Ctrl g" { SwitchToMode "Locked"; }
Expand Down
1 change: 1 addition & 0 deletions zellij-utils/assets/config/default.kdl
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ keybinds {
bind "k" { MoveFocus "Up"; SwitchToMode "Normal"; }
bind "o" { FocusNextPane; }
bind "d" { Detach; }
bind "x" { CloseFocus; SwitchToMode "Normal"; }
}
shared_except "locked" {
bind "Ctrl g" { SwitchToMode "Locked"; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: zellij-utils/src/setup.rs
assertion_line: 582
expression: "format!(\"{:#?}\", config)"
---
Config {
Expand Down Expand Up @@ -3124,6 +3123,14 @@ Config {
Normal,
),
],
Char(
'x',
): [
CloseFocus,
SwitchToMode(
Normal,
),
],
Char(
'z',
): [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: zellij-utils/src/setup.rs
assertion_line: 640
expression: "format!(\"{:#?}\", config)"
---
Config {
Expand Down Expand Up @@ -3124,6 +3123,14 @@ Config {
Normal,
),
],
Char(
'x',
): [
CloseFocus,
SwitchToMode(
Normal,
),
],
Char(
'z',
): [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: zellij-utils/src/setup.rs
assertion_line: 668
expression: "format!(\"{:#?}\", config)"
---
Config {
Expand Down Expand Up @@ -3124,6 +3123,14 @@ Config {
Normal,
),
],
Char(
'x',
): [
CloseFocus,
SwitchToMode(
Normal,
),
],
Char(
'z',
): [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: zellij-utils/src/setup.rs
assertion_line: 682
expression: "format!(\"{:#?}\", config)"
---
Config {
Expand Down Expand Up @@ -3124,6 +3123,14 @@ Config {
Normal,
),
],
Char(
'x',
): [
CloseFocus,
SwitchToMode(
Normal,
),
],
Char(
'z',
): [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: zellij-utils/src/setup.rs
assertion_line: 654
expression: "format!(\"{:#?}\", config)"
---
Config {
Expand Down Expand Up @@ -3124,6 +3123,14 @@ Config {
Normal,
),
],
Char(
'x',
): [
CloseFocus,
SwitchToMode(
Normal,
),
],
Char(
'z',
): [
Expand Down

0 comments on commit ad21f81

Please sign in to comment.