236 lines
7.8 KiB
HTML
236 lines
7.8 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>foot 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">foot 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>
|
|
<p>foot is a fast, lightweight and minimalistic Wayland terminal emulator.</p>
|
|
<hr>
|
|
<h2>Keyboard Shortcuts</h2>
|
|
<h3>Basic Navigation</h3>
|
|
<ul>
|
|
<li>Shift+PageUp - Scroll up in history</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Shift+PageDown - Scroll down in history</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Ctrl+Shift+C or XF86Copy - Copy selected text to clipboard</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Ctrl+Shift+V or XF86Paste - Paste from clipboard</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Shift+Insert - Paste from primary selection</li>
|
|
</ul>
|
|
<h3>Font Size</h3>
|
|
<ul>
|
|
<li>Ctrl++ or Ctrl+= - Increase font size</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Ctrl+- - Decrease font size</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Ctrl+0 - Reset font size</li>
|
|
</ul>
|
|
<h3>Terminal Management</h3>
|
|
<ul>
|
|
<li>Ctrl+Shift+N - Spawn a new terminal (respects current working directory if OSC 7 enabled)</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Ctrl+Shift+U - Enter URL mode (visible URLs can be activated)</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Ctrl+Shift+Z - Jump to previous prompt (shell integration needed)</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Ctrl+Shift+X - Jump to next prompt (shell integration needed)</li>
|
|
</ul>
|
|
<h3>Scrollback Search</h3>
|
|
<ul>
|
|
<li>Ctrl+Shift+R - Enter scrollback search mode</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Ctrl+R - Search backward for next match (in search mode)</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Ctrl+S - Search forward (in search mode)</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Ctrl+Left/Right - Move by word in search input</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Alt+F - Move forward by word</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Alt+B - Move backward by word</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Alt+Backspace - Delete word before cursor</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Ctrl+Backspace - Delete word before cursor (alternative)</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Return - Finish search and copy match to primary selection</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Escape, Ctrl+C, or Ctrl+G - Cancel search</li>
|
|
</ul>
|
|
<hr>
|
|
<h2>Mouse Shortcuts</h2>
|
|
<h3>Selection</h3>
|
|
<ul>
|
|
<li>Single-click - Select text (drag to adjust), copy to primary selection on release</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Shift+Click - Force selection even if client has mouse tracking enabled</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Ctrl+Click - Block selection</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Double-click - Select word under cursor</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Ctrl+Double-click - Extend selection to next space-separated region</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Triple-click - Select entire line</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Quad-click - Select entire line (alternative)</li>
|
|
</ul>
|
|
<h3>Clipboard</h3>
|
|
<ul>
|
|
<li>Middle-click - Paste from primary selection</li>
|
|
</ul>
|
|
<h3>Scrolling and Font</h3>
|
|
<ul>
|
|
<li>Wheel - Scroll through history</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Ctrl+Wheel - Adjust font size</li>
|
|
</ul>
|
|
<hr>
|
|
<h2>Configuration</h2>
|
|
<h3>Config File Location</h3>
|
|
<ul>
|
|
<li>~/.config/foot/foot.ini (user config)</li>
|
|
</ul>
|
|
<ul>
|
|
<li>/etc/xdg/foot/foot.ini (system config)</li>
|
|
</ul>
|
|
<h3>Example Key Bindings</h3>
|
|
<p>Customize shortcuts in [key-bindings] section:</p>
|
|
<pre><code>[key-bindings]
|
|
# Remap font size controls
|
|
font-increase=Ctrl+Shift+Plus
|
|
font-decrease=Ctrl+Shift+Minus
|
|
|
|
# Custom scrollback
|
|
scrollback-up-page=Shift+Home
|
|
scrollback-down-page=Shift+End
|
|
|
|
# Additional clipboard bindings
|
|
clipboard-copy=Ctrl+Shift+C XF86Copy
|
|
clipboard-paste=Ctrl+Shift+V XF86Paste</code></pre>
|
|
<h3>Example Mouse Bindings</h3>
|
|
<p>Customize mouse behavior in [mouse-bindings] section:</p>
|
|
<pre><code>[mouse-bindings]
|
|
# Block selection with Ctrl+drag
|
|
select-begin-block=Control+BTN_LEFT
|
|
select-extend-character-wise=Control+BTN_RIGHT</code></pre>
|
|
<hr>
|
|
<h2>Tips</h2>
|
|
<ul>
|
|
<li>Use include= directive to include other config files (e.g., themes)</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Font names accept comma-separated fontconfig-style names for fallbacks</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Size can be in points or pixel size; DPI awareness affects point size</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Use colors-dark and colors-light for theme switching (colors and colors2 are deprecated)</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Shell integration enables prompt jumping (Ctrl+Shift+Z/X)</li>
|
|
</ul>
|
|
<ul>
|
|
<li>URL mode (Ctrl+Shift+U) allows activating visible URLs</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Primary selection (middle-click paste) works independently of clipboard</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Block selection (Ctrl+drag) is useful for columnar data</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Scrollback search copies matches to primary selection automatically</li>
|
|
</ul>
|
|
<hr>
|
|
<h2>Resources</h2>
|
|
<ul>
|
|
<li>Project: https://codeberg.org/dnkl/foot</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Manual: man foot</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Config manual: man foot.ini</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> |