Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/TimothyYe/glance

一款基于命令行文本小说阅读工具,996与10107程序员摸鱼划水必备神器
https://github.com/TimothyYe/glance

cli-reader glance txt-reader

Last synced: about 2 months ago
JSON representation

一款基于命令行文本小说阅读工具,996与10107程序员摸鱼划水必备神器

Awesome Lists containing this project

README

        

# Glance

一款基于命令行跨平台文本小说阅读工具,996与10107程序员摸鱼划水必备神器。

![](https://github.com/TimothyYe/glance/blob/master/demo/demo.gif?raw=true)

[English Version](#)

## 功能亮点

* 使用Go开发,无需额外运行时和依赖库。
* 软件运行于命令行,对Vimer友好,支持Vim方式的Key Binding进行翻页和跳转。
* 支持Boss Key,方便紧急情况下对界面隐藏和伪装。
* 支持自动定时翻页模式

## 安装步骤

其实,你和摸鱼之间,只有两步的距离:

```bash
brew tap timothyye/tap
brew install timothyye/tap/glance
```

注: 也可以选择[直接下载](https://github.com/TimothyYe/glance/releases)可执行文件并运行。

## 支持平台
* Mac OS
* Linux
* Windows (计划中)

## 支持格式
* TXT (已支持)
* PDF (计划中)
* epub (计划中)

## 快捷键说明

* `?` 显示与隐藏帮助菜单
* `q` 或者 `ctrl+c` 退出程序
* `j`, `ctrl+n`, `` 或者 `` 显示下一行内容
* `k` 或者 `ctrl+p` 显示上一行内容
* `p` 显示与隐藏当前阅读进度
* `b` Boss Key,隐藏当前内容并显示伪装Shell提示符
* `f` 显示与隐藏边框
* `c` 切换显示字体颜色

## 跳转命令

Glance支持与Vim相同的快捷跳转命令,方便在阅读时快速定位以及跳转到想要阅读的位置。例如:

* `G` 跳转到最后一行
* `50G` 跳转到第50行
* `gg` 跳转到第一行
* `20j` 向下跳转20行
* `30k` 向上跳转30行

## 开发环境集成展示

Glance可以运行在任何支持Terminal的开发软件及环境中,包括并不仅限于JetBrains全家桶, Vim, Tmux, Emacs……

* GoLand
![](https://github.com/TimothyYe/glance/blob/master/demo/goland.png?raw=true)

* Spacemacs
![](https://github.com/TimothyYe/glance/blob/master/demo/spacemacs.png?raw=true)

* VSCode
![](https://github.com/TimothyYe/glance/blob/master/demo/vscode.png?raw=true)

* Tmux
![](https://github.com/TimothyYe/glance/blob/master/demo/tmux.png?raw=true)

## Issue 与 PR

欢迎提交issue与merge request。

## 协议

本开源软件基于[Apache License 2.0](#)。