Skip to content

feat(keyboard shortcut): Vimium-Style Keybind Update #3463

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

Open
wants to merge 4 commits 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
6 changes: 5 additions & 1 deletion Extensions/keyboardShortcut.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,18 @@
// Rotate through sidebar items using Ctrl+Tab and Ctrl+Shift+Tab
"ctrl+tab": { callback: () => rotateSidebar(1) },
"ctrl+shift+tab": { callback: () => rotateSidebar(-1) },

// Focus on the app content before scrolling using Shift+PageUp and Shift+PageDown
"shift+pageup": { callback: () => focusOnApp() },
"shift+pagedown": { callback: () => focusOnApp() },

// Scroll actions using 'j' and 'k' keys
j: { callback: () => createScrollCallback(SCROLL_STEP) },
k: { callback: () => createScrollCallback(-SCROLL_STEP) },

// Scroll half-page using 'u' and 'd' keys
d: { callback: () => createScrollCallback(SCROLL_STEP * 3) },
u: { callback: () => createScrollCallback(-SCROLL_STEP * 3) },

// Scroll to the top ('gg') or bottom ('Shift+g') of the page
"g g": { callback: () => scrollToPosition(0) },
Expand Down
Loading