diff options
| author | Aram Drevekenin <aram@poor.dev> | 2024-12-16 16:03:20 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-16 16:03:20 +0100 |
| commit | dd291e2a1f9b4ee3eb1a947e1501a54b10663ea7 (patch) | |
| tree | 0ae41e8175d2a3fd260b3c510a30502f6386ac7f /default-plugins/configuration/src/presets.rs | |
| parent | docs(changelog): multiplayer cursor fix (diff) | |
| download | sl0ppij-dd291e2a1f9b4ee3eb1a947e1501a54b10663ea7.tar.gz sl0ppij-dd291e2a1f9b4ee3eb1a947e1501a54b10663ea7.tar.xz sl0ppij-dd291e2a1f9b4ee3eb1a947e1501a54b10663ea7.zip | |
feat(ux): pin floating panes (#3876)
* working
* ui indication
* add keybinding
* add to plugin panes
* fix with multiple cursors
* toggle with the mouse
* fix e2e tests and add new one
* some cleanups
* add to layouts
* make mouse click more lenient
* allow setting a new floating pane as pinned
* make toggle work throughthe command line
* add to plugin api
* get tests to pass
* style(fmt): rustfmt
Diffstat (limited to 'default-plugins/configuration/src/presets.rs')
| -rw-r--r-- | default-plugins/configuration/src/presets.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/default-plugins/configuration/src/presets.rs b/default-plugins/configuration/src/presets.rs index b703ef99..eb9a55bb 100644 --- a/default-plugins/configuration/src/presets.rs +++ b/default-plugins/configuration/src/presets.rs @@ -37,6 +37,7 @@ keybinds clear-defaults=true {{ bind "w" {{ ToggleFloatingPanes; SwitchToMode "Locked"; }} bind "e" {{ TogglePaneEmbedOrFloating; SwitchToMode "Locked"; }} bind "c" {{ SwitchToMode "RenamePane"; PaneNameInput 0;}} + bind "i" {{ TogglePanePinned; SwitchToMode "Locked"; }} }} move {{ bind "m" {{ SwitchToMode "Normal"; }} @@ -233,6 +234,7 @@ keybinds clear-defaults=true {{ bind "w" {{ ToggleFloatingPanes; SwitchToMode "Normal"; }} bind "e" {{ TogglePaneEmbedOrFloating; SwitchToMode "Normal"; }} bind "c" {{ SwitchToMode "RenamePane"; PaneNameInput 0;}} + bind "i" {{ TogglePanePinned; SwitchToMode "Normal"; }} }} move {{ bind "{primary_modifier} h" {{ SwitchToMode "Normal"; }} @@ -440,6 +442,7 @@ keybinds clear-defaults=true {{ bind "w" {{ ToggleFloatingPanes; SwitchToMode "Normal"; }} bind "e" {{ TogglePaneEmbedOrFloating; SwitchToMode "Normal"; }} bind "c" {{ SwitchToMode "RenamePane"; PaneNameInput 0;}} + bind "i" {{ TogglePanePinned; SwitchToMode "Normal"; }} }} move {{ bind "n" "Tab" {{ MovePane; }} @@ -618,6 +621,7 @@ keybinds clear-defaults=true {{ bind "w" {{ ToggleFloatingPanes; SwitchToMode "Normal"; }} bind "e" {{ TogglePaneEmbedOrFloating; SwitchToMode "Normal"; }} bind "c" {{ SwitchToMode "RenamePane"; PaneNameInput 0;}} + bind "i" {{ TogglePanePinned; SwitchToMode "Normal"; }} }} move {{ bind "{primary_modifier} h" {{ SwitchToMode "Normal"; }} @@ -805,6 +809,7 @@ keybinds clear-defaults=true {{ bind "w" {{ ToggleFloatingPanes; SwitchToMode "Normal"; }} bind "e" {{ TogglePaneEmbedOrFloating; SwitchToMode "Normal"; }} bind "c" {{ SwitchToMode "RenamePane"; PaneNameInput 0;}} + bind "i" {{ TogglePanePinned; SwitchToMode "Normal"; }} }} move {{ bind "n" "Tab" {{ MovePane; }} @@ -967,6 +972,7 @@ keybinds clear-defaults=true {{ bind "w" {{ ToggleFloatingPanes; SwitchToMode "Normal"; }} bind "e" {{ TogglePaneEmbedOrFloating; SwitchToMode "Normal"; }} bind "c" {{ SwitchToMode "RenamePane"; PaneNameInput 0;}} + bind "i" {{ TogglePanePinned; SwitchToMode "Normal"; }} }} move {{ bind "{primary_modifier} m" {{ SwitchToMode "Normal"; }} |
