Skip to content
Closed
Changes from 2 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
12 changes: 8 additions & 4 deletions Extensions/keyboardShortcut.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
Spicetify.CosmosAsync.post("sp://desktop/v1/shutdown"),
},

// Rotate through sidebar items using Ctrl+Tab and Ctrl+Shift+Tab
"ctrl+tab": { callback: () => rotateSidebar(1) },
"ctrl+shift+tab": { callback: () => rotateSidebar(-1) },
// Rotate through sidebar items using Shift + J and Shift + K
"shift+j": { callback: () => rotateSidebar(1) },
"shift+k": { callback: () => rotateSidebar(-1) },

// Focus on the app content before scrolling using Shift+PageUp and Shift+PageDown
"shift+pageup": { callback: () => focusOnApp() },
Expand All @@ -39,7 +39,11 @@
// 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
u: { callback: () => createScrollCallback(-SCROLL_STEP * 3) },
d: { callback: () => createScrollCallback(SCROLL_STEP * 3) },

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