571 lines
13 KiB
HTML
571 lines
13 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self'; font-src 'self' data:; img-src 'self' data:; connect-src 'self'; base-uri 'self'; form-action 'self' https://defcon.social https://bsky.app;">
|
|
<meta http-equiv="X-Content-Type-Options" content="nosniff">
|
|
<link rel="stylesheet" href="../assets/css/style.css">
|
|
<link rel="icon" type="image/x-icon" href="../favicon.ico">
|
|
<script>
|
|
// Apply theme immediately to prevent flash
|
|
(function() {
|
|
const theme = localStorage.getItem('theme') ||
|
|
(window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light');
|
|
document.documentElement.setAttribute('data-theme', theme);
|
|
})();
|
|
</script>
|
|
<title>Yazi Cheatsheet - Cheatsheets - Launch Pad</title>
|
|
</head>
|
|
<body>
|
|
<button class="theme-toggle" id="themeToggle" aria-label="Toggle dark mode">
|
|
<svg class="theme-icon theme-icon-moon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path></svg>
|
|
<svg class="theme-icon theme-icon-sun" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display: none;"><circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line></svg>
|
|
</button>
|
|
<br/><br/>
|
|
<div class="name">
|
|
__ _______________________ _________._________________________
|
|
\_ _____/ \______ \ / _ \ / _____/ / _____/ | | \_ _____/
|
|
| __) | _/ / /_\ \ / \ ___ / \ ___ | | | __)_
|
|
| \ | | \ / | \ \ \_\ \ \ \_\ \ | |___ | \
|
|
\___ / |____|_ / \____|__ / \______ / \______ / |_______ \ /_______ /
|
|
\/ \/ \/ \/ \/ \/ \/
|
|
</div>
|
|
<div class="blog-page-header">
|
|
<div class="blog-header-content">
|
|
<a href="/cheatsheets" class="back-link" title="Back to Cheatsheets">
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="42" height="42" viewBox="0 0 24 24" class="home-icon"><path fill="currentColor" d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>
|
|
</a>
|
|
<h1 class="blog-page-title">Yazi Cheatsheet</h1>
|
|
</div>
|
|
</div>
|
|
<div class="blog-post-container">
|
|
<div class="blog-posts-container" style="max-width: 900px; margin: 0 auto;">
|
|
<div class="blog-post">
|
|
<div class="blog-post-content">
|
|
<p><a href="index.html">← Back to cheatsheets</a></p>
|
|
<p><a href="../index.html">← Home</a></p>
|
|
<hr>
|
|
<h2>Basic Navigation</h2>
|
|
<h3>File Navigation</h3>
|
|
<ul>
|
|
<li>h or ← - Go to parent directory</li>
|
|
</ul>
|
|
<ul>
|
|
<li>l or → or Enter - Enter directory / Open file</li>
|
|
</ul>
|
|
<ul>
|
|
<li>j or ↓ - Move down</li>
|
|
</ul>
|
|
<ul>
|
|
<li>k or ↑ - Move up</li>
|
|
</ul>
|
|
<ul>
|
|
<li>gg - Go to top</li>
|
|
</ul>
|
|
<ul>
|
|
<li>G - Go to bottom</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Ctrl+d - Scroll down half page</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Ctrl+u - Scroll up half page</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Ctrl+f - Scroll down full page</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Ctrl+b - Scroll up full page</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Home - Go to first file</li>
|
|
</ul>
|
|
<ul>
|
|
<li>End - Go to last file</li>
|
|
</ul>
|
|
<h3>Quick Navigation</h3>
|
|
<ul>
|
|
<li>~ - Go to home directory</li>
|
|
</ul>
|
|
<ul>
|
|
<li>- - Go to previous directory</li>
|
|
</ul>
|
|
<ul>
|
|
<li>, - Go to previous directory (alternative)</li>
|
|
</ul>
|
|
<ul>
|
|
<li>. - Toggle hidden files</li>
|
|
</ul>
|
|
<ul>
|
|
<li>z - Go to parent directory</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Z - Go to previous directory</li>
|
|
</ul>
|
|
<hr>
|
|
<h2>File Operations</h2>
|
|
<h3>Selection</h3>
|
|
<ul>
|
|
<li>Space - Toggle selection</li>
|
|
</ul>
|
|
<ul>
|
|
<li>v - Toggle selection (alternative)</li>
|
|
</ul>
|
|
<ul>
|
|
<li>a - Select all</li>
|
|
</ul>
|
|
<ul>
|
|
<li>A - Deselect all</li>
|
|
</ul>
|
|
<ul>
|
|
<li>* - Invert selection</li>
|
|
</ul>
|
|
<ul>
|
|
<li>; - Select by pattern</li>
|
|
</ul>
|
|
<ul>
|
|
<li>: - Deselect by pattern</li>
|
|
</ul>
|
|
<h3>Copy/Move/Delete</h3>
|
|
<ul>
|
|
<li>y - Copy selected files</li>
|
|
</ul>
|
|
<ul>
|
|
<li>x - Cut selected files</li>
|
|
</ul>
|
|
<ul>
|
|
<li>p - Paste files</li>
|
|
</ul>
|
|
<ul>
|
|
<li>P - Paste files (with overwrite prompt)</li>
|
|
</ul>
|
|
<ul>
|
|
<li>d - Delete selected files</li>
|
|
</ul>
|
|
<ul>
|
|
<li>D - Delete permanently (bypass trash)</li>
|
|
</ul>
|
|
<ul>
|
|
<li>r - Rename file</li>
|
|
</ul>
|
|
<ul>
|
|
<li>R - Bulk rename</li>
|
|
</ul>
|
|
<ul>
|
|
<li>c - Copy file path</li>
|
|
</ul>
|
|
<ul>
|
|
<li>C - Copy file name</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Y - Copy file path (absolute)</li>
|
|
</ul>
|
|
<h3>Create</h3>
|
|
<ul>
|
|
<li>n - Create new file</li>
|
|
</ul>
|
|
<ul>
|
|
<li>N - Create new directory</li>
|
|
</ul>
|
|
<ul>
|
|
<li>m - Create new file (with prompt)</li>
|
|
</ul>
|
|
<ul>
|
|
<li>M - Create new directory (with prompt)</li>
|
|
</ul>
|
|
<hr>
|
|
<h2>Viewing and Opening</h2>
|
|
<h3>Viewing</h3>
|
|
<ul>
|
|
<li>o - Open file (system default)</li>
|
|
</ul>
|
|
<ul>
|
|
<li>O - Open file (with application selector)</li>
|
|
</ul>
|
|
<ul>
|
|
<li>e - Open file in editor</li>
|
|
</ul>
|
|
<ul>
|
|
<li>E - Open file in editor (with editor selector)</li>
|
|
</ul>
|
|
<ul>
|
|
<li>w - Open file in preview</li>
|
|
</ul>
|
|
<ul>
|
|
<li>W - Toggle preview</li>
|
|
</ul>
|
|
<ul>
|
|
<li>i - Show file information</li>
|
|
</ul>
|
|
<ul>
|
|
<li>I - Show file information (detailed)</li>
|
|
</ul>
|
|
<ul>
|
|
<li>u - Show file URL</li>
|
|
</ul>
|
|
<ul>
|
|
<li>U - Copy file URL</li>
|
|
</ul>
|
|
<h3>Preview</h3>
|
|
<ul>
|
|
<li>w - Toggle preview</li>
|
|
</ul>
|
|
<ul>
|
|
<li>W - Toggle preview (alternative)</li>
|
|
</ul>
|
|
<ul>
|
|
<li>p - Toggle preview (alternative)</li>
|
|
</ul>
|
|
<ul>
|
|
<li>P - Toggle preview (alternative)</li>
|
|
</ul>
|
|
<hr>
|
|
<h2>Search and Filter</h2>
|
|
<h3>Search</h3>
|
|
<ul>
|
|
<li>/ - Search files</li>
|
|
</ul>
|
|
<ul>
|
|
<li>? - Search files (backward)</li>
|
|
</ul>
|
|
<ul>
|
|
<li>n - Next match</li>
|
|
</ul>
|
|
<ul>
|
|
<li>N - Previous match</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Esc - Clear search</li>
|
|
</ul>
|
|
<h3>Filter</h3>
|
|
<ul>
|
|
<li>f - Filter files</li>
|
|
</ul>
|
|
<ul>
|
|
<li>F - Filter files (case sensitive)</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Esc - Clear filter</li>
|
|
</ul>
|
|
<h3>Find</h3>
|
|
<ul>
|
|
<li>; - Find file by name</li>
|
|
</ul>
|
|
<ul>
|
|
<li>: - Find file by name (backward)</li>
|
|
</ul>
|
|
<hr>
|
|
<h2>Tabs and Windows</h2>
|
|
<h3>Tabs</h3>
|
|
<ul>
|
|
<li>t - New tab</li>
|
|
</ul>
|
|
<ul>
|
|
<li>T - New tab (with path)</li>
|
|
</ul>
|
|
<ul>
|
|
<li>[ - Previous tab</li>
|
|
</ul>
|
|
<ul>
|
|
<li>] - Next tab</li>
|
|
</ul>
|
|
<ul>
|
|
<li>{ - Move tab left</li>
|
|
</ul>
|
|
<ul>
|
|
<li>} - Move tab right</li>
|
|
</ul>
|
|
<ul>
|
|
<li>q - Close tab</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Q - Close all tabs except current</li>
|
|
</ul>
|
|
<h3>Windows</h3>
|
|
<ul>
|
|
<li>Tab - Switch between panes</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Ctrl+w - Close pane</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Ctrl+n - New pane</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Ctrl+h - Focus left pane</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Ctrl+j - Focus bottom pane</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Ctrl+k - Focus top pane</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Ctrl+l - Focus right pane</li>
|
|
</ul>
|
|
<ul>
|
|
<li>H - Resize pane left</li>
|
|
</ul>
|
|
<ul>
|
|
<li>J - Resize pane down</li>
|
|
</ul>
|
|
<ul>
|
|
<li>K - Resize pane up</li>
|
|
</ul>
|
|
<ul>
|
|
<li>L - Resize pane right</li>
|
|
</ul>
|
|
<ul>
|
|
<li>= - Equalize pane sizes</li>
|
|
</ul>
|
|
<hr>
|
|
<h2>Sorting and Display</h2>
|
|
<h3>Sorting</h3>
|
|
<ul>
|
|
<li>s - Sort by name</li>
|
|
</ul>
|
|
<ul>
|
|
<li>S - Sort by size</li>
|
|
</ul>
|
|
<ul>
|
|
<li>t - Sort by modified time</li>
|
|
</ul>
|
|
<ul>
|
|
<li>T - Sort by created time</li>
|
|
</ul>
|
|
<ul>
|
|
<li>e - Sort by extension</li>
|
|
</ul>
|
|
<ul>
|
|
<li>E - Sort by extension (reverse)</li>
|
|
</ul>
|
|
<ul>
|
|
<li>r - Reverse sort order</li>
|
|
</ul>
|
|
<ul>
|
|
<li>R - Toggle sort order</li>
|
|
</ul>
|
|
<h3>Display</h3>
|
|
<ul>
|
|
<li>. - Toggle hidden files</li>
|
|
</ul>
|
|
<ul>
|
|
<li>z - Toggle file size display</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Z - Toggle file size display (alternative)</li>
|
|
</ul>
|
|
<ul>
|
|
<li>: - Toggle line numbers</li>
|
|
</ul>
|
|
<ul>
|
|
<li>; - Toggle line numbers (alternative)</li>
|
|
</ul>
|
|
<hr>
|
|
<h2>Advanced Operations</h2>
|
|
<h3>Archive Operations</h3>
|
|
<ul>
|
|
<li>a - Create archive</li>
|
|
</ul>
|
|
<ul>
|
|
<li>A - Extract archive</li>
|
|
</ul>
|
|
<ul>
|
|
<li>e - Extract archive (with prompt)</li>
|
|
</ul>
|
|
<h3>Git Operations</h3>
|
|
<ul>
|
|
<li>g - Show git status</li>
|
|
</ul>
|
|
<ul>
|
|
<li>G - Show git log</li>
|
|
</ul>
|
|
<ul>
|
|
<li>b - Show git branches</li>
|
|
</ul>
|
|
<ul>
|
|
<li>B - Show git branches (alternative)</li>
|
|
</ul>
|
|
<h3>System Operations</h3>
|
|
<ul>
|
|
<li>! - Execute shell command</li>
|
|
</ul>
|
|
<ul>
|
|
<li>$ - Execute shell command (with output)</li>
|
|
</ul>
|
|
<ul>
|
|
<li>& - Execute shell command (background)</li>
|
|
</ul>
|
|
<ul>
|
|
<li>@ - Execute shell command (with prompt)</li>
|
|
</ul>
|
|
<h3>Other Operations</h3>
|
|
<ul>
|
|
<li>u - Undo last operation</li>
|
|
</ul>
|
|
<ul>
|
|
<li>U - Redo last operation</li>
|
|
</ul>
|
|
<ul>
|
|
<li>r - Refresh directory</li>
|
|
</ul>
|
|
<ul>
|
|
<li>R - Reload configuration</li>
|
|
</ul>
|
|
<ul>
|
|
<li>: - Command mode</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Esc - Cancel operation</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Ctrl+c - Cancel operation (alternative)</li>
|
|
</ul>
|
|
<hr>
|
|
<h2>Command Mode</h2>
|
|
<ul>
|
|
<li>: - Enter command mode</li>
|
|
</ul>
|
|
<ul>
|
|
<li>cd <path> - Change directory</li>
|
|
</ul>
|
|
<ul>
|
|
<li>open <path> - Open path</li>
|
|
</ul>
|
|
<ul>
|
|
<li>quit or q - Quit</li>
|
|
</ul>
|
|
<ul>
|
|
<li>exit - Exit</li>
|
|
</ul>
|
|
<ul>
|
|
<li>help - Show help</li>
|
|
</ul>
|
|
<ul>
|
|
<li>version - Show version</li>
|
|
</ul>
|
|
<ul>
|
|
<li>config - Open config file</li>
|
|
</ul>
|
|
<ul>
|
|
<li>theme - Change theme</li>
|
|
</ul>
|
|
<ul>
|
|
<li>plugin - Manage plugins</li>
|
|
</ul>
|
|
<hr>
|
|
<h2>Configuration</h2>
|
|
<h3>Key Locations</h3>
|
|
<ul>
|
|
<li>~/.config/yazi/yazi.toml - Main config</li>
|
|
</ul>
|
|
<ul>
|
|
<li>~/.config/yazi/keymap.toml - Key bindings</li>
|
|
</ul>
|
|
<ul>
|
|
<li>~/.config/yazi/theme.toml - Theme config</li>
|
|
</ul>
|
|
<ul>
|
|
<li>~/.config/yazi/plugins/ - Plugins directory</li>
|
|
</ul>
|
|
<h3>Common Settings (yazi.toml)</h3>
|
|
<pre><code>[manager]
|
|
sort_by = "alphabetical"
|
|
sort_sensitive = true
|
|
sort_reverse = false
|
|
sort_dir_first = true
|
|
linemode = "none"
|
|
show_hidden = false
|
|
show_symlink = true
|
|
scrolloff = 5
|
|
mouse_enabled = true
|
|
|
|
[preview]
|
|
tab_size = 2
|
|
max_width = 600
|
|
max_height = 900
|
|
image_quality = 75</code></pre>
|
|
<h3>Common Key Bindings (keymap.toml)</h3>
|
|
<pre><code>[manager]
|
|
keymap = [
|
|
{ on = [ "<Enter>", "l" ], run = "open", desc = "Open file or enter directory" },
|
|
{ on = [ "h", "<Left>" ], run = "leave", desc = "Go to parent directory" },
|
|
{ on = [ "j", "<Down>" ], run = "move", desc = "Move down" },
|
|
{ on = [ "k", "<Up>" ], run = "move", desc = "Move up" },
|
|
{ on = [ "gg" ], run = "go 0", desc = "Go to top" },
|
|
{ on = [ "G" ], run = "go -1", desc = "Go to bottom" },
|
|
{ on = [ "<Space>" ], run = "select --toggle", desc = "Toggle selection" },
|
|
{ on = [ "y" ], run = "copy", desc = "Copy files" },
|
|
{ on = [ "x" ], run = "cut", desc = "Cut files" },
|
|
{ on = [ "p" ], run = "paste", desc = "Paste files" },
|
|
{ on = [ "d" ], run = "remove", desc = "Delete files" },
|
|
{ on = [ "r" ], run = "rename", desc = "Rename file" },
|
|
{ on = [ "n" ], run = "create", desc = "Create file" },
|
|
{ on = [ "N" ], run = "create --dir", desc = "Create directory" },
|
|
{ on = [ "/" ], run = "search", desc = "Search files" },
|
|
{ on = [ "f" ], run = "filter", desc = "Filter files" },
|
|
{ on = [ "t" ], run = "tab_create", desc = "Create tab" },
|
|
{ on = [ "q" ], run = "tab_close", desc = "Close tab" },
|
|
]</code></pre>
|
|
<hr>
|
|
<h2>Tips</h2>
|
|
<ul>
|
|
<li>Use :help for help</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Use :config to open config file</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Use :theme to change theme</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Use Ctrl+c to cancel operations</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Use Esc to clear search/filter</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Use Space to select multiple files</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Use y then p to copy and paste files</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Use x then p to cut and paste files</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Use / to search files quickly</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Use f to filter files</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Use t to create new tabs</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Use Tab to switch between panes</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Use . to toggle hidden files</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Use gg and G for quick navigation</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Use ~ to go to home directory</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Use - to go to previous directory</li>
|
|
</ul>
|
|
<hr>
|
|
<p><a href="index.html">← Back to cheatsheets</a></p>
|
|
<p><a href="../index.html">← Home</a></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script async type="text/javascript" src="../blog/analytics.js"></script>
|
|
<script src="../theme.js"></script>
|
|
</body>
|
|
</html> |