Skip to content

Commit 219c111

Browse files
committed
zathura
1 parent bbcaf0f commit 219c111

File tree

3 files changed

+23
-27
lines changed

3 files changed

+23
-27
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ Created by [email protected] using [vim](http://www.vim.org/)
175175
- [图表制作(Diagram)](http://yyq123.github.io/learn-vim/learn-vi-802-Toolkit-Diagram.html)[<sup>B</sup>](https://yyq123.blogspot.com/2019/08/vim-toolkit-diagram.html)<sup>/</sup>[<sup>Z</sup>](https://zhuanlan.zhihu.com/p/80209657)
176176
- [版本控制(Git)](http://yyq123.github.io/learn-vim/learn-vi-803-Toolkit-Git.html)[<sup>B</sup>](https://yyq123.blogspot.com/2019/09/vim-toolkit-git.html)<sup>/</sup>[<sup>Z</sup>](https://zhuanlan.zhihu.com/p/82742807)
177177
- [Qutebrowser浏览器](http://yyq123.github.io/learn-vim/learn-vi-807-Toolkit-Qutebrowser.html)[<sup>B</sup>](https://yyq123.blogspot.com/2020/01/vim-toolkit-qutebrowser.html)<sup>/</sup>[<sup>Z</sup>](https://zhuanlan.zhihu.com/p/101539098)
178+
- [PDF查看器zathura](http://yyq123.github.io/learn-vim/learn-vim-Toolkit-Zathura.html)[<sup>B</sup>](https://yyq123.blogspot.com/2025/06/httpsyyq123.blogspot.com202506vim-pdf-zathura.html)<sup>/</sup>[<sup>Z</sup>](https://zhuanlan.zhihu.com/p/1917949804098593822)
178179
- **附录**
179180
- [插件列表 (Plugins)](http://yyq123.github.io/learn-vim/learn-vim-plugin.html)[<sup>B</sup>](https://yyq123.blogspot.com/2020/10/learn-vim-plugin.html)<sup>/</sup>[<sup>Z</sup>](https://zhuanlan.zhihu.com/p/267856388)
180181
- [学习资源(Learning Resources)](http://yyq123.github.io/learn-vim/learn-vi-998-Resources.html)[<sup>B</sup>](https://yyq123.blogspot.com/2020/02/vim-learning-resources.html)<sup>/</sup>[<sup>Z</sup>](https://zhuanlan.zhihu.com/p/109122826)

learn-vi-00-00-TOC.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@ <h1>VIM学习笔记</h1>
385385
<li><a href="http://yyq123.github.io/learn-vim/learn-vi-802-Toolkit-Diagram.html" title="图表制作(Toolkit-Diagram)">图表制作(Toolkit-Diagrams)</a></li>
386386
<li><a href="http://yyq123.github.io/learn-vim/learn-vi-803-Toolkit-Git.html" title="版本控制(Toolkit-Git)">版本控制(Toolkit-Git)</a></li>
387387
<li><a href="http://yyq123.github.io/learn-vim/learn-vi-807-Toolkit-Qutebrowser" title="Qutebrowser浏览器">Qutebrowser浏览器</a></li>
388+
<li><a href="http://yyq123.github.io/learn-vim/learn-vim-Toolkit-Zathura" title="Zathura">PDF查看器zathura</a></li>
388389
</ul>
389390
</li>
390391

learn-vim-Toolkit-Zathura.html

Lines changed: 21 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,14 @@
88
<title>VIM学习笔记 工具箱-PDF查看器zathura</title>
99
</head>
1010
<body>
11-
<p><a href="https://pwmt.org/projects/zathura/" title="zathura">zathura</a>是一款高度可定制的简约文档查看器,适用于大多数Linux发行版。zathura是由PWMT社区开发的开源软件,使用vim习惯的键位绑定,对vim上瘾者来说是一种享受。</p>
11+
<p><a href="https://pwmt.org/projects/zathura/" title="zathura">zathura</a>是一款高度可定制的简约文档查看器,适用于大多数Linux发行版。zathura是由PWMT社区开发的开源软件,它有以下两大特点:</p>
12+
<ul>
13+
<li>以键盘为中心,使用vim习惯的键位绑定,类似vim的命令行模式,沉浸式的vim操作体验;</li>
14+
<li>以文档为中心,极简的用户界面将最大化的屏幕空间留给文档本身,提供更专注的阅读体验。</li>
15+
</ul>
1216
<p>zathura提供以下主要特性:</p>
1317
<ul>
1418
<li>支持PDF、Djvu、PostScript、Comic Book等多种文件格式;</li>
15-
<li>以键盘为中心的快捷操作;</li>
1619
<li>支持书签(bookmark);</li>
1720
<li>类似vim的命令行/搜索行/状态栏;</li>
1821
<li>使用鼠标双击进行链接跳转;</li>
@@ -22,22 +25,16 @@
2225

2326
<h2 class="article"><a id="Install">安装</a></h2>
2427
<p>以Debian为例,使用以下命令安装zathura:</p>
25-
<p style="text-indent:2em"><code class="inset">sudo apt install zathura zathura-pdf-poppler zathura-djvu zathura-ps</code></p>
28+
<p style="text-indent:2em"><code class="inset">$ sudo apt install zathura zathura-pdf-poppler zathura-djvu zathura-ps</code></p>
2629
<p>针对其它平台的安装,请参阅<a href="https://pwmt.org/projects/zathura/installation/" title="zathura/installation">官方文档</a></p>
2730

2831
<h2 class="article"><a id="Use">使用</a></h2>
2932
<p>在操作系统命令行环境下,使用以下命令即可查看文件:</p>
3033
<p style="text-indent:2em"><code class="inset">$ zathura filename.pdf</code></p>
3134
<p><a href="https://yyq123.github.io/learn-vim/images/zathura_main_window.png" title="zathura main window"><img src="https://yyq123.github.io/learn-vim/images/zathura_main_window.png" alt="zathura main window" width="550" height="429" /></a></p>
32-
<p>可以从默认阅读模式,使用<kbd>F11</kbd>键切换至全屏幕模式;使用<kbd>F5</kbd>键切换至演示模式;使用<kbd>Tab</kbd>键切换至目录模式。</p>
35+
<p>在默认阅读模式下,使用<kbd>F11</kbd>键切换至全屏幕模式;使用<kbd>F5</kbd>键切换至演示模式;使用<kbd>Tab</kbd>键切换至目录模式。</p>
3336
<p><a href="https://yyq123.github.io/learn-vim/images/zathura_mode_index.png" title="zathura mode index"><img src="https://yyq123.github.io/learn-vim/images/zathura_mode_index.png" alt="zathura mode index" width="550" height="429" /></a></p>
3437

35-
<pre class="block"><code>
36-
</code></pre>
37-
<p></p>
38-
<p style="text-indent:2em"><code class="inset"></code></p>
39-
<p><code class="msg"></code></p>
40-
4138
<h2 class="article"><a id="Config">配置</a></h2>
4239
<p>通过编辑<kbd>~/.config/zathura/zathurarc</kbd>配置文件,可以自定义系统选项:</p>
4340
<pre class="block"><code># show status bar and vertical scrollbar
@@ -60,11 +57,9 @@ <h2 class="article"><a id="Config">配置</a></h2>
6057
<p>更多配置选项,请参阅<a href="https://pwmt.org/projects/zathura/documentation/" title="zathura/documentation">官方文档</a></p>
6158

6259
<h2 class="article"><a id="Shortcut">快捷键</a></h2>
63-
<p>当然,如果你不喜欢默认设置,也可以对设置进行个性化配置。</p>
64-
<table>
65-
<thead><tr><th>Shortcut</th><th><strong>Function</strong></th></tr></thead>
60+
<table summary="Shotcut" border="1" frame="border" rules="all" cellspacing="0" cellpadding="3">
6661
<tbody>
67-
<tr><td><strong>Document Navigation</strong></td><td></td></tr>
62+
<tr><td><strong>Document Navigation</strong></td><td><strong>文档导航</strong></td></tr>
6863
<tr><td>J</td><td>向下移动一行 Move the document display window one line down.</td></tr>
6964
<tr><td>K</td><td>向上移动一行 Move the document display window one line up.</td></tr>
7065
<tr><td>L</td><td>向右移动一列 Move the document display window one column to the right.</td></tr>
@@ -87,7 +82,7 @@ <h2 class="article"><a id="Shortcut">快捷键</a></h2>
8782
<tr><td>?</td><td>向后搜索 Open reverse search prompt.</td></tr>
8883
<tr><td>N</td><td>移动到下一匹配处 Go to the next occurrence of the current search term.</td></tr>
8984
<tr><td>Shift + N</td><td>移动到上一匹配处 Go back to the previous occurrence of the current search term.</td></tr>
90-
<tr><td><strong>Interface Navigation</strong></td><td></td></tr>
85+
<tr><td><strong>Interface Navigation</strong></td><td><strong>界面导航</strong></td></tr>
9186
<tr><td>A</td><td>适合窗口高度 Fit the height of the current page to the display window.</td></tr>
9287
<tr><td>S</td><td>适合窗口宽度 Fit the width of the current page to the display window.</td></tr>
9388
<tr><td>R</td><td>顺时针旋转90度 Rotate the current document by 90 degrees clockwise.</td></tr>
@@ -101,39 +96,38 @@ <h2 class="article"><a id="Shortcut">快捷键</a></h2>
10196
<tr><td>F5</td><td>演示模式 presentation mode.</td></tr>
10297
<tr><td>F11</td><td>全屏幕模式 fullscreen mode.</td></tr>
10398
<tr><td>Q</td><td>退出/结束当前进程 Terminate the current Zathura session.</td></tr>
104-
<tr><td><strong>Linking and Indexing</strong></td><td></td></tr>
105-
<tr><td>Shift + F</td><td>Show all link hints.</td></tr>
106-
<tr><td>F</td><td>Load a link hint’s page to the document viewer. </td></tr>
107-
<tr><td>C</td><td>Copy a link hint’s page to the system clipboard.</td></tr>
108-
<tr><td>M + 1</td><td>Create a new bookmark on the current page and save it to the character “1.”</td></tr>
109-
<tr><td>Apostrophe (‘) + 1</td><td>Load the bookmark that is currently stored in the character “1.”</td></tr>
110-
<tr><td>Tab</td><td>目录模式 Display the document’s content index.</td></tr>
99+
<tr><td><strong>Linking and Indexing</strong></td><td><strong>链接和目录</strong></td></tr>
100+
<tr><td>Shift + F</td><td>高亮显示链接 Show all link hints.</td></tr>
101+
<tr><td>F</td><td>跳转到指定链接 Load a link hint’s page to the document viewer. </td></tr>
102+
<tr><td>C</td><td>复制链接地址 Copy a link hint’s page to the system clipboard.</td></tr>
103+
<tr><td>Tab</td><td>进入目录模式 Display the document’s content index.</td></tr>
111104
<tr><td>J</td><td>下一目录项 Scroll one item down in the document’s content index.</td></tr>
112105
<tr><td>K</td><td>上一目录项 Scroll one item up in the document’s content index.</td></tr>
113106
<tr><td>L</td><td>展开当前目录 Display the current index item’s subitems.</td></tr>
114107
<tr><td>H</td><td>折叠当前目录 Hide the current index item’s subitems.</td></tr>
115108
<tr><td>Shift + L</td><td>展开所有目录 Display all the subitems in the document’s content index.</td></tr>
116109
<tr><td>Shift + H</td><td>折叠所有目录 Hide all the subitems in the document’s content index.</td></tr>
117110
<tr><td>Enter</td><td>跳转到目录指引的页 Load the page of the currently selected index entry.</td></tr>
118-
<tr><td><strong>演示模式 Presentation Mode</strong></td><td></td></tr>
111+
<tr><td><strong>Presentation Mode</strong></td><td><strong>演示模式</strong></td></tr>
119112
<tr><td>Space</td><td>下一页 Go to the next document slide.</td></tr>
120113
<tr><td>Shift + Space</td><td>上一页 Go back to the previous document slide.</td></tr>
121114
<tr><td>F5</td><td>退出演示模式 Go back to the default Zathura mode.</td></tr>
122-
<tr><td><strong>全屏幕模式 Fullscreen Mode</strong></td><td></td></tr>
115+
<tr><td><strong>Fullscreen Mode</strong></td><td><strong>全屏幕模式</strong></td></tr>
123116
<tr><td>Shift + J</td><td>下一页 Move the document display window a full page down.</td></tr>
124117
<tr><td>Shift + K</td><td>上一页 Move the document display window a full page up.</td></tr>
125118
<tr><td>ZI</td><td>放大 Zoom in</td></tr>
126119
<tr><td>ZO</td><td>缩小 Zoom out</td></tr>
127120
<tr><td>Z0</td><td>恢复缩放 Reset the current zoom level.</td></tr>
128121
<tr><td>60 + =</td><td>缩放至指定比例 Set the zoom level of the document to 60%.</td></tr>
129122
<tr><td>F11</td><td>退出全屏幕模式 Go back to the default Zathura mode.</td></tr>
130-
<tr><td><strong>命令模式 Command Mode</strong></td><td></td></tr>
123+
<tr><td><strong>Command Mode</strong></td><td><strong>命令模式</strong></td></tr>
131124
<tr><td>:</td><td>进入命令行 Open Zathura’s command prompt.</td></tr>
132125
<tr><td>:close</td><td>关闭当前文档 Exit the current document without exiting Zathura.</td></tr>
133126
<tr><td>:open {filename}</td><td>打开指定文档 Open a new document on the current Zathura window.</td></tr>
134127
<tr><td>:blist</td><td>列示书签 List all the available bookmarks for the current session.</td></tr>
135-
<tr><td>:bmark {bookmark_name}</td><td>新增书签 Add the current page to the session’s bookmark index.</td></tr>
136-
<tr><td>:bdelete {bookmark_name}</td><td>删除书签 Delete bookmark</td></tr>
128+
<tr><td>:bmark {name}</td><td>新增书签 Add the current page to the session’s bookmark index.</td></tr>
129+
<tr><td>:bjump {name}</td><td>跳转至指定书签 Jump to a bookmark.</td></tr>
130+
<tr><td>:bdelete {name}</td><td>删除书签 Delete bookmark</td></tr>
137131
<tr><td>:exec</td><td>执行外部命令 Run an external shell command on the current document.</td></tr>
138132
<tr><td>:info</td><td>显示文档信息 Print the document’s internal properties.</td></tr>
139133
<tr><td>:print</td><td>打印文档 Send the current document to the machine’s print spool.</td></tr>

0 commit comments

Comments
 (0)