ViHN: Vim for Hacker News par 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.
Vous avez besoin de Firefox pour utiliser cette extension
MĂ©tadonnĂ©es de lâextension
Captures dâĂ©cran
Ă propos de cette 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.
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
Note:
You can also select an item by clicking in its bounding box.
Follow links
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
Navigate Newest Items
In the Newest Items list, the following key bindings are available:
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
Ăvaluez votre expĂ©rience
PermissionsEn savoir plus
Ce module a besoin de :
- Accéder aux onglets du navigateur
- Accéder à vos données pour news.ycombinator.com
Plus dâinformations
- Liens du module
- Version
- 1.28
- Taille
- 34,68Â Ko
- DerniĂšre mise Ă jour
- il y a 2 mois (23 oct. 2024)
- Catégories associées
- Licence
- GNU General Public License v3.0 uniquement
- Historique des versions
Ajouter Ă la collection
Notes de version pour la version 1.28
# 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)
# v0.1.15
- Fix showing children of collapsed comment when uncollapsing grandparent
# v0.1.14
- Document that key bindings are case-sensitive
# v0.1.13
- Enable preview in new-comment form without hitting ârâ
- Enable preview in submission form
- Use 503-safe method when clicking vote links (not just when using key bindings)
- Same when collapsing/uncollapsing comments
- Same with favorite/un-favorite/flag/unflag links
- Same with hide/un-hide links
- Quick-reply/edit/delete when clicking corresponding link
# v0.1.12
- Fix showing link counter on some âreplyâ links (since v0.1.11)
# v0.1.11
- Extend the orange vertical bar to âadd commentâ/âreplyâ form and story text (Show HN) in head item
- Can now use the digit keys to open links in submission text (e.g. Show HN)
# v0.1.10
- Add options page
- Apply options immediately
# v0.1.9
- Schedule vote requests to avoid 503s
- Fix hitting m on story in comment thread making upvote button disappear
- Fix innocuous error when toggling last comment
- Fix quick-edit form broken by preview feature in v0.1.5
- Fix Ctrl+Return submitting disabled form
- Redirect to parent when deleting comment
# v0.1.8
- Fix smooth scrolling disabled when jumping to âmoreâ link
# v0.1.7
- Fix regression in v0.1.6: unable to open comments threads by hitting c/C
# v0.1.6
- Use J/K to jump down/up 10 at a time in Newest Items
- Hit b/B to open both permalink and comment thread
- Fix missing space in help page
- Hit numeric keys to open links in comments
- 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)
# v0.1.15
- Fix showing children of collapsed comment when uncollapsing grandparent
# v0.1.14
- Document that key bindings are case-sensitive
# v0.1.13
- Enable preview in new-comment form without hitting ârâ
- Enable preview in submission form
- Use 503-safe method when clicking vote links (not just when using key bindings)
- Same when collapsing/uncollapsing comments
- Same with favorite/un-favorite/flag/unflag links
- Same with hide/un-hide links
- Quick-reply/edit/delete when clicking corresponding link
# v0.1.12
- Fix showing link counter on some âreplyâ links (since v0.1.11)
# v0.1.11
- Extend the orange vertical bar to âadd commentâ/âreplyâ form and story text (Show HN) in head item
- Can now use the digit keys to open links in submission text (e.g. Show HN)
# v0.1.10
- Add options page
- Apply options immediately
# v0.1.9
- Schedule vote requests to avoid 503s
- Fix hitting m on story in comment thread making upvote button disappear
- Fix innocuous error when toggling last comment
- Fix quick-edit form broken by preview feature in v0.1.5
- Fix Ctrl+Return submitting disabled form
- Redirect to parent when deleting comment
# v0.1.8
- Fix smooth scrolling disabled when jumping to âmoreâ link
# v0.1.7
- Fix regression in v0.1.6: unable to open comments threads by hitting c/C
# v0.1.6
- Use J/K to jump down/up 10 at a time in Newest Items
- Hit b/B to open both permalink and comment thread
- Fix missing space in help page
- Hit numeric keys to open links in comments
Plus de modules créés par Quentin Santos
- Il nây a aucune note pour lâinstant
- Il nây a aucune note pour lâinstant
- Il nây a aucune note pour lâinstant
- Il nây a aucune note pour lâinstant
- Il nây a aucune note pour lâinstant
- Il nây a aucune note pour lâinstant