Firefox 浏览器附加组件
  • 扩展
  • 主题
    • 适用于 Firefox
    • 字典和语言包
    • 其他浏览器网站
    • 适用于 Android 的附加组件
登录
ViHN: Vim for Hacker News 预览

ViHN: Vim for Hacker News 作者: Quentin Santos

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.

5 (1 reviews)5 (1 reviews)
11 个用户11 个用户
您需要 Firefox 来使用此扩展
下载 Firefox 并安装扩展
下载文件

扩展元数据

屏幕截图
Navigate comments with the keyboard, reply without leaving the page, browse newest commentsYou can also browse stories (front page, /best, /new, /newest, favorites, etc.)
关于此扩展
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.

Compatible with Hacker News Night Mode. See also Vimium.

Features

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.

Key bindings

Press ? to toggle help.

Note: Like in Vim mapping, case is important. So j means hitting the j key with Caps Lock disabled, and without holding Shift. But J means hitting j key with either Caps Lock enabled, or while holding Shift.

Navigate Comments/Stories
  • j: Next comment/story
  • k: Previous comment/story
  • J: Next sibling comment
  • K: Previous sibling comment
  • g: Go to first story/comment
  • G: Go to last story, last root comment or “More” link
  • H: Focus on story/comment at the top of the screen (high)
  • M: Focus on story/comment in the middle of the screen
  • L: Focus on story/comment at the bottom of the screen (low)
  • n: Switch to Newest Items
  • h: Parent comment/story (see [#follow-links](Follow Links))
  • p: Parent comment/story (see [#follow-links](Follow Links))

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

Follow links
  • o: Open story link/comment
  • O: Open story link/comment in background
  • c: Open comment thread
  • C: Open comment thread in background
  • b: Open both story link and comment thread
  • B: Open both story link and comment thread in background
  • h: Follow “context” link (go to comment thread, but focus on current comment)
  • p: Follow “parent” link (go to parent's page, and focus on parent comment/story)
  • 1: Open 1st link in comment (maintain shift to open in background)
  • …: …
  • 9: Open 9th link in comment (maintain shift to open in background)
  • 0: Open 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 the 1 key without shift (like typing `&`) to open the 1st link in foreground.
Hit the 1 key with shift (like typing `1`) to open the 1st link in background.
Same for the other link numbers.

Actions
  • m: Collapse/uncollapse comment tree
  • u: Upvote story/comment, or cancel vote
  • d: Downvote story/comment, or cancel vote
  • f: Favorite/un-favorite story/comment of the current page
  • F: Flag/unflag story/comment of the current page
  • r: Comment on story, or reply to comment (with preview)
  • e: Edit comment (with preview)
  • D: Delete comment
  • Ctrl+Return: Submit current form

Navigate Newest Items

In the Newest Items list, the following key bindings are available:
  • l: Show selected comment/story
  • j: Next comment/story
  • k: Previous comment/story
  • J: Jump 10 down
  • K: Jump 10 up
  • g: Go to top story/comment
  • G: Go to last story/comment
  • n: Switch back from Newest Items
评分 5(1 位用户)
登录以评价此扩展
目前尚无评分

已保存星级评分

5
1
4
0
3
0
2
0
1
0
阅读全部 1 条评价
权限与数据详细了解

必要权限:

  • 获取浏览器标签页
  • 访问您在 news.ycombinator.com 的数据
更多信息
附加组件链接
  • 用户支持网站
  • 支持邮箱
版本
1.37
大小
37.53 KB
上次更新
8 天前 (2025年8月1日)
相关分类
  • 收取点、新闻和博客
许可证
仅 GNU 通用公共许可证 v3.0
版本历史
  • 查看所有版本
添加到收藏集
举报此附加组件
1.37 的发布说明
v1.37
  • Fix numbered links not working in linked comment

v1.36
  • Fix numbered links not working in top item

v1.35
  • Fix navigating to top sometimes not clearing the hash in the URL

v1.34
  • Fix disabling newest items breaking collapsing threads with the mouse #59

v1.33
  • Fix quick reply form still visible in collapsed comments
  • Fix quick reply form losing focus when URL is updated

v1.32
  • Clicking inside/outside newest items activates/deactivates it
  • Display newest items list for screen width ≥900px instead of ≥1600px
  • Automatically scroll newest items list

v1.31
  • Fix needless scroll when clicking in the active item
  • Fix needless scroll when updating the URL in Firefox

v1.30
  • When scrolling to an item that is higher than the viewport, always scroll to the top of the item
  • Enable optional smooth scrolling on submission listings as well
  • Fix issue where clicking between submissions would do nothing, also causing H/M/L to not work
  • Add options to update the URL when navigating items: immediately, after a delay, or not at all
  • Add option to update the URL when closing the tab

v1.29
  • Save active item when closing tab (adds to history, and restores when reopening)
  • Press l to copy permalink to clipboard

v1.28
  • Handle new time format in Hacker News that breaks Newest Items

v1.27
  • Immediately scroll to corresponding item when navigating newest items #54
  • Revert change from v0.1.26 that always put the active item at top of view in normal browsing
  • Do not update current URL when navigating items to avoid polluting browser history #46

v0.1.26
  • Reduce noise in browser history on Chrome #46

v0.1.25
  • Only annotate the first 10 links (the ones with matching number hotkeys) #43
  • Clicking on the text of Ask HNs activates the top element #53

v0.1.24
  • Truncate milliseconds and UTC marker from times in Newest Items following format change in Hacker News: 2024-09-03 19:06:26.000000Z → 2024-09-03 19:06:26

v0.1.23
  • Fix navigating to parent on user's comments just moves upwards #48
  • Fix pressing "p" navigating to full thread instead of parent's page #49

v0.1.22
  • Scrolling to top really goes to top: removes hash from URL, and active comment/item

v0.1.21
  • Hitting o/c/b does not open self-referential links of Ask HNs

v0.1.20
  • Enable using 0 key to open 10th link

v0.1.19
  • Fix typo in options page

v0.1.18
  • More specific message for 504 errors (Hacker News is down)

v0.1.17
  • More descriptive name for extension

v0.1.16
  • Fix voting causing the content to move (reflow)
Quentin Santos 制作的更多扩展
  • 目前尚无评分

  • 目前尚无评分

  • 目前尚无评分

  • 目前尚无评分

  • 目前尚无评分

  • 目前尚无评分

转至 Mozilla 主页

附加组件

  • 关于
  • Firefox 附加组件博客
  • 扩展工坊
  • 开发者中心
  • 开发者政策
  • 社区博客
  • 论坛
  • 报告缺陷
  • 评价指南

浏览器

  • Desktop
  • Mobile
  • Enterprise

产品

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • 隐私
  • Cookie
  • 法律

除非另有注明,否则本网站上的内容可按知识共享 署名-相同方式共享 3.0 或更新版本使用。