feat: add comment keybind navigation

This commit is contained in:
James Xylight committed 2025-08-07 21:21:23 -07:00
1 parent 0ca8f7474e
commit 7e2e7c513c
10 files changed
+152 -52

No files matched your search

+14 -11
View File
@@ -111,20 +111,21 @@ interface Settings {
voteRatioBar: boolean
keybinds: {
post: {
lists: {
next: Keybind
previous: Keybind
}
posts: {
upvote: Keybind
downvote: Keybind
save: Keybind
expand: Keybind
}
comments: {
next: Keybind
previous: Keybind
upvote: Keybind
downvote: Keybind
collapse: Keybind
}
commandPalette: {
open: Keybind
}
}
}
@@ -209,19 +210,21 @@ export const defaultSettings: Settings = {
},
voteRatioBar: false,
keybinds: {
post: {
lists: {
next: { ctrl: false, key: 'k' },
previous: { ctrl: false, key: 'j' },
},
posts: {
upvote: { ctrl: false, key: 'n' },
downvote: { ctrl: false, key: 'm' },
save: { ctrl: true, key: 's' },
expand: { ctrl: false, key: 'h' },
},
comments: {
next: { ctrl: false, key: 'k' },
previous: { ctrl: false, key: 'j' },
upvote: { ctrl: false, key: 'n' },
downvote: { ctrl: false, key: 'm' },
collapse: { ctrl: false, key: 'l' },
},
commandPalette: {
open: { ctrl: false, key: '/' },
},
},
}