Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(session-manager): allow Ctrl n and Ctrl p in attach to session to navigate items #3321

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
allow Ctrl n and Ctrl p in attach to session
addresses #2740

Unfortunately, ctrl+hjkl doesn't seem to work in this context.
  • Loading branch information
anopheles committed May 3, 2024
commit 95ea75bfafada3666eba2b3ac3c9f74e777e756b
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