Vi-style key bindings for browsing Hacker News

Latest Version

Version
1.28
Update
October 23, 2024
Size
30.58KiB
Developer
Category
Users
25
Rating
5 ★
Manifest Version
3
Web Store Status
Languages Support
English (United States)
See more
Permissions
Storage
See more

ViHN: Vim for Hacker News Extension

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.

## 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)
- p: Parent comment/story (see 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
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "name": "ViHN: Vim for Hacker News", "short_name": "ViHN", "description": "Vi-style key bindings for browsing Hacker News", "author": "Quentin Santos", "manifest_version": 3, "version": "1.28", "key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAooYOPfTuX73AcUHgIxxyH4XEsvIDujav9JIs6M+sXJii9lCVlb1kqdbyAYlYmTnZ5MsnFiujybHntGuGmNBvaqsUYqFGbC8RMLJ76bGK+N0HU35qVy7qTS8brpWD7DpXZH+c+xn9w93zPOf3ZcKMbo2f3bUbvAuvEgWSZK3LRJ6gIcDGv0o0wNc7iyxwCMAOq+qpWOfu6nibBD+Bv7/VIoE/6bn/bGHaH/qH8rqmALej5oht/8NjWU+HVyyUFWICy/AdGppjyKkizEtX8TNjijIGVXJLZ2aqoLR279Mv3pdpPMD9wShIrP0eww1c2yiYTKMkarDFdrTy4LP6fLA/nwIDAQAB", "icons": { "128": "icon128.png" }, "permissions": [ "storage" ], "background": { "service_worker": "background.js" }, "options_ui": { "page": "options.html" }, "content_scripts": [ { "matches": [ "https://news.ycombinator.com/*" ], "js": [ "get-option.js", "main.js" ], "css": [ "main.css" ], "run_at": "document_end" } ]}
Read more

Similar Extensions

icon

Redense Clip Extension · Productivity 25 0 ★ 68.23KiB

icon

Apiary - Web Highlighter & Annotator Extension · Social & Communication 25 0 ★ 1.51MiB

icon

LumoSearch: Airbnb Review Summary & Search Extension · Productivity 25 2 ★ 49.99KiB

icon

Context Overlay Extension · Productivity 25 0 ★ 3.6MiB

icon

Card-counter for Trello Extension · Productivity 25 2 ★ 9.91KiB

icon

TranscribeIQ - AI Insights for Transcripts Extension · Productivity 25 11 ★ 67.99KiB

icon

Kloser Extension · Productivity 25 4 ★ 11.04KiB

icon

Linqbase - LinkedIn CRM & Outreach Extension · Productivity 25 4 ★ 2.13MiB

icon

Suspend tabs Extension · Productivity 25 0 ★ 27.74KiB

icon

Up Arrow to Edit Last Message on WA Web app Extension · Productivity 25 4 ★ 15.91KiB

icon

Thymeline Extension · Productivity 25 1 ★ 230KiB

icon

Boss Hub | Card Extension · Productivity 25 0 ★ 1.61MiB

icon

Vehichaul Importer Extension · Productivity 25 0 ★ 75.93KiB

icon

Add to Benevolist.org Button Extension · Shopping 25 0 ★ 26.28KiB

icon

Vind: Keyboard Shortcuts for Every Website Extension · Productivity 25 3 ★ 1.52MiB

icon

Boss Hub | Signal YES Extension · Productivity 25 2 ★ 623KiB

icon

Family Tree Validator Extension · Productivity 25 3 ★ 665KiB

icon

JobJette - Free AI Job Search Copilot Extension · Productivity 25 1 ★ 1.2MiB

icon

AI Anyone Extension · Productivity 25 1 ★ 482KiB

icon

Sourcer Extension · News & Weather 25 4 ★ 5.33MiB

icon

The Fact Checker Extension · Social & Communication 25 5 ★ 4.67MiB

icon

GPT Based - A Powerful ChatGPT Prompt Generator Extension · Productivity 25 5 ★ 305KiB

icon

Easy Reply Extension · Productivity 25 3 ★ 199KiB

icon

GitHub File Diff Extension · Developer Tools 25 0 ★ 354KiB