creddit mirror + changes
Go to file
Noah Goldsmid aa129b9c9b Fix small compiling problem 2018-07-17 17:14:21 +02:00
include Fix bug with 'L' key not working. Fix up/down to just report score 2016-07-23 13:49:21 -07:00
libreddit Fix bug with 'L' key not working. Fix up/down to just report score 2016-07-23 13:49:21 -07:00
src Fix small compiling problem 2018-07-17 17:14:21 +02:00
.gitignore Few minor formatting and UI changes 2013-07-18 21:47:11 +08:00
LICENSE Added LICENSE file 2013-07-10 10:08:59 +10:00
Makefile Fix typo in Makefile 2014-02-21 18:04:47 -08:00
README.md Update README.md to add some code blocks 2018-02-22 19:57:57 +01:00
TODO.md update date display in comment to grab UTC time from the reddit api 2016-04-26 15:25:18 -07:00
common.mk creddit: Fix ./common.mk issue, uname was called with wrong parameter 2013-11-12 13:13:53 -05:00
run.sh creddit: Pass parameters to run.sh to creddit 2013-11-01 15:50:00 -04:00

README.md

cReddit

CLI Reddit client written in C. Oh, crossplatform too!

How to build

Current required libraries are libcurl and libncursesw (Wide-character version of libncurses). The project itself comprises a library called libreddit and a program called creddit.

To do a normal compilation, run the two commands: make and make install

Note: 'make install' will need to be run as root to install to the root directory.

If you would like to compile libreddit on its own as a shared library, you can run make libreddit. The resulting shared library will be ./build/libreddit.so. You can also install the library separately via make libreddit_install. To use the library, include "reddit.h" and link against libreddit.so.

To see other documented compilation options, read the top comments in ./Makefile.

Default Keypresses

Link screen:

  • k / UP -- Move up one link in the list
  • j / DOWN -- Move down one link in the list
  • K -- Scroll up link text of open link
  • J -- Scroll down link text of open link
  • L -- Get the next list of Links from Reddit
  • u -- Update the list (Clears the list of links, and then gets a new list from Reddit)
  • l / ENTER -- Open the selected link
  • c -- Display the comments for the selected link
  • q -- Close open Link, or exit program if no link is open
  • [1 - 5] -- Switch between subreddit list types (hot, new, rising, controversial, top)

Comment screen:

  • k / UP -- Move up one comment in the list
  • j / DOWN -- Move down one comment in the list
  • K -- Scroll up comment text of open comment
  • J -- Scroll down comment text of open comment
  • PGUP -- Move up one comment at the same depth
  • PGDN -- Move down one comment at the same depth
  • l / ENTER -- Open the selected comment
  • q / h -- Close the open comment, or close the comment screen if no comment is open