posts-go/docs/2023-06-06-terminal-workflo...

119 lines
4.4 KiB
HTML

<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/5.3.0/github-markdown.min.css"
/>
<title>haunt98 posts</title>
</head>
<style>
.markdown-body {
box-sizing: border-box;
min-width: 200px;
max-width: 980px;
margin: 0 auto;
padding: 45px;
}
@media (max-width: 767px) {
.markdown-body {
padding: 15px;
}
}
</style>
<body class="markdown-body">
<h2>
<a href="index.html"><code>~</code></a>
</h2>
<h1 id="user-content-my-terminal-workflow">
<a class="heading-link" href="#my-terminal-workflow"
>My terminal workflow<span
aria-hidden="true"
class="octicon octicon-link"
></span
></a>
</h1>
<p>
All configs are in
<a href="https://github.com/haunt98/dotfiles">my dotfiles</a>.
</p>
<h2 id="user-content-use-junegunnfzf">
<a class="heading-link" href="#use-junegunnfzf">Use </a
><a href="https://github.com/junegunn/fzf">junegunn/fzf</a>
<span aria-hidden="true" class="octicon octicon-link"></span>
</h2>
<ul>
<li><code>CTRL-T</code> to fuzzy find files.</li>
<li><code>ALT-C</code> to fuzzy find directories.</li>
</ul>
<h2 id="user-content-use-zellij-orgzellij-as-alternative-to-tmux">
<a
class="heading-link"
href="#use-zellij-orgzellij-as-alternative-to-tmux"
>Use </a
><a href="https://github.com/zellij-org/zellij">zellij-org/zellij</a> as
alternative to tmux<span
aria-hidden="true"
class="octicon octicon-link"
></span>
</h2>
<p>
<a
target="_blank"
rel="noopener noreferrer nofollow"
href="https://camo.githubusercontent.com/4567dca83cde7ee893659d05eff00ba7875b1afcbcccc74a6a2312311f076532/68747470733a2f2f7a656c6c696a2e6465762f646f63756d656e746174696f6e2f696d672f6f766572766965772d7374617475732d7461622d322e706e67"
><img
src="https://camo.githubusercontent.com/4567dca83cde7ee893659d05eff00ba7875b1afcbcccc74a6a2312311f076532/68747470733a2f2f7a656c6c696a2e6465762f646f63756d656e746174696f6e2f696d672f6f766572766965772d7374617475732d7461622d322e706e67"
alt=""
data-canonical-src="https://zellij.dev/documentation/img/overview-status-tab-2.png"
style="max-width: 100%"
/></a>
</p>
<ul>
<li><code>ALT-P</code>: switch panel</li>
<li><code>ALT-N</code>: new panel vertically (right side)</li>
<li><code>ALT-M</code>: new panel horizontally (down side)</li>
<li><code>ALT-O</code>: new tab</li>
<li><code>ALT-]</code>/<code>ALT-[</code>: next/previous tab</li>
<li>Hold <code>SHIFT</code> and click on links, text, ...</li>
</ul>
<h2 id="user-content-use-wezwezterm">
<a class="heading-link" href="#use-wezwezterm">Use </a
><a href="https://github.com/wez/wezterm">wez/wezterm</a>
<span aria-hidden="true" class="octicon octicon-link"></span>
</h2>
<ul>
<li><code>CTRL-SHIFT-F</code>/<code>CMD-F</code>: search mode</li>
<li><code>CTRL-SHIFT-SPACE</code>: quick select mode</li>
<li><code>CTRL-SHIFT-X</code>: copy mode</li>
<li><code>CMD-SHIFT-[</code>/<code>CMD-SHIFT-]</code>: switch tabs</li>
</ul>
<h2 id="user-content-use-nnn">
<a class="heading-link" href="#use-nnn">Use </a
><a href="https://github.com/jarun/nnn">nnn</a>
<span aria-hidden="true" class="octicon octicon-link"></span>
</h2>
<ul>
<li><code>;-p</code>: preview mode</li>
<li><code>SPACE</code>: toggle select</li>
<li><code>a</code>: select all</li>
<li><code>x</code>: delete</li>
</ul>
<div>
Feel free to ask me via
<a href="mailto:hauvipapro+posts@gmail.com">email</a> or
<a rel="me" href="https://hachyderm.io/@haunguyen">Mastodon</a>.
<br />Source code is available on
<a href="https://github.com/haunt98/posts-go">GitHub</a>
<a href="https://codeberg.org/yoshie/posts-go">Codeberg</a>
<a href="https://git.sr.ht/~youngyoshie/posts-go">sourcehut</a>
<a href="https://gitea.treehouse.systems/yoshie/posts-go">Treehouse</a>
<a href="https://gitlab.com/youngyoshie/posts-go">GitLab</a>
</div>
</body>
</html>