Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Vim for Hacker News

NotificationsYou must be signed in to change notification settings

qsantos/ViHN

Repository files navigation

ViHN

Vi-style key bindings for browsing Hacker News.

It's fast. If you have to wait a perceptible amount of time, that's a bug.

Get the Add-onAvailable in the Chrome Web Store

Compatible withHacker News Night Mode.See alsoVimium.

Features

This browser extension is compatible with Firefox and Chrome.Use the key bindings similar to Vi to navigate Hacker News stories and comments.It should work on story listings (front page, /new, /newest, /best, user submissions, etc.), comment threads, and comment listings (user comments, etc.).

Also, you can quickly find new comments by hitting “n” to browse comments in inverse chronological order.

In addition, the quick-reply and quick-edit forms let you see a preview of the comment you are writing.

Finally, the original poster (OP) is highlighted in comments.

Demo.mp4

Key bindings

Press? to toggle help.

Note:Like in Vim mapping, case is important.Soj means hitting thej key withCaps Lock disabled, and without holdingShift.ButJ means hittingj key with eitherCaps Lock enabled, or while holdingShift.

Navigate Comments/Stories

KeyEffect
jNext comment/story
kPrevious comment/story
JNext sibling comment
KPrevious sibling comment
gGo to first story/comment
GGo to last story, last root comment or “More” link
HFocus on story/comment at the top of the screen (high)
MFocus on story/comment in themiddle of the screen
LFocus on story/comment at the bottom of the screen (low)
nSwitch to Newest Items
hParent comment/story (see [#follow-links](Follow Links))
pParent comment/story (see [#follow-links](Follow Links))

Note:You can also select an item by clicking in its bounding box.

Follow links

KeyEffect
oOpen story link/comment
OOpen story link/comment in background
cOpen comment thread
COpen comment thread in background
bOpen both story link and comment thread
BOpen both story link and comment thread in background
hFollow “context” link (go to comment thread, but focus on current comment)
pFollow “parent” link (go to parent's page, and focus on parent comment/story)
1Open 1st link in comment (maintain shift to open in background)
9Open 9th link in comment (maintain shift to open in background)
0Open 10th link in comment (maintain shift to open in background)

Note:When on the “XXX more comments” link, you can hit either of[lLcC] to go to the next page of comments.

Note:The digits of the numeric keypad work as well to open links in comments.However, this can only open links in foreground.

Note:When using AZERTY, the key bindings to open links inside comments still work like in QWERTY.Hit the1 keywithout shift (like typing&) to open the 1st link in foreground.Hit the1 keywith shift (like typing1) to open the 1st link in background.Same for the other link numbers.

Actions

KeyEffect
mCollapse/uncollapse comment tree
uUpvote story/comment, or cancel vote
dDownvote story/comment, or cancel vote
fFavorite/un-favorite story/comment of the current page
FFlag/unflag story/comment of the current page
rComment on story, or reply to comment (with preview)
eEdit comment (with preview)
DDelete comment
Ctrl+ReturnSubmit current form

Navigate Newest Items

In the Newest Items list, the following key bindings are available:

KeyEffect
lShow selected comment/story
jNext comment/story
kPrevious comment/story
JJump 10 down
KJump 10 up
gGo to top story/comment
GGo to last story/comment
nSwitch back from Newest Items

[8]ページ先頭

©2009-2025 Movatter.jp