An open API service indexing awesome lists of open source software.

https://github.com/yukaii/vimify-hackernews

Opinionated vim-inspired keybinding for HackerNews
https://github.com/yukaii/vimify-hackernews

browser-extension hackernews vim-keybindings vim-keyboard-shortcuts

Last synced: 4 months ago
JSON representation

Opinionated vim-inspired keybinding for HackerNews

Awesome Lists containing this project

README

        

# Vimify HackerNews - Vim-inpired keybinding to navigate HackerNews

[![Chrome Web Store](https://img.shields.io/chrome-web-store/v/mfbnahmjgjaneipfjhepbdbnfiochcgp)](https://chrome.google.com/webstore/detail/vimify-hackernews/mfbnahmjgjaneipfjhepbdbnfiochcgp)

https://github.com/Yukaii/hackernews-vim-keybinding/assets/4230968/9e16b212-af1e-44a9-97b5-c025a0e34f76

## Usage

| Keybinding | Description |
| :--------- | :--------------------------- |
| `j` | Navigate Down |
| `k` | Navigate Up |
| `gg` | Jump to first |
| `G` | Jump to last |
| `G` | Jump to ``th |
| `o` | Open Link |
| `O` | Open Link in New Tab |
| `v` | Upvote |
| `u` | Unvote |
| `d` | Open comments |
| `D` | Open comments in New Tab |
| `Escape` | Unfocus |
| `m` | Read More |
| `r` | Reload |
| `zz` | Scroll active item to center |
| `zt` | Scroll active item to top |
| `zb` | Scroll active item to bottom |
| `Ctrl+o` | Navigate back |
| `Ctrl+i` | Navigate forward |
| `Ctrl+d` | Scroll down half page |
| `Ctrl+u` | Scroll up half page |
| `Ctrl+f` | Scroll down full page |
| `Ctrl+b` | Scroll up full page |

### Site navigation

| Keybinding | URL |
| :--------- | :----------------------------------------------------------------------------------- |
| `gh` | [https://news.ycombinator.com/news](https://news.ycombinator.com/news) |
| `gs` | [https://news.ycombinator.com/show](https://news.ycombinator.com/show) |
| `gt` | Go to Threads |
| `ga` | [https://news.ycombinator.com/ask](https://news.ycombinator.com/ask) |
| `gj` | [https://news.ycombinator.com/jobs](https://news.ycombinator.com/jobs) |
| `gn` | [https://news.ycombinator.com/submit](https://news.ycombinator.com/submit) |
| `gc` | [https://news.ycombinator.com/newcomments](https://news.ycombinator.com/newcomments) |

## Special Thanks to GPT-4 chan

https://chat.openai.com/share/dc85aa8e-039d-48ae-84a9-eb72289d5992

## Prior Works

I knew some may exist, but I want to make my own version 🤣.

- Refined Hacker News: https://github.com/plibither8/refined-hacker-news
- Support many features. My extension only focus on vim style keyboard navigation with my own taste.
- `hackernews-platinum`: https://github.com/fberger/hackernews-platinum
- `hacker-news-keyboard-navigation`: https://github.com/ZYinMD/hacker-news-keyboard-navigation
- `hackercut`: https://chrome.google.com/webstore/detail/hacker-news-shortcut/dmiimkldokblocpmleogaeohkbffnobo

## License

MIT