GithubHelp home page GithubHelp logo

rtv's Introduction

Latest Version Supported Python versions

Reddit Terminal Viewer

Browse Reddit from your terminal

http://i.imgur.com/W1hxqCt.png

RTV is built in python using the curses library, and is compatible with most terminal emulators on Linux and OS X.

Update (v1.1)

Users can now post comments!

http://i.imgur.com/twls7iM.png

Installation

Install using pip

$ sudo pip install rtv

Or clone the repository

$ git clone https://github.com/michael-lazar/rtv.git
$ cd rtv
$ sudo python setup.py install

The installation will place a script in the system path

$ rtv
$ rtv --help

Usage

RTV currently supports browsing both subreddits and individual submissions. In each mode the controls are slightly different.

Global Commands

/ or j/k:Scroll to the prev/next item
a/z:Upvote/downvote the selected item
o:Open the selected item in the default web browser
r:Refresh the current page
?:Show the help message
q:Quit

Subreddit Mode

In subreddit mode you can browse through the top submissions on either the front page or a specific subreddit.

or l:View comments for the selected submission
/:Open a prompt to switch subreddits

The / prompt accepts subreddits in the following formats

  • /r/python
  • /r/python/new
  • /r/python+linux supports multireddits
  • /r/front will redirect to the front page

Submission Mode

In submission mode you can view the self text for a submission and browse comments.

or h:Return to subreddit mode
or l:Fold the selected comment, or load additional comments
c:Comment/reply on the selected item

Configuration

RTV will read a configuration file located at ~/.rtv. This can be used to avoid having to re-enter login credentials every time the program is launched. Each line in the file will replace the corresponding default argument in the launch script.

Example config:

~/.rtv

[rtv]
username=MyUsername
password=MySecretPassword

# Default subreddit
subreddit=CollegeBasketball

RTV allows users to compose comments and replys using their preferred text editor (vi, nano, gedit, etc). Set the environment variable RTV_EDITOR to specify which editor the program should use.

$ export RTV_EDITOR=gedit

rtv's People

Contributors

juanpabloaj avatar mekhami avatar michael-lazar avatar msabramo avatar noahmorrison avatar peterpans01 avatar shawnhind avatar snahor avatar tobywhughes avatar yskmt avatar

Watchers

 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.