Skip to content
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
8 changes: 4 additions & 4 deletions src/command/dashboard/keymap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub fn action_for_key(ctx: Context, key: KeyEvent) -> Option<Action> {
fn dashboard_normal_key(key: KeyEvent) -> Option<Action> {
match key.code {
KeyCode::Char('?') => Some(Action::ShowHelp),
KeyCode::Char('q') | KeyCode::Esc => Some(Action::Quit),
KeyCode::Char('q') => Some(Action::Quit),
KeyCode::Char('c') if key.modifiers.contains(KeyModifiers::CONTROL) => Some(Action::Quit),
KeyCode::Char('n') if key.modifiers.contains(KeyModifiers::CONTROL) => Some(Action::Next),
KeyCode::Char('p') if key.modifiers.contains(KeyModifiers::CONTROL) => {
Expand Down Expand Up @@ -88,7 +88,7 @@ fn dashboard_filter_key(key: KeyEvent) -> Option<Action> {
fn worktree_normal_key(key: KeyEvent) -> Option<Action> {
match key.code {
KeyCode::Char('?') => Some(Action::ShowHelp),
KeyCode::Char('q') | KeyCode::Esc => Some(Action::Quit),
KeyCode::Char('q') => Some(Action::Quit),
KeyCode::Char('c') if key.modifiers.contains(KeyModifiers::CONTROL) => Some(Action::Quit),
KeyCode::Tab => Some(Action::SwitchTab),
KeyCode::Char('j') | KeyCode::Down => Some(Action::WorktreeNext),
Expand Down Expand Up @@ -195,7 +195,7 @@ pub fn help_rows(ctx: Context) -> Vec<(&'static str, &'static str)> {
match ctx {
Context::DashboardNormal => vec![
("?", "Show help"),
("q/Esc", "Quit"),
("q", "Quit"),
("j/k/C-n/C-p", "Navigate up/down"),
("Enter", "Jump to agent"),
("Tab", "Switch view"),
Expand Down Expand Up @@ -228,7 +228,7 @@ pub fn help_rows(ctx: Context) -> Vec<(&'static str, &'static str)> {
],
Context::WorktreeNormal => vec![
("?", "Show help"),
("q/Esc", "Quit"),
("q", "Quit"),
("j/k/C-n/C-p", "Navigate up/down"),
("Enter", "Jump to worktree"),
("Tab", "Switch to agents"),
Expand Down