<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Lf on Cheat Sheet</title><link>/tags/lf/</link><description>Recent content in Lf on Cheat Sheet</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sun, 24 May 2026 00:00:00 +0000</lastBuildDate><atom:link href="/tags/lf/index.xml" rel="self" type="application/rss+xml"/><item><title>lf</title><link>/dotfiles/lf/</link><pubDate>Sun, 24 May 2026 00:00:00 +0000</pubDate><guid>/dotfiles/lf/</guid><description>&lt;h1 id="lf"&gt;&lt;a href="https://github.com/gokcehan/lf"&gt;&lt;code&gt;lf&lt;/code&gt;&lt;/a&gt;&lt;a class="anchor" href="#lf"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;h2 id="installation"&gt;Installation&lt;a class="anchor" href="#installation"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href="https://github.com/gokcehan/lf#installation"&gt;https://github.com/gokcehan/lf#installation&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="vim-compatible-interface"&gt;Vim-compatible Interface&lt;a class="anchor" href="#vim-compatible-interface"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;lf&lt;/code&gt; provides a Vim-like navigation experience by default:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Navigation:&lt;/strong&gt; &lt;code&gt;h&lt;/code&gt;, &lt;code&gt;j&lt;/code&gt;, &lt;code&gt;k&lt;/code&gt;, &lt;code&gt;l&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Scrolling:&lt;/strong&gt; &lt;code&gt;gg&lt;/code&gt;, &lt;code&gt;G&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Search:&lt;/strong&gt; &lt;code&gt;/&lt;/code&gt;, &lt;code&gt;n&lt;/code&gt;, &lt;code&gt;N&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Selection:&lt;/strong&gt; &lt;code&gt;v&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Hidden Files:&lt;/strong&gt; &lt;code&gt;zh&lt;/code&gt; (Toggle)&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="shortcuts"&gt;Shortcuts&lt;a class="anchor" href="#shortcuts"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;m&lt;/code&gt;&lt;/strong&gt;: Set a mark (eg. &lt;code&gt;ma&lt;/code&gt; to mark a location as &amp;lsquo;a&amp;rsquo;).
&lt;ul&gt;
&lt;li&gt;Inspired by &lt;a href="../../dotfiles/vim/tips/marks/"&gt;Vim marks&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;'&lt;/code&gt;&lt;/strong&gt;: Move to a mark (eg. &lt;code&gt;'a&lt;/code&gt; to jump to the location marked &amp;lsquo;a&amp;rsquo;).
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;''&lt;/code&gt;&lt;/strong&gt;: Jump to previous location (built-in feature, also inspired by vim marks). Equivalent to &lt;code&gt;cd -&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;&amp;quot;&lt;/code&gt;&lt;/strong&gt;: Remove (Delete) the selected file or directory.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;gh&lt;/code&gt;&lt;/strong&gt;: Go home (cd &lt;code&gt;~&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="shell-integration"&gt;Shell Integration&lt;a class="anchor" href="#shell-integration"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;h3 id="change-directory-on-exit-lfcd"&gt;Change Directory on Exit (&lt;code&gt;lfcd&lt;/code&gt;)&lt;a class="anchor" href="#change-directory-on-exit-lfcd"&gt;#&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;To make &lt;code&gt;lf&lt;/code&gt; change your shell&amp;rsquo;s current working directory to the last visited directory on exit, add the following to your &lt;code&gt;~/.bashrc&lt;/code&gt;: &lt;a href="https://github.com/Jssim710/dotfiles/blob/main/1-general/.bashrc_dotfiles#L17-L21"&gt;GitHub&lt;/a&gt;&lt;/p&gt;</description></item></channel></rss>