Skip to content

Commit

Permalink
allow Ctrl n and Ctrl p in attach to session
Browse files Browse the repository at this point in the history
addresses #2740

Unfortunately, ctrl+hjkl doesn't seem to work in this context.
  • Loading branch information
anopheles committed May 3, 2024
1 parent 81c5a2a commit 95ea75b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions default-plugins/session-manager/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,12 @@ impl State {
} else if let Key::Up = key {
self.sessions.move_selection_up();
should_render = true;
} else if let Key::Ctrl('n') = key {
self.sessions.move_selection_down();
should_render = true;
} else if let Key::Ctrl('p') = key {
self.sessions.move_selection_up();
should_render = true;
} else if let Key::Char(character) = key {
if character == '\n' {
self.handle_selection();
Expand Down

0 comments on commit 95ea75b

Please sign in to comment.