Upping version, updated readme, changed post keybind.

This commit is contained in:
Michael Lazar
2015-05-28 20:54:04 -07:00
parent 4f92844fc0
commit 2a935922bf
6 changed files with 142 additions and 91 deletions

View File

@@ -1 +1 @@
__version__ = '1.3'
__version__ = '1.4'

View File

@@ -28,30 +28,29 @@ browse comments.
"""
HELP = """
Global Commands
`UP/DOWN` or `j/k` : Scroll to the prev/next item
`a/z` : Upvote/downvote the selected item
`ENTER` or `o` : Open the selected item in the default web browser
`r` : Refresh the current page
`u` : Login/logout of your user account
`?` : Show this help message
`q` : Quit the program
Basic Commands
`j/k` or `UP/DOWN` : Move the cursor up/down
`m/n` or `PgUp/PgDn`: Jump to the previous/next page
`o` or `ENTER` : Open the selected item as a webpage
`r` or `F5` : Refresh page content
`u` : Log in or switch accounts
`?` : Show the help screen
`q` : Quit
Authenticated Commands
`a/z` : Upvote/downvote
`c` : Compose a new post or comment
`e` : Edit an existing post or comment
`d` : Delete an existing post or comment
Subreddit Mode
`RIGHT` or `l` : View comments for the selected submission
`l` or `RIGHT` : Enter the selected submission
`/` : Open a prompt to switch subreddits
`f` : Open a prompt to search the current subreddit
`p` : Post a new submission to the current subreddit
`e` : Edit the selected submission
`d` : Delete the selected submission
Submission Mode
`LEFT` or `h` : Return to subreddit mode
`RIGHT` or `l` : Fold the selected comment, or load additional comments
`c` : Post a new comment on the selected item
`e` : Edit the selected comment
`d` : Delete the selected comment
`h` or `LEFT` : Return to subreddit mode
`SPACE` : Fold the selected comment, or load additional comments
"""
COMMENT_FILE = u"""

View File

@@ -45,7 +45,7 @@ class SubmissionPage(BasePage):
cmd = self.stdscr.getch()
self.controller.trigger(cmd)
@SubmissionController.register(curses.KEY_RIGHT, 'l')
@SubmissionController.register(curses.KEY_RIGHT, 'l', ' ')
def toggle_comment(self):
"Toggle the selected comment tree between visible and hidden"

View File

@@ -115,7 +115,7 @@ class SubredditPage(BasePage):
global history
history.add(url)
@SubredditController.register('p')
@SubredditController.register('c')
def post_submission(self):
"Post a new submission to the given subreddit"