Louis/keyboard shortcut improve (#847)
* Scroll card into view when opened * improve positioning * More shortcuts (vibe-kanban 9f9f5c89) Let's add some more shortcuts: - When in fullscreen mode, 'j' should navigate to the previous task and 'k' to the next - 'd' should trigger the delete task dialog * More shortcuts (vibe-kanban 9f9f5c89) Let's add some more shortcuts: - When in fullscreen mode, 'j' should navigate to the previous task and 'k' to the next - 'd' should trigger the delete task dialog * More shortcuts (vibe-kanban 9f9f5c89) Let's add some more shortcuts: - When in fullscreen mode, 'j' should navigate to the previous task and 'k' to the next - 'd' should trigger the delete task dialog * Add h/l for column navigation (vibe-kanban eade645d) Similar to how we have j and k for next/previous can we add h and l for next/previous column
This commit is contained in:
committed by
GitHub
parent
fde7ae3efe
commit
4f7351ce16
@@ -18,6 +18,7 @@ export enum Action {
|
||||
OPEN_DETAILS = 'open_details',
|
||||
SHOW_HELP = 'show_help',
|
||||
TOGGLE_FULLSCREEN = 'toggle_fullscreen',
|
||||
DELETE_TASK = 'delete_task',
|
||||
}
|
||||
|
||||
export interface KeyBinding {
|
||||
@@ -87,28 +88,28 @@ export const keyBindings: KeyBinding[] = [
|
||||
},
|
||||
{
|
||||
action: Action.NAV_UP,
|
||||
keys: 'up',
|
||||
keys: ['up', 'k'],
|
||||
scopes: [Scope.KANBAN],
|
||||
description: 'Move up within column',
|
||||
group: 'Navigation',
|
||||
},
|
||||
{
|
||||
action: Action.NAV_DOWN,
|
||||
keys: 'down',
|
||||
keys: ['down', 'j'],
|
||||
scopes: [Scope.KANBAN],
|
||||
description: 'Move down within column',
|
||||
group: 'Navigation',
|
||||
},
|
||||
{
|
||||
action: Action.NAV_LEFT,
|
||||
keys: 'left',
|
||||
keys: ['left', 'h'],
|
||||
scopes: [Scope.KANBAN],
|
||||
description: 'Move to previous column',
|
||||
group: 'Navigation',
|
||||
},
|
||||
{
|
||||
action: Action.NAV_RIGHT,
|
||||
keys: 'right',
|
||||
keys: ['right', 'l'],
|
||||
scopes: [Scope.KANBAN],
|
||||
description: 'Move to next column',
|
||||
group: 'Navigation',
|
||||
@@ -138,6 +139,15 @@ export const keyBindings: KeyBinding[] = [
|
||||
description: 'Toggle fullscreen view',
|
||||
group: 'Task Details',
|
||||
},
|
||||
|
||||
// Task actions
|
||||
{
|
||||
action: Action.DELETE_TASK,
|
||||
keys: 'd',
|
||||
scopes: [Scope.KANBAN],
|
||||
description: 'Delete selected task',
|
||||
group: 'Task Details',
|
||||
},
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user