Add vim-style keyboard movement keys (hjkl)#277
Merged
Conversation
Make hjkl (and arrow keys) movement keys: h/l move between nav tabs, j/k move through list entries. Pressing j/down from a tab jumps to the first list entry on the page, and k/up from the first entry returns to the nav tab. The home tab shortcut moves from h to o to free up h for left movement, and LinkList entries gain a data-nav-item marker so movement targets work on every list page.
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
just-be-dev | 75475d7 | Commit Preview URL Branch Preview URL |
Jun 04 2026, 04:53 PM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I just felt like I should be able to move around my own site faster. I don't really use the home shortcut too much so I moved that to o and let h just be a left movement key. Arrows also work.
Adds vim-style movement to the keyboard shortcut system:
h/l(or arrow left/right) move between nav tabs, andj/k(or arrow up/down) move through list entries. Pressingj/down from a tab — including right after navigating via a tab shortcut — jumps to the first list entry on the page (first Latest Posts entry on home, first post on/blog, etc.), andk/up from the first entry returns to the nav tab. The home tab shortcut moves fromhtoosohis free for left movement, andLinkListentries gain adata-nav-itemmarker so movement targets work on every list page. Movement keys onlypreventDefaultwhen they actually move focus, so arrow-key scrolling still works at list boundaries. Verified withmise run build,mise run lint(0 errors), and a real-browser pass through all behaviors.