aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorDenis Maximov <denismaximov98@gmail.com>2020-12-04 10:59:06 +0200
committerGitHub <noreply@github.com>2020-12-04 09:59:06 +0100
commitb7b3ff74cfa09fce1442bda42332939de4903a7d (patch)
treee84876d04679ebbc913e9d65f6c2a45f0642fdcc /src/main.rs
parentfix(compatibility): keypad arrow fixes (#80) (diff)
downloadsl0ppij-b7b3ff74cfa09fce1442bda42332939de4903a7d.tar.gz
sl0ppij-b7b3ff74cfa09fce1442bda42332939de4903a7d.tar.xz
sl0ppij-b7b3ff74cfa09fce1442bda42332939de4903a7d.zip
feat(rect): directional move focus #55 (#78)
* feat: directional move focus #55 * wip: refactored match into if let * wip: basic tests * feat: move to most overlapping pane tests * fix: formatting * wip: Moved the definitions to the Rect trait * formatting
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index ab40805f..0ad09ed0 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -231,6 +231,18 @@ pub fn start(mut os_input: Box<dyn OsApi>, opts: Opt) {
ScreenInstruction::MoveFocus => {
screen.move_focus();
}
+ ScreenInstruction::MoveFocusLeft => {
+ screen.move_focus_left();
+ }
+ ScreenInstruction::MoveFocusDown => {
+ screen.move_focus_down();
+ }
+ ScreenInstruction::MoveFocusRight => {
+ screen.move_focus_right();
+ }
+ ScreenInstruction::MoveFocusUp => {
+ screen.move_focus_up();
+ }
ScreenInstruction::ScrollUp => {
screen.scroll_active_terminal_up();
}