GithubHelp home page GithubHelp logo

noscripter / vim-hackernews Goto Github PK

View Code? Open in Web Editor NEW

This project forked from guidealexis/vim-hackernews

0.0 2.0 0.0 1019 KB

Browse Hacker News inside Vim

Home Page: http://www.vim.org/scripts/script.php?script_id=5108

License: MIT License

Python 65.41% Vim Script 34.59%

vim-hackernews's Introduction

vim-hackernews Build Status Version License

Browse Hacker News inside Vim.

Hacker News Front Page in Vim

Hacker News Comments in Vim

Uses cheeaun's Unofficial Hacker News API to retrieve home page stories and comments and FUCK YEAH MARKDOWN for rendering HTML articles as text.

Basic Usage

  • Open the Hacker News front page in Vim by executing the :HackerNews command
  • The HackerNews command takes an optional parameter to view items other than the top stories on the front page:
    • :HackerNews ask
    • :HackerNews show
    • :HackerNews shownew
    • :HackerNews jobs
    • :HackerNews best
    • :HackerNews active
    • :HackerNews newest
    • :HackerNews noobstories
  • Press lowercase o to open links in Vim
  • Press uppercase O to open links in default web browser
  • Numbered lines with story titles on the front page link to the story url
  • Comment lines on the front page link to the comments url
  • Press uppercase F to fold current comment thread
  • Press lowercase u to go back
  • Press Ctrl+r to go forward
  • Execute the :bd command to close and remove the Hacker News buffer

Enhanced Motions

Uppercase J and K are mapped to helpful new motions based on what type of content is on the screen:

  • Move to next/prev item when viewing the front page. (If the cursor is on a numbered line with story title the cursor will move to the next/prev numbered line with story title. If the cursor is on a comment line it will move to the next/prev comment line.)
  • Move to next/prev comment when viewing comments.
  • Move to next/prev paragraph when viewing the text version of articles.

Installation

git clone https://github.com/ryanss/vim-hackernews ~/.vim/bundle/vim-hackernews
Plugin 'ryanss/vim-hackernews'
NeoBundle 'ryanss/vim-hackernews'

Running Tests

$ vim -c Vader! tests.vader

Contributions

Issues and Pull Requests are always welcome!

License

Code is available according to the MIT License (see LICENSE).

vim-hackernews's People

Contributors

ryanss avatar joshhartigan avatar konstantin-konstantin avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.