emacs/var/elfeed/db/data/96/967cc070e17f246d4ea7d3c3ed9a6e98dbbd028d
2022-01-03 12:49:32 -06:00

20 lines
1.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<p>Sometimes we find a file but dont want to interrupt the work in progress in the current window. It is best to open it in a new window (or <em>frame</em>, in Emacs term).</p>
<p>If you are using <a href="https://oremacs.com/swiper">Ivy / Counsel / Swiper</a>, try the below workflow:</p>
<ol>
<li><code class="language-plaintext highlighter-rouge">M-x counsel-find-file</code>, or type <code class="language-plaintext highlighter-rouge">C-x C-f</code></li>
<li>Fill out the file name with the help of auto-completion (Tip: <a href="https://emacstil.com/til/2021/09/16/ivy-completion-with-current-selection/">Use <code class="language-plaintext highlighter-rouge">M-i</code> to complete the name without jumping to it</a>)</li>
<li>Press the <a href="https://oremacs.com/swiper/#hydra-in-the-minibuffer">Hydra key</a> <code class="language-plaintext highlighter-rouge">C-o</code> to open the Hydra menu</li>
<li>Press <code class="language-plaintext highlighter-rouge">f</code> to open in another frame. Voila!</li>
</ol>
<p>Bonus: There are other actions available in the Hydra menu, like copying the file path, mkdir, deleting file, etc.</p>
<p>Basically if we want to do any file related action, simply type <code class="language-plaintext highlighter-rouge">C-x C-f</code> and <em>wire up the action</em> as we need.</p>
<p>Its neat!</p>
<p>Demo:</p>
<p><img alt="find-file-open-in-new-window" src="https://user-images.githubusercontent.com/2715151/136033348-815bc396-ec72-4a03-86fd-40a69018f45b.gif" /></p>