Updated the supported python versions list.
Fixed regression in displaying xposts. #173.
Fixing a few style things.
Added a more robust test for the tornado handler.
Trying without pytest-cov
Updated travis for coverage.
Remove python 3.2 support because no unicode literals, following what praw supports.
"Side effect is not iterable."
Added requirements for travis.
Renamed travis file correctly.
Adding test configurations, got tox working.
Adding vcr cassettes to the repo.
Renamed requirements files.
Split up tests and cleaned up test names.
Tests done, still one failure.
Treat cassettes as binary to prevent bad merging.
Fixed a few broken tests.
Added a timeout to notifications.
Prepping subreddit page.
Finished submission page tests.
Working on submission tests.
Fixed vcr matching on urls with params, started submission tests.
Log cleanup.
Still trying to fix a broken test.
-Fixed a few pytest bugs and tweaked logging.
Still working on subscription tests.
Finished page tests, on to subscription page.
Finished content tests and starting page tests.
Added the test refresh-token file to gitignore.
Moved functional test file out of the repository.
Continuing work on subreddit content tests.
Tests now match module names, cassettes are split into individual tests for faster loading.
Linter fixes.
Cleanup.
Added support for nested loaders.
Added pytest options, starting subreddit content tests.
Back on track with loader, continuing content tests.
Finishing submission content tests and discovered snag with loader exception handling.
VCR up and running, continuing to implement content tests.
Playing around with vcr.py
Moved helper functions into terminal and new objects.py
Fixed a few broken tests.
Working on navigator tests.
Reorganizing some things.
Mocked webbrowser._tryorder for terminal test.
Completed oauth tests.
Progress on the oauth tests.
Working on adding fake tornado request.
Starting on OAuth tool tests.
Finished curses helpers tests.
Still working on curses helpers tests.
Almost finished with tests on curses helpers.
Adding tests and working on mocking stdscr.
Starting to add tests for curses functions.
Merge branch 'future_work' of https://github.com/michael-lazar/rtv into future_work
Refactoring controller, still in progress.
Renamed auth handler.
Rename CursesHelper to CursesBase.
Added temporary file with a possible template for func testing.
Mixup between basename and dirname.
Merge branch 'future_work' of https://github.com/michael-lazar/rtv into future_work
py3 compatability for mock.
Beginning to refactor the curses session.
Started adding tests, improved unicode handling in the config.
Cleanup, fixed a few typos.
Major refactor, almost done!.
Started a config class.
Merge branch 'master' into future_work
The editor now handles unicode characters in all situations.
Fixed a few typos from previous commits.
__main__.py formatting.
Cleaned up history logic and moved to the config file.
82 lines
2.5 KiB
Python
82 lines
2.5 KiB
Python
# -*- coding: utf-8 -*-
|
|
from __future__ import unicode_literals
|
|
|
|
AGENT = """\
|
|
desktop:https://github.com/michael-lazar/rtv:{version}\
|
|
(by /u/civilization_phaze_3)\
|
|
"""
|
|
|
|
SUMMARY = """
|
|
Reddit Terminal Viewer is a lightweight browser for www.reddit.com built into a
|
|
terminal window.
|
|
"""
|
|
|
|
CONTROLS = """
|
|
Controls
|
|
--------
|
|
RTV currently supports browsing both subreddits and individual submissions.
|
|
In each mode the controls are slightly different. In subreddit mode you can
|
|
browse through the top submissions on either the front page or a specific
|
|
subreddit. In submission mode you can view the self text for a submission and
|
|
browse comments.
|
|
"""
|
|
|
|
HELP = """
|
|
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/Q` : Quit/Force 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
|
|
`i` : Display new messages prompt
|
|
`s` : Open/close subscribed subreddits list
|
|
|
|
Subreddit Mode
|
|
`l` or `RIGHT` : Enter the selected submission
|
|
`/` : Open a prompt to switch subreddits
|
|
`f` : Open a prompt to search the current subreddit
|
|
|
|
Submission Mode
|
|
`h` or `LEFT` : Return to subreddit mode
|
|
`SPACE` : Fold the selected comment, or load additional comments
|
|
"""
|
|
|
|
COMMENT_FILE = """
|
|
# Please enter a comment. Lines starting with '#' will be ignored,
|
|
# and an empty message aborts the comment.
|
|
#
|
|
# Replying to {author}'s {type}
|
|
{content}
|
|
"""
|
|
|
|
COMMENT_EDIT_FILE = """{content}
|
|
# Please enter a comment. Lines starting with '#' will be ignored,
|
|
# and an empty message aborts the comment.
|
|
#
|
|
# Editing your comment
|
|
"""
|
|
|
|
SUBMISSION_FILE = """
|
|
# Please enter your submission. Lines starting with '#' will be ignored,
|
|
# and an empty message aborts the submission.
|
|
#
|
|
# The first line will be interpreted as the title
|
|
# The following lines will be interpreted as the content
|
|
#
|
|
# Posting to {name}
|
|
"""
|
|
|
|
SUBMISSION_EDIT_FILE = """{content}
|
|
# Please enter your submission. Lines starting with '#' will be ignored,
|
|
# and an empty message aborts the submission.
|
|
#
|
|
# Editing {name}
|
|
""" |