<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Md. Tasnim Alam</title>
    <description>The latest articles on DEV Community by Md. Tasnim Alam (@tasnimalam).</description>
    <link>https://dev.to/tasnimalam</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F445875%2Fb2aa2968-8eed-411f-922b-fc110a2091a0.jpeg</url>
      <title>DEV Community: Md. Tasnim Alam</title>
      <link>https://dev.to/tasnimalam</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tasnimalam"/>
    <language>en</language>
    <item>
      <title>How to enable image preview in nnn with kitty terminal</title>
      <dc:creator>Md. Tasnim Alam</dc:creator>
      <pubDate>Fri, 15 Oct 2021 11:40:03 +0000</pubDate>
      <link>https://dev.to/tasnimalam/how-to-enable-image-preview-in-nnn-with-kitty-terminal-2n0e</link>
      <guid>https://dev.to/tasnimalam/how-to-enable-image-preview-in-nnn-with-kitty-terminal-2n0e</guid>
      <description>&lt;p&gt;&lt;a href="https://github.com/jarun/nnn"&gt;NNN&lt;/a&gt; is a very fast, minimal terminal-based file manager. You can easily navigate, manipulate files in the command line, and much more. If you're a terminal user, you should check this out. It'll supercharge your productivity to another level.&lt;/p&gt;

&lt;h3&gt;
  
  
  Zsh/Bash/Fish config
&lt;/h3&gt;

&lt;p&gt;You need to set a NNN_FIFO path and a key for the plugin with NNN_PLUG. I'm using "p" key to see the preview.&lt;/p&gt;

&lt;p&gt;For zsh/bash users, copy this line into .bashrc or .zshrc&lt;/p&gt;

&lt;p&gt;export NNN_FIFO="/tmp/nnn.fifo"&lt;br&gt;
export NNN_PLUG="p:preview-tui"&lt;/p&gt;

&lt;p&gt;For fish users, put this into config.fish file&lt;/p&gt;

&lt;p&gt;set --export NNN_FIFO "/tmp/nnn.fifo"&lt;br&gt;
set -x NNN_PLUG "p:preview-tui"&lt;/p&gt;

&lt;h3&gt;
  
  
  Kitty config
&lt;/h3&gt;

&lt;p&gt;Open kitty config file ( ~/.config/kitty/kitty.conf ), find and change these variables:&lt;/p&gt;

&lt;p&gt;allow_remote_control yes&lt;br&gt;
 listen_on unix:$TMPDIR/kitty&lt;br&gt;
 enabled_layouts all&lt;/p&gt;

&lt;p&gt;That's it. Now, open nnn in a terminal and hover over an image file. Press 'p and see the preview of the image. You can change the split position by changing enabled_layout variable in kitty.conf&lt;/p&gt;

</description>
      <category>bash</category>
      <category>tips</category>
      <category>howto</category>
      <category>cli</category>
    </item>
  </channel>
</rss>
