reddit的简单终端查看器(reddit终端查看器)
rtv的Python项目详细描述
Reddit终端查看器(RTV)
一个基于文本的界面(tui),用于从终端查看reddit并与之交互。
不再维护此项目,请参见here。
目录
演示
您可以使用telnet或ssh直接在您的终端中试用rtv的lite版本,而无需安装:
$ telnet redditbox.us
$ ssh redditbox.us
redditbox.us是alex jarmoszuk的独立项目
rtv可在PyPI上使用,并可与pip一起安装: 有关支持的发行版软件包的最新列表,请参见Repology: 由于缺乏资源和兴趣,Windows不支持RTV。对不起的! 要运行程序,请键入: 使用箭头键或vim样式移动来移动光标: 按/打开导航提示,您可以在其中键入如下内容: 有关命令的完整列表,请参见CONTROLS。 配置文件存储在 查看rtv.cfg以获取可配置选项的完整列表。您可以通过运行: 您可以使用mailcap来配置rtv如何打开不同类型的链接。 mailcap文件允许您将不同的mime媒体类型(如 此模板包含与流行的reddit网站(如imgur、youtube和gfycat一起工作的常见mime类型的示例。打开mailcap模板并按照里面列出的instructions操作。 设置完mailcap文件后,使用 RTV与之交互的默认程序可以通过环境变量进行配置: rtv支持将提交链接复制到os剪贴板。在macos上,这是现成的支持。
在linux系统上,您需要安装xsel或xclip。 主题可以用来定制rtv的外观和感觉 Solarized Dark Solarized Light Papercolor Molokai 您可以使用 有关编写和安装自己的主题的说明,请参见THEMES.md。 This type of text usually shows up when python is unable to render
unicode properly. This project is structured to be run as a python module. This means that
you need to launch it using python's 欢迎所有反馈和建议,只需发布一个问题! 在编写任何代码之前,请阅读Contributor Guidelines。 此项目是在MIT许可证下分发的。安装
PYPI包
$ pip install rtv
本地软件包
# macOS
$ brew install rtv
# Arch
$ pacman -S rtv
# Nix
$ nix-env -i rtv
# Debian
$ apt install rtv
# FreeBSD
$ pkg install rtv
来源
$ git clone https://github.com/michael-lazar/rtv.git
$ cd rtv
$ python setup.py install
窗口
用法
$ rtv --help
对照组
/front
/r/commandprompt+linuxmasterrace
/r/programming/controversial
/u/me
/u/multi-mod/m/art
/domain/github.com
设置
配置文件
{HOME}/.config/rtv/
目录中。$ rtv --copy-config
查看媒体链接
image/jpeg
或video/mp4
)与shell命令相关联。此功能在默认情况下被禁用,因为它需要一些额外的步骤来配置。要开始,请将默认的mailcap模板复制到主目录。$ rtv --copy-mailcap
rtv --enable-media
标志启动rtv(或在rtv.cfg中设置)环境变量
$RTV_EDITOR A program used to compose text submissions and comments, e.g. vim, emacs, gedit
If not specified, will fallback to $VISUAL and $EDITOR in that order.$RTV_BROWSER A program used to open links to external websites, e.g. firefox, google-chrome, w3m, lynx
If not specified, will fallback to $BROWSER, or your system's default browser.$RTV_URLVIEWER A tool used to extract hyperlinks from blocks of text, e.g. urlview, urlscan
If not specified, will fallback to urlview if it is installed.剪贴板
主题
--list-themes
命令列出所有已安装的主题,并使用--theme
选择一个主题。您可以将您的选择永久保存在rtv.cfg文件中。您还可以使用rtv内部的f2&;kbd>f3键循环浏览所有可用的主题。常见问题解答
<详细信息>
详细信息><详细信息>rtv --ascii
详细信息>-m
flag. See the example below, which
assumes that you have cloned the repository into the directory ~/rtv_project.$ cd ~/rtv_project
$ python3 -m rtv
贡献
许可证
推荐PyPI第三方库