diff options
| author | Aram Drevekenin <aram@poor.dev> | 2025-07-01 20:17:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-01 20:17:37 +0200 |
| commit | ca0048bdcb6d5f3bc0d7f05806efe1319a218e93 (patch) | |
| tree | 38c61a2251b8126530098babc414a70d0b4ea0c9 /default-plugins | |
| parent | docs(changelog): replace pane API (diff) | |
| download | sl0ppij-ca0048bdcb6d5f3bc0d7f05806efe1319a218e93.tar.gz sl0ppij-ca0048bdcb6d5f3bc0d7f05806efe1319a218e93.tar.xz sl0ppij-ca0048bdcb6d5f3bc0d7f05806efe1319a218e93.zip | |
feat: stack pane action (#4255)
* refactor: group placement properties
* add stackpane cli and keybinding
* add test
* refactor: move spawn vertically/horizontally to spawnterminal
* fix tests and cleanups
* some cleanups and minor fixes
* more cleanups
* add stack action to the UI
* style(fmt): rustfmt
* fix serialization
* add to default config
* fix e2e tests
* style(fmt): rustfmt
* fix cli
* fix tests
* docs(changelog): add PR
Diffstat (limited to 'default-plugins')
| -rw-r--r-- | default-plugins/configuration/src/presets.rs | 6 | ||||
| -rw-r--r-- | default-plugins/status-bar/src/one_line_ui.rs | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/default-plugins/configuration/src/presets.rs b/default-plugins/configuration/src/presets.rs index a26f51a4..0c972a1d 100644 --- a/default-plugins/configuration/src/presets.rs +++ b/default-plugins/configuration/src/presets.rs @@ -31,6 +31,7 @@ keybinds clear-defaults=true {{ bind "n" {{ NewPane; SwitchToMode "Locked"; }} bind "d" {{ NewPane "Down"; SwitchToMode "Locked"; }} bind "r" {{ NewPane "Right"; SwitchToMode "Locked"; }} + bind "s" {{ NewPane "stacked"; SwitchToMode "Locked"; }} bind "x" {{ CloseFocus; SwitchToMode "Locked"; }} bind "f" {{ ToggleFocusFullscreen; SwitchToMode "Locked"; }} bind "z" {{ TogglePaneFrames; SwitchToMode "Locked"; }} @@ -244,6 +245,7 @@ keybinds clear-defaults=true {{ bind "n" {{ NewPane; SwitchToMode "Normal"; }} bind "d" {{ NewPane "Down"; SwitchToMode "Normal"; }} bind "r" {{ NewPane "Right"; SwitchToMode "Normal"; }} + bind "s" {{ NewPane "stacked"; SwitchToMode "Normal"; }} bind "x" {{ CloseFocus; SwitchToMode "Normal"; }} bind "f" {{ ToggleFocusFullscreen; SwitchToMode "Normal"; }} bind "z" {{ TogglePaneFrames; SwitchToMode "Normal"; }} @@ -468,6 +470,7 @@ keybinds clear-defaults=true {{ bind "n" {{ NewPane; SwitchToMode "Normal"; }} bind "d" {{ NewPane "Down"; SwitchToMode "Normal"; }} bind "r" {{ NewPane "Right"; SwitchToMode "Normal"; }} + bind "s" {{ NewPane "stacked"; SwitchToMode "Normal"; }} bind "x" {{ CloseFocus; SwitchToMode "Normal"; }} bind "f" {{ ToggleFocusFullscreen; SwitchToMode "Normal"; }} bind "z" {{ TogglePaneFrames; SwitchToMode "Normal"; }} @@ -663,6 +666,7 @@ keybinds clear-defaults=true {{ bind "n" {{ NewPane; SwitchToMode "Normal"; }} bind "d" {{ NewPane "Down"; SwitchToMode "Normal"; }} bind "r" {{ NewPane "Right"; SwitchToMode "Normal"; }} + bind "s" {{ NewPane "stacked"; SwitchToMode "Normal"; }} bind "x" {{ CloseFocus; SwitchToMode "Normal"; }} bind "f" {{ ToggleFocusFullscreen; SwitchToMode "Normal"; }} bind "z" {{ TogglePaneFrames; SwitchToMode "Normal"; }} @@ -865,6 +869,7 @@ keybinds clear-defaults=true {{ bind "n" {{ NewPane; SwitchToMode "Normal"; }} bind "d" {{ NewPane "Down"; SwitchToMode "Normal"; }} bind "r" {{ NewPane "Right"; SwitchToMode "Normal"; }} + bind "s" {{ NewPane "stacked"; SwitchToMode "Normal"; }} bind "x" {{ CloseFocus; SwitchToMode "Normal"; }} bind "f" {{ ToggleFocusFullscreen; SwitchToMode "Normal"; }} bind "z" {{ TogglePaneFrames; SwitchToMode "Normal"; }} @@ -1042,6 +1047,7 @@ keybinds clear-defaults=true {{ bind "n" {{ NewPane; SwitchToMode "Normal"; }} bind "d" {{ NewPane "Down"; SwitchToMode "Normal"; }} bind "r" {{ NewPane "Right"; SwitchToMode "Normal"; }} + bind "s" {{ NewPane "stacked"; SwitchToMode "Normal"; }} bind "x" {{ CloseFocus; SwitchToMode "Normal"; }} bind "f" {{ ToggleFocusFullscreen; SwitchToMode "Normal"; }} bind "z" {{ TogglePaneFrames; SwitchToMode "Normal"; }} diff --git a/default-plugins/status-bar/src/one_line_ui.rs b/default-plugins/status-bar/src/one_line_ui.rs index 23d3c133..1902ac63 100644 --- a/default-plugins/status-bar/src/one_line_ui.rs +++ b/default-plugins/status-bar/src/one_line_ui.rs @@ -1276,6 +1276,7 @@ fn get_keys_and_hints(mi: &ModeInfo) -> Vec<(String, String, Vec<KeyWithModifier (s("Toggle Embed"), s("Embed"), single_action_key(&km, &[A::TogglePaneEmbedOrFloating, TO_NORMAL])), (s("Split Right"), s("Right"), single_action_key(&km, &[A::NewPane(Some(Direction::Right), None, false), TO_NORMAL])), (s("Split Down"), s("Down"), single_action_key(&km, &[A::NewPane(Some(Direction::Down), None, false), TO_NORMAL])), + (s("Stack"), s("Stack"), single_action_key(&km, &[A::NewStackedPane(None, None), TO_NORMAL])), (s("Select pane"), s("Select"), to_basemode_key), ]} else if mi.mode == IM::Tab { // With the default bindings, "Move focus" for tabs is tricky: It binds all the arrow keys |
