<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Mint on Janusworx</title>
    <link>https://janusworx.com/tags/mint/</link>
    <description>Recent content in Mint on Janusworx</description>
    <image>
      <title>Janusworx</title>
      <url>https://janusworx.com/images/jw-logo.png</url>
      <link>https://janusworx.com/images/jw-logo.png</link>
    </image>
    <generator>Hugo -- 0.157.0</generator>
    <language>en</language>
    <lastBuildDate>Mon, 03 Jun 2024 17:08:35 +0530</lastBuildDate>
    <atom:link href="https://janusworx.com/tags/mint/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Assigning Keyboard Shortcuts to Nemo Actions</title>
      <link>https://janusworx.com/work/assigning-keyboard-shortcuts-to-nemo-actions/</link>
      <pubDate>Mon, 03 Jun 2024 17:08:35 +0530</pubDate>
      <guid>https://janusworx.com/work/assigning-keyboard-shortcuts-to-nemo-actions/</guid>
      <description>Shortcuts! Shortcuts, everywhere!</description>
      <content:encoded><![CDATA[<p>Everytime I download a <a href="https://www.humblebundle.com/books/dynamite-20th-anniversary-20000page-mega-bundle-books">Humble Bundle</a>, I’m left with a ton of books, in various formats on my desktop.<br>
I normally like all the formats for a single title to be in a single folder, so that Calibre can then treat them as a single book<sup id="fnref:1"><a href="#fn:1" class="footnote-ref" role="doc-noteref">1</a></sup>, when adding them.</p>
<p>I’ve been using Pedro Santana’s, <a href="https://github.com/pedro-augusto-santana/nemo_create_new_folder_with_selection">nifty little Nemo action</a> to help me do just this.<br>
Once installed, all I need to do is select my files, right click on them and then create a new folder, like so …
<figure class="align-center ">
    <img loading="lazy" src="/images/2024/nemo-action-1.png#center"
         alt="nemo cinnamon screenshot with no pointer in the context command"/> 
</figure>
</p>
<p>The one remaining wrinkle, being that when you’re completely keyboard driven, you still need to come down a couple of steps with the arrow keys or switch to the mouse.<br>
When doing this with close to 250+ files, this quickly gets tedious.<br>
<a href="https://stackoverflow.com/a/42786928">Stack Overflow to the rescue</a>.</p>
<p>Turns out that all I needed to do was add an <code>_</code> in front of the letter, I wanted to use to activate my little action from the context menu.<br>
My original action went …</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-toml" data-lang="toml"><span style="display:flex;"><span>[<span style="color:#a6e22e">Nemo</span> <span style="color:#a6e22e">Action</span>]
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#a6e22e">Active</span>=<span style="color:#66d9ef">true</span>
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#a6e22e">Name</span>=<span style="color:#a6e22e">Create</span> <span style="color:#a6e22e">new</span> <span style="color:#a6e22e">folder</span> <span style="color:#a6e22e">with</span> <span style="color:#a6e22e">selection</span> 
</span></span><span style="display:flex;"><span>...
</span></span></code></pre></div><p>I decided to use the <em>n</em> in <em>selection</em>. <em><strong>N</strong></em> for <em>new folder</em>. Easy to remember! So with this tiny change …</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-TOML" data-lang="TOML"><span style="display:flex;"><span><span style="color:#a6e22e">Name</span>=<span style="color:#a6e22e">Create</span> <span style="color:#a6e22e">new</span> <span style="color:#a6e22e">folder</span> <span style="color:#a6e22e">with</span> <span style="color:#a6e22e">selectio_n</span> 
</span></span></code></pre></div><p>I get to do this!</p>
<figure class="align-center ">
    <img loading="lazy" src="/images/2024/nemo-action-2.png#center"
         alt="nemo cinnamon screenshot that lets me use a custom key in the context command"/> 
</figure>

<p>I can select, get the context menu, hit n, type in the folder name and done!<br>
It’s still a lot of work when there’s lots of files, but there’s a seamless flow to the entire process.</p>
<p><hr style='margin-left: auto; margin-right: auto; margin-bottom: 40px; margin-top: 50px; width:100px; border: none; background-color:rgb(238, 238, 238); color: rgb(238, 238, 238);  height: 1px;'/>

Feedback on this post? Mail me at <a href="mailto:feedback@janusworx.com?subject=%22Feedback on post: Assigning Keyboard Shortcuts to Nemo Actions
%22">feedback at this domain</a>
<br>

<br>

P.S. Subscribe to my <a href="https://janusworx.com/subscribe/">mailing list!</a><br>
Forward these posts and letters to your friends and get them to subscribe!<br>
P.P.S. Feed my <a href="https://www.amazon.in/hz/wishlist/ls/2QAUKHHAMOOVS?ref_=wl_share">insatiable reading habit.</a></p>
<hr>
<div class="footnotes" role="doc-endnotes">
<hr>
<ol>
<li id="fn:1">
<p><a href="https://manual.calibre-ebook.com/gui.html#add-books">point two, in this section of the documentation</a>&#160;<a href="#fnref:1" class="footnote-backref" role="doc-backlink">&#x21a9;&#xfe0e;</a></p>
</li>
</ol>
</div>
]]></content:encoded>
    </item>
  </channel>
</rss>
