|
|
; Reddit Terminal Viewer Configuration File; https://github.com/michael-lazar/rtv;; This file should be placed in $XDG_CONFIG/rtv/rtv.cfg; If $XDG_CONFIG is not set, use ~/.config/rtv/rtv.cfg
[rtv]################### General Settings##################
; Turn on ascii-only mode to disable all unicode characters.; This may be necessary for compatibility with some terminal browsers.ascii = False
; Turn on monochrome mode to disable color.monochrome = False
; Flash when an invalid action is executed.flash = True
; Enable debugging by logging all HTTP requests and errors to the given file.;log = /tmp/rtv.log
; Default subreddit that will be opened when the program launches.subreddit = front;subreddit = python;subreddit = python+linux+programming;subreddit = all
; Allow rtv to store reddit authentication credentials between sessions.persistent = True
; Automatically log in on startup, if credentials are available.autologin = True
; Clear any stored credentials when the program starts.clear_auth = False
; Maximum number of opened links that will be saved in the history file.history_size = 200
; Open external links using programs defined in the mailcap config.enable_media = False
; Maximum number of columns for a commentmax_comment_cols = 120
; Maximum number of columns for pager;max_pager_cols = 70
; Hide username if logged in, display "Logged in" insteadhide_username = False
; Color theme, use "rtv --list-themes" to view a list of valid options.; This can be an absolute filepath, or the name of a theme file that has; been installed into either the custom of default theme paths.;theme = molokai
################# OAuth Settings################; This sections defines the paramaters that will be used during the OAuth; authentication process. rtv is registered as an "installed app",; see https://github.com/reddit/reddit/wiki/OAuth2 for more information.
; These settings are defined at https://www.reddit.com/prefs/apps and should; not be altered unless you are defining your own developer application.oauth_client_id = E2oEtRQfdfAfNQoauth_client_secret = praw_gapfilloauth_redirect_uri = http://127.0.0.1:65000/
; Port that the rtv webserver will listen on. This should match the redirect; uri defined above.oauth_redirect_port = 65000
; Access permissions that will be requested.oauth_scope = edit,history,identity,mysubreddits,privatemessages,read,report,save,submit,subscribe,vote
; This is a separate token for the imgur api. It's used to extract images; from imgur links and albums so they can be opened with mailcap.; See https://imgur.com/account/settings/apps to generate your own key.imgur_client_id = 93396265f59dec9
[bindings]############### Key Bindings##############; If you would like to define custom bindings, copy this section into your; config file with the [bindings] heading. All commands must be bound to at; least one key for the config to be valid. ;; 1.) Plain keys can be represented by either uppercase/lowercase characters; or the hexadecimal numbers referring their ascii codes. For reference, see; https://en.wikipedia.org/wiki/ASCII#ASCII_printable_code_chart; e.g. Q, q, 1, ?; e.g. 0x20 (space), 0x3c (less-than sign);; 2.) Special ascii control codes should be surrounded with <>. For reference,; see https://en.wikipedia.org/wiki/ASCII#ASCII_control_code_chart; e.g. <LF> (enter), <ESC> (escape);; 3.) Other special keys are defined by curses, they should be surrounded by <>; and prefixed with KEY_. For reference, see; https://docs.python.org/2/library/curses.html#constants; e.g. <KEY_LEFT> (left arrow), <KEY_F5>, <KEY_NPAGE> (page down);; Notes:; - Curses <KEY_ENTER> is unreliable and should always be used in conjunction; with <LF>.; - Use 0x20 for the space key.; - A subset of Ctrl modifiers are available through the ascii control codes.; For example, Ctrl-D will trigger an <EOT> signal. See the table above for; a complete reference.
; Base pageEXIT = q FORCE_EXIT = QHELP = ?SORT_1 = 1SORT_2 = 2SORT_3 = 3SORT_4 = 4SORT_5 = 5SORT_6 = 6SORT_7 = 7MOVE_UP = k, <KEY_UP>MOVE_DOWN = j, <KEY_DOWN>PREVIOUS_THEME = <KEY_F2>NEXT_THEME = <KEY_F3>PAGE_UP = m, <KEY_PPAGE>, <NAK>PAGE_DOWN = n, <KEY_NPAGE>, <EOT>PAGE_TOP = ggPAGE_BOTTOM = GUPVOTE = aDOWNVOTE = zLOGIN = uDELETE = dEDIT = eINBOX = iREFRESH = r, <KEY_F5>PROMPT = /SAVE = wCOPY_PERMALINK = yCOPY_URL = YPRIVATE_MESSAGE = CSUBSCRIPTIONS = sMULTIREDDITS = S
; Submission pageSUBMISSION_TOGGLE_COMMENT = 0x20SUBMISSION_OPEN_IN_BROWSER = o, <LF>, <KEY_ENTER>SUBMISSION_POST = cSUBMISSION_EXIT = h, <KEY_LEFT>SUBMISSION_OPEN_IN_PAGER = l, <KEY_RIGHT>SUBMISSION_OPEN_IN_URLVIEWER = bSUBMISSION_GOTO_PARENT = KSUBMISSION_GOTO_SIBLING = J
; Subreddit pageSUBREDDIT_SEARCH = fSUBREDDIT_POST = cSUBREDDIT_OPEN = l, <KEY_RIGHT>SUBREDDIT_OPEN_IN_BROWSER = o, <LF>, <KEY_ENTER>SUBREDDIT_FRONTPAGE = pSUBREDDIT_HIDE = 0x20
; Subscription pageSUBSCRIPTION_SELECT = l, <LF>, <KEY_ENTER>, <KEY_RIGHT>SUBSCRIPTION_EXIT = h, s, S, <ESC>, <KEY_LEFT>
; Inbox pageINBOX_VIEW_CONTEXT = l, <KEY_RIGHT>INBOX_OPEN_SUBMISSION = o, <LF>, <KEY_ENTER>INBOX_REPLY = cINBOX_MARK_READ = wINBOX_EXIT = h, <ESC>, <KEY_LEFT>
|