diff options
author | Dante Pippi <6619666+dantepippi@users.noreply.github.com> | 2021-05-07 18:19:23 -0300 |
---|---|---|
committer | Dante Pippi <6619666+dantepippi@users.noreply.github.com> | 2021-05-09 17:05:14 -0300 |
commit | 9c09cf16587a2b97c63c05d94ff4f18fe557cbf5 (patch) | |
tree | 18a8ff8eebbbff0f93eb5af8e270c398ccb65a70 /example | |
parent | 2cd433d0d6a43e0b774ee212fc3c95743a520460 (diff) |
New behavior for h and l
New behavior for h and l, will change tabs if there are no available
panes in the direction.
cargo clippy
Ensuring atomicity for the MoveFocusOrTab
- Blocking the input thread for the action MoveFocusOrTab
- Using "unreachable" macro in match arm to make it clear that the
directions Up and Down should not be used with the action MoveFocusOrTab
Adding tests
Diffstat (limited to 'example')
-rw-r--r-- | example/default.yaml | 4 | ||||
-rw-r--r-- | example/tmux-overview.yaml | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/example/default.yaml b/example/default.yaml index 578f4ebf9..cdddf1d35 100644 --- a/example/default.yaml +++ b/example/default.yaml @@ -16,9 +16,9 @@ keybinds: key: [Ctrl: 'q',] - action: [NewPane: ] key: [ Alt: 'n',] - - action: [MoveFocus: Left,] + - action: [MoveFocusOrTab: Left,] key: [ Alt: 'h',] - - action: [MoveFocus: Right,] + - action: [MoveFocusOrTab: Right,] key: [ Alt: 'l',] - action: [MoveFocus: Down,] key: [ Alt: 'j',] diff --git a/example/tmux-overview.yaml b/example/tmux-overview.yaml index 887a84ad2..c40bdb771 100644 --- a/example/tmux-overview.yaml +++ b/example/tmux-overview.yaml @@ -17,9 +17,9 @@ keybinds: key: [Ctrl: 'q',] - action: [NewPane: ] key: [ Alt: 'n',] - - action: [MoveFocus: Left,] + - action: [MoveFocusOrTab: Left,] key: [ Alt: 'h',] - - action: [MoveFocus: Right,] + - action: [MoveFocusOrTab: Right,] key: [ Alt: 'l',] - action: [MoveFocus: Down,] key: [ Alt: 'j',] |