<?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: Ahmed Kamal</title>
    <description>The latest articles on DEV Community by Ahmed Kamal (@27medkamal).</description>
    <link>https://dev.to/27medkamal</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%2F1013917%2Fb6e9971c-2cf9-4e1b-b0ed-5f2dd82476aa.jpeg</url>
      <title>DEV Community: Ahmed Kamal</title>
      <link>https://dev.to/27medkamal</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/27medkamal"/>
    <language>en</language>
    <item>
      <title>A tmux plugin to make creating/switching sessions easier</title>
      <dc:creator>Ahmed Kamal</dc:creator>
      <pubDate>Tue, 24 Jan 2023 12:19:52 +0000</pubDate>
      <link>https://dev.to/27medkamal/a-tmux-plugin-to-make-creatingswitching-sessions-easier-l0e</link>
      <guid>https://dev.to/27medkamal/a-tmux-plugin-to-make-creatingswitching-sessions-easier-l0e</guid>
      <description>&lt;h2&gt;
  
  
  Tmux session wizard
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fuser-images.githubusercontent.com%2F14043848%2F195257556-bc2cfe0a-a1c7-4e29-9741-776eaf0caa06.png" class="article-body-image-wrapper"&gt;&lt;img alt="tmux-session-wizard" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fuser-images.githubusercontent.com%2F14043848%2F195257556-bc2cfe0a-a1c7-4e29-9741-776eaf0caa06.png" width="800" height="557"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;One prefix key to rule them all (with &lt;a href="https://github.com/junegunn/fzf" rel="noopener noreferrer"&gt;fzf&lt;/a&gt; &amp;amp; &lt;a href="https://github.com/ajeetdsouza/zoxide" rel="noopener noreferrer"&gt;zoxide&lt;/a&gt;):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Creating a new session from a list of recently accessed directories&lt;/li&gt;
&lt;li&gt;Naming a session after a folder/project&lt;/li&gt;
&lt;li&gt;Switching sessions&lt;/li&gt;
&lt;li&gt;Viewing current or creating new sessions in one popup&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Elevator Pitch
&lt;/h2&gt;

&lt;p&gt;Tmux is powerful, yes, but why is creating/switching sessions (arguably its main feature) is so damn hard to do? To create a new session for a project you have to run &lt;code&gt;tmux new-session -s &amp;lt;session-name&amp;gt; -c &amp;lt;project-folder&amp;gt;&lt;/code&gt;. What if you're inside tmux? Oh, wait you have to use &lt;code&gt;-d&lt;/code&gt; followed by &lt;code&gt;tmux switch-client -t &amp;lt;session-name&amp;gt;&lt;/code&gt;. Oh, wait again! What if you're outside tmux and you want to attach to an existing session? now you have to run &lt;code&gt;tmux attach -t &amp;lt;session-name&amp;gt;&lt;/code&gt; instead. What if you can't remember whether you have a session for that project or not. Guess what? Now you have to run &lt;code&gt;tmux has-session -t &amp;lt;session-name&amp;gt;&lt;/code&gt;. What if your project folder contains characters not accepted by tmux as a session name? What if you want to show a list of existing sessions? You run &lt;code&gt;tmux list-sessions&lt;/code&gt;. What if you want to create a session for a project you've recently navigated to? What if, what if, what if.... HOW IS THAT BETTER THAN HAVING 20 TERMINAL WINDOWS OPEN?&lt;/p&gt;

&lt;p&gt;What if you could use 1 prefix key to do all of this? Read on!&lt;/p&gt;

&lt;h2&gt;
  
  
  Features
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;prefix + T&lt;/code&gt; (customisable) - displays a pop-up with &lt;a href="https://github.com/junegunn/fzf" rel="noopener noreferrer"&gt;fzf&lt;/a&gt; which displays the existing sessions followed by recently accessed directories (using &lt;a href="https://github.com/ajeetdsouza/zoxide" rel="noopener noreferrer"&gt;zoxide&lt;/a&gt;). Choose the session or the directory and voila! You're in that session. If the session doesn't exist, it will be created.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get the plugin
&lt;/h2&gt;

&lt;p&gt;Install from &lt;a href="https://github.com/27medkamal/tmux-session-wizard" rel="noopener noreferrer"&gt;https://github.com/27medkamal/tmux-session-wizard&lt;/a&gt;&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>rust</category>
      <category>webdev</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
