Skip to content

Add vim-style keyboard movement keys (hjkl)#277

Merged
just-be-dev merged 1 commit into
mainfrom
just-be/vim-keyboard-shortcuts
Jun 5, 2026
Merged

Add vim-style keyboard movement keys (hjkl)#277
just-be-dev merged 1 commit into
mainfrom
just-be/vim-keyboard-shortcuts

Conversation

@just-be-dev
Copy link
Copy Markdown
Owner

@just-be-dev just-be-dev commented Jun 4, 2026

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, and j/k (or arrow up/down) move through list entries. Pressing j/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.), and k/up from the first entry returns to the nav tab. The home tab shortcut moves from h to o so h is free for left movement, and LinkList entries gain a data-nav-item marker so movement targets work on every list page. Movement keys only preventDefault when they actually move focus, so arrow-key scrolling still works at list boundaries. Verified with mise run build, mise run lint (0 errors), and a real-browser pass through all behaviors.

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.
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

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

@just-be-dev just-be-dev merged commit 4f13157 into main Jun 5, 2026
5 checks passed
@just-be-dev just-be-dev deleted the just-be/vim-keyboard-shortcuts branch June 5, 2026 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant