mirror of
https://github.com/jaywcjlove/reference.git
synced 2025-06-19 21:51:20 +08:00
doc: update docs/yazi.md da9780f4a7
This commit is contained in:
@ -40,26 +40,14 @@
|
||||
<p>这份快速参考备忘单提供了Yazi 快速的终端文件管理的简要概述,以及 Yazi的基本操作</p>
|
||||
</div></header><div class="menu-tocs"><div class="menu-btn"><svg aria-hidden="true" fill="currentColor" height="1em" width="1em" viewBox="0 0 16 16" version="1.1" data-view-component="true">
|
||||
<path fill-rule="evenodd" d="M2 4a1 1 0 100-2 1 1 0 000 2zm3.75-1.5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zm0 5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zm0 5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zM3 8a1 1 0 11-2 0 1 1 0 012 0zm-1 6a1 1 0 100-2 1 1 0 000 2z"></path>
|
||||
</svg></div><div class="menu-modal"><a aria-hidden="true" class="leve2 tocs-link" data-num="2" href="#入门">入门</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#功能特点">功能特点</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#安装">安装</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#使用方法">使用方法</a><a aria-hidden="true" class="leve4 tocs-link" data-num="4" href="#启动">启动</a><a aria-hidden="true" class="leve4 tocs-link" data-num="4" href="#帮助">帮助</a><a aria-hidden="true" class="leve2 tocs-link" data-num="2" href="#基本操作">基本操作</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#导航">导航</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#文件操作">文件操作</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#搜索与过滤">搜索与过滤</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#视图操作">视图操作</a><a aria-hidden="true" class="leve2 tocs-link" data-num="2" href="#自定义配置">自定义配置</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#自定义配置-1">自定义配置</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#配置文件示例yazitoml">配置文件示例:yazi.toml</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#keymaptoml-配置示例">keymap.toml 配置示例</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#themetoml-配置示例">theme.toml 配置示例</a><a aria-hidden="true" class="leve2 tocs-link" data-num="2" href="#另见">另见</a></div></div><div class="h1wrap-body"><div class="wrap h2body-exist"><div class="wrap-header h2wrap"><h2 id="入门"><a aria-hidden="true" tabindex="-1" href="#入门"><span class="icon icon-link"></span></a>入门</h2><div class="wrap-body">
|
||||
<!--rehype:body-class=cols-2-->
|
||||
</div></div><div class="h2wrap-body cols-2"><div class="wrap h3body-not-exist row-span-2"><div class="wrap-header h3wrap"><h3 id="功能特点"><a aria-hidden="true" tabindex="-1" href="#功能特点"><span class="icon icon-link"></span></a>功能特点</h3><div class="wrap-body">
|
||||
<!--rehype:wrap-class=row-span-2-->
|
||||
</svg></div><div class="menu-modal"><a aria-hidden="true" class="leve2 tocs-link" data-num="2" href="#入门">入门</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#功能特点">功能特点</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#安装">安装</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#使用方法">使用方法</a><a aria-hidden="true" class="leve4 tocs-link" data-num="4" href="#命令启动-yazi">命令启动 Yazi</a><a aria-hidden="true" class="leve4 tocs-link" data-num="4" href="#查看-yazi-的帮助文档">查看 Yazi 的帮助文档</a><a aria-hidden="true" class="leve2 tocs-link" data-num="2" href="#常用的快捷键">常用的快捷键</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#导航">导航</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#文件操作">文件操作</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#搜索与过滤">搜索与过滤</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#视图操作">视图操作</a><a aria-hidden="true" class="leve2 tocs-link" data-num="2" href="#自定义配置">自定义配置</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#自定义配置-1">自定义配置</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#配置文件示例yazitoml">配置文件示例:yazi.toml</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#keymaptoml-配置示例">keymap.toml 配置示例</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#themetoml-配置示例">theme.toml 配置示例</a><a aria-hidden="true" class="leve2 tocs-link" data-num="2" href="#另见">另见</a></div></div><div class="h1wrap-body"><div class="wrap h2body-exist"><div class="wrap-header h2wrap"><h2 id="入门"><a aria-hidden="true" tabindex="-1" href="#入门"><span class="icon icon-link"></span></a>入门</h2><div class="wrap-body">
|
||||
</div></div><div class="h2wrap-body"><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="功能特点"><a aria-hidden="true" tabindex="-1" href="#功能特点"><span class="icon icon-link"></span></a>功能特点</h3><div class="wrap-body">
|
||||
<ul>
|
||||
<li>跨平台支持</li>
|
||||
<li><code><strong>跨平台支持</strong></code>:Yazi 支持 Linux、macOS 和 Windows,提供一致的跨平台体验</li>
|
||||
<li><code><strong>轻量高效</strong></code>:简洁设计,启动和操作快速,资源消耗低</li>
|
||||
<li><code><strong>插件扩展</strong></code>:支持插件安装,灵活扩展功能</li>
|
||||
<li><code><strong>文件操作</strong></code>:支持复制、剪切、粘贴、删除、重命名等操作,且支持批量和多选功能,提升效率</li>
|
||||
</ul>
|
||||
<p><code>Yazi</code> 支持多种操作系统,包括 Linux、macOS 和 Windows。这使得用户可以在不同的平台上获得一致的体验。</p>
|
||||
<ul>
|
||||
<li>轻量级和快速</li>
|
||||
</ul>
|
||||
<p>Yazi 是一个设计简洁、执行效率高的终端文件管理器。它的轻量级特性确保了在启动和操作过程中都能保持高速度和低资源消耗。</p>
|
||||
<ul>
|
||||
<li>插件支持</li>
|
||||
</ul>
|
||||
<p>Yazi 支持插件,用户可以根据需要安装和配置插件,以扩展文件管理器的功能</p>
|
||||
<ul>
|
||||
<li>丰富的文件操作</li>
|
||||
</ul>
|
||||
<p>Yazi 提供了一系列丰富的文件操作功能,包括复制、剪切、粘贴、删除、重命名等。此外,还支持批量操作和多选功能,极大提高了文件管理的效率。</p>
|
||||
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="安装"><a aria-hidden="true" tabindex="-1" href="#安装"><span class="icon icon-link"></span></a>安装</h3><div class="wrap-body">
|
||||
|
||||
|
||||
@ -94,19 +82,17 @@
|
||||
|
||||
|
||||
|
||||
<table><thead><tr><th>系统</th><th>安装方法</th></tr></thead><tbody><tr><td><strong>使用 Cargo 安装</strong></td><td>cargo install yazi</td></tr><tr><td><strong>Arch Linux</strong></td><td>yay -S yazi</td></tr><tr><td><strong>Debian/Ubuntu</strong></td><td>可以使用 Cargo 进行安装</td></tr><tr><td><strong>macOS (使用 Homebrew)</strong></td><td>brew install yazi</td></tr><tr><td><strong>Windows (使用 Carg)</strong></td><td>cargo install yazi</td></tr><tr><td><strong>Windows (使用 Scoop)</strong></td><td>scoop install yazi</td></tr></tbody></table>
|
||||
<table><thead><tr><th>系统</th><th>安装方法</th></tr></thead><tbody><tr><td>使用 Cargo 安装</td><td><code>cargo install yazi</code></td></tr><tr><td>Arch Linux</td><td><code>yay -S yazi</code></td></tr><tr><td>Debian/Ubuntu</td><td>可以使用 <code>Cargo</code> 进行安装</td></tr><tr><td>macOS (使用 Homebrew)</td><td><code>brew install yazi</code></td></tr><tr><td>Windows (使用 Carg)</td><td><code>cargo install yazi</code></td></tr><tr><td>Windows (使用 Scoop)</td><td><code>scoop install yazi</code></td></tr></tbody></table>
|
||||
</div></div></div><div class="wrap h3body-exist"><div class="wrap-header h3wrap"><h3 id="使用方法"><a aria-hidden="true" tabindex="-1" href="#使用方法"><span class="icon icon-link"></span></a>使用方法</h3><div class="wrap-body">
|
||||
<h4 id="启动"><a aria-hidden="true" tabindex="-1" href="#启动"><span class="icon icon-link"></span></a>启动</h4>
|
||||
<p>你可以在终端中通过以下命令启动 Yazi</p>
|
||||
<h4 id="命令启动-yazi"><a aria-hidden="true" tabindex="-1" href="#命令启动-yazi"><span class="icon icon-link"></span></a>命令启动 Yazi</h4>
|
||||
<pre class="language-sh"><code class="language-sh code-highlight"><span class="code-line">yazi
|
||||
</span></code></pre>
|
||||
<h4 id="帮助"><a aria-hidden="true" tabindex="-1" href="#帮助"><span class="icon icon-link"></span></a>帮助</h4>
|
||||
<p>你可以通过以下命令查看 Yazi 的帮助文档</p>
|
||||
<h4 id="查看-yazi-的帮助文档"><a aria-hidden="true" tabindex="-1" href="#查看-yazi-的帮助文档"><span class="icon icon-link"></span></a>查看 Yazi 的帮助文档</h4>
|
||||
<pre class="language-sh"><code class="language-sh code-highlight"><span class="code-line">yazi <span class="token parameter variable">--help</span>
|
||||
</span></code></pre>
|
||||
</div></div></div></div></div><div class="wrap h2body-exist"><div class="wrap-header h2wrap"><h2 id="基本操作"><a aria-hidden="true" tabindex="-1" href="#基本操作"><span class="icon icon-link"></span></a>基本操作</h2><div class="wrap-body">
|
||||
<p>Yazi 文件管理器主要通过键盘快捷键进行操作。以下是一些常用的快捷键:</p>
|
||||
</div></div><div class="h2wrap-body"><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="导航"><a aria-hidden="true" tabindex="-1" href="#导航"><span class="icon icon-link"></span></a>导航</h3><div class="wrap-body">
|
||||
</div></div></div></div></div><div class="wrap h2body-exist"><div class="wrap-header h2wrap"><h2 id="常用的快捷键"><a aria-hidden="true" tabindex="-1" href="#常用的快捷键"><span class="icon icon-link"></span></a>常用的快捷键</h2><div class="wrap-body">
|
||||
<!--rehype:body-class=cols-2-->
|
||||
</div></div><div class="h2wrap-body cols-2"><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="导航"><a aria-hidden="true" tabindex="-1" href="#导航"><span class="icon icon-link"></span></a>导航</h3><div class="wrap-body">
|
||||
|
||||
|
||||
|
||||
@ -219,16 +205,15 @@
|
||||
<table class="shortcuts"><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><code>gg</code></td><td align="left">跳到列表的顶部</td></tr><tr><td align="left"><code>G</code></td><td align="left">跳到列表的底部</td></tr><tr><td align="left"><code>Ctrl+f</code></td><td align="left">向下滚动一页</td></tr><tr><td align="left"><code>Ctrl+b</code></td><td align="left">向上滚动一页</td></tr></tbody></table>
|
||||
<!--rehype:className=shortcuts-->
|
||||
</div></div></div></div></div><div class="wrap h2body-exist"><div class="wrap-header h2wrap"><h2 id="自定义配置"><a aria-hidden="true" tabindex="-1" href="#自定义配置"><span class="icon icon-link"></span></a>自定义配置</h2><div class="wrap-body">
|
||||
</div></div><div class="h2wrap-body"><div class="wrap h3body-not-exist col-span-3"><div class="wrap-header h3wrap"><h3 id="自定义配置-1"><a aria-hidden="true" tabindex="-1" href="#自定义配置-1"><span class="icon icon-link"></span></a>自定义配置</h3><div class="wrap-body">
|
||||
<!--rehype:wrap-class=col-span-3-->
|
||||
<p>你可以通过编辑配置文件来自定义 Yazi。配置文件通常位于 <code>$HOME/.config/yazi/xxx.toml</code><br>
|
||||
你可以在该文件中修改一些默认设置,例如快捷键绑定、主题颜色等。</p>
|
||||
</div></div><div class="h2wrap-body"><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="自定义配置-1"><a aria-hidden="true" tabindex="-1" href="#自定义配置-1"><span class="icon icon-link"></span></a>自定义配置</h3><div class="wrap-body">
|
||||
<p>通过编辑配置文件来自定义 <code>Yazi</code>,配置文件通常位于 <code>$HOME/.config/yazi/xxx.toml</code>,可修改默认设置如快捷键、主题等。</p>
|
||||
<ul>
|
||||
<li>yazi.toml - 常规配置。</li>
|
||||
<li>keymap.toml - 按键绑定配置。</li>
|
||||
<li>theme.toml - 配色方案配置。</li>
|
||||
<li><code>yazi.toml</code> - 常规配置</li>
|
||||
<li><code>keymap.toml</code> - 快捷键绑定</li>
|
||||
<li><code>theme.toml</code> - 主题配置</li>
|
||||
</ul>
|
||||
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="配置文件示例yazitoml"><a aria-hidden="true" tabindex="-1" href="#配置文件示例yazitoml"><span class="icon icon-link"></span></a>配置文件示例:yazi.toml</h3><div class="wrap-body">
|
||||
</div></div></div><div class="wrap h3body-not-exist row-span-2"><div class="wrap-header h3wrap"><h3 id="配置文件示例yazitoml"><a aria-hidden="true" tabindex="-1" href="#配置文件示例yazitoml"><span class="icon icon-link"></span></a>配置文件示例:yazi.toml</h3><div class="wrap-body">
|
||||
<!--rehype:wrap-class=row-span-2-->
|
||||
<pre class="language-toml"><code class="language-toml code-highlight"><span class="code-line"><span class="token punctuation">[</span><span class="token table class-name">general</span><span class="token punctuation">]</span>
|
||||
</span><span class="code-line"><span class="token comment"># 设置主界面主题为 dark 或 light</span>
|
||||
</span><span class="code-line"><span class="token key property">theme</span> <span class="token punctuation">=</span> <span class="token string">"dark"</span>
|
||||
@ -248,25 +233,26 @@
|
||||
</span><span class="code-line">
|
||||
</span><span class="code-line"><span class="token punctuation">[</span><span class="token table class-name">ui</span><span class="token punctuation">]</span>
|
||||
</span><span class="code-line"><span class="token comment"># 界面相关配置</span>
|
||||
</span><span class="code-line"><span class="token key property">preview_enabled</span> <span class="token punctuation">=</span> <span class="token boolean">true</span> <span class="token comment"># 是否启用文件预览</span>
|
||||
</span><span class="code-line"><span class="token key property">show_hidden_files</span> <span class="token punctuation">=</span> <span class="token boolean">true</span> <span class="token comment"># 显示隐藏文件</span>
|
||||
</span><span class="code-line"><span class="token key property">columns</span> <span class="token punctuation">=</span> <span class="token number">2</span> <span class="token comment"># 文件列表列数</span>
|
||||
</span><span class="code-line"><span class="token key property">preview_enabled</span> <span class="token punctuation">=</span> <span class="token boolean">true</span> <span class="token comment"># 是否启用文件预览</span>
|
||||
</span><span class="code-line"><span class="token key property">show_hidden_files</span> <span class="token punctuation">=</span> <span class="token boolean">true</span> <span class="token comment"># 显示隐藏文件</span>
|
||||
</span><span class="code-line"><span class="token key property">columns</span> <span class="token punctuation">=</span> <span class="token number">2</span> <span class="token comment"># 文件列表列数</span>
|
||||
</span><span class="code-line">
|
||||
</span><span class="code-line"><span class="token punctuation">[</span><span class="token table class-name">search</span><span class="token punctuation">]</span>
|
||||
</span><span class="code-line"><span class="token comment"># 搜索行为配置</span>
|
||||
</span><span class="code-line"><span class="token key property">case_sensitive</span> <span class="token punctuation">=</span> <span class="token boolean">false</span> <span class="token comment"># 搜索是否区分大小写</span>
|
||||
</span><span class="code-line"><span class="token key property">search_timeout</span> <span class="token punctuation">=</span> <span class="token number">30</span> <span class="token comment"># 搜索超时时间(秒)</span>
|
||||
</span><span class="code-line"><span class="token key property">case_sensitive</span> <span class="token punctuation">=</span> <span class="token boolean">false</span> <span class="token comment"># 搜索是否区分大小写</span>
|
||||
</span><span class="code-line"><span class="token key property">search_timeout</span> <span class="token punctuation">=</span> <span class="token number">30</span> <span class="token comment"># 搜索超时时间(秒)</span>
|
||||
</span><span class="code-line">
|
||||
</span><span class="code-line"><span class="token punctuation">[</span><span class="token table class-name">sorting</span><span class="token punctuation">]</span>
|
||||
</span><span class="code-line"><span class="token comment"># 排序规则配置</span>
|
||||
</span><span class="code-line"><span class="token key property">sort_by</span> <span class="token punctuation">=</span> <span class="token string">"name"</span> <span class="token comment"># 排序方式: name, size, date</span>
|
||||
</span><span class="code-line"><span class="token key property">reverse_sort</span> <span class="token punctuation">=</span> <span class="token boolean">false</span> <span class="token comment"># 是否反向排序</span>
|
||||
</span><span class="code-line"><span class="token key property">sort_by</span> <span class="token punctuation">=</span> <span class="token string">"name"</span> <span class="token comment"># 排序方式: name,size,date</span>
|
||||
</span><span class="code-line"><span class="token key property">reverse_sort</span> <span class="token punctuation">=</span> <span class="token boolean">false</span> <span class="token comment"># 是否反向排序</span>
|
||||
</span><span class="code-line">
|
||||
</span><span class="code-line"> <span class="token punctuation">[</span><span class="token table class-name">plugins</span><span class="token punctuation">]</span>
|
||||
</span><span class="code-line"><span class="token punctuation">[</span><span class="token table class-name">plugins</span><span class="token punctuation">]</span>
|
||||
</span><span class="code-line"><span class="token comment"># 插件加载配置</span>
|
||||
</span><span class="code-line"><span class="token key property">enabled_plugins</span> <span class="token punctuation">=</span> <span class="token punctuation">[</span><span class="token string">"git"</span><span class="token punctuation">,</span> <span class="token string">"archive"</span><span class="token punctuation">]</span>
|
||||
</span></code></pre>
|
||||
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="keymaptoml-配置示例"><a aria-hidden="true" tabindex="-1" href="#keymaptoml-配置示例"><span class="icon icon-link"></span></a>keymap.toml 配置示例</h3><div class="wrap-body">
|
||||
</div></div></div><div class="wrap h3body-not-exist row-span-2"><div class="wrap-header h3wrap"><h3 id="keymaptoml-配置示例"><a aria-hidden="true" tabindex="-1" href="#keymaptoml-配置示例"><span class="icon icon-link"></span></a>keymap.toml 配置示例</h3><div class="wrap-body">
|
||||
<!--rehype:wrap-class=row-span-2-->
|
||||
<pre class="language-toml"><code class="language-toml code-highlight"><span class="code-line"><span class="token comment"># 全局快捷键配置</span>
|
||||
</span><span class="code-line"><span class="token punctuation">[</span><span class="token table class-name">global</span><span class="token punctuation">]</span>
|
||||
</span><span class="code-line"><span class="token comment"># 全局退出应用程序</span>
|
||||
|
Reference in New Issue
Block a user