<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>chris' random ramblings (Posts about plugins)</title><link>https://atlee.ca/</link><description></description><atom:link href="https://atlee.ca/categories/plugins.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><lastBuildDate>Sat, 26 Sep 2026 18:32:53 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Snatching text from Herdr</title><link>https://atlee.ca/posts/herdr-snatch/</link><dc:creator>chris</dc:creator><description>&lt;p&gt;A couple of years ago I wrote about &lt;a href="https://atlee.ca/posts/extrakto/"&gt;Extrakto&lt;/a&gt;, a tmux plugin that lets me find text in my terminal and insert it into the command I'm typing. I've missed that little trick while working in &lt;a href="https://herdr.dev/"&gt;Herdr&lt;/a&gt;. A build prints the path I need, and there I am selecting it with the mouse or typing it out again.&lt;/p&gt;
&lt;p&gt;So I built &lt;a href="https://github.com/catlee/herdr-snatch"&gt;herdr-snatch&lt;/a&gt;. It puts an &lt;code&gt;fzf&lt;/code&gt; picker over Herdr's output. Search for a path, URL, commit hash, word, or whole line, then press Enter to insert it into the pane you came from.&lt;/p&gt;
&lt;p&gt;For example, if a build prints &lt;code&gt;src/foo/parser.rs&lt;/code&gt;, I can type &lt;code&gt;vim&lt;/code&gt;, open Snatch with &lt;code&gt;prefix+Tab&lt;/code&gt;, search for &lt;code&gt;pars&lt;/code&gt;, and press Enter. The path appears after &lt;code&gt;vim&lt;/code&gt;, ready for me to run the command. Snatch doesn't press Enter for me, which is probably for the best.&lt;/p&gt;
&lt;video width="800" controls muted playsinline&gt;
    &lt;source src="https://atlee.ca/posts/herdr-snatch.mp4" type="video/mp4"&gt;
&lt;/source&gt;&lt;/video&gt;

&lt;p&gt;It searches the visible output in the current tab by default. If the text was in another pane, or has scrolled away, I can switch to the whole workspace or retained scrollback without losing my search. &lt;code&gt;Ctrl-Y&lt;/code&gt; copies the selection to the clipboard, and &lt;code&gt;Ctrl-O&lt;/code&gt; opens a URL or file instead of inserting it.&lt;/p&gt;
&lt;p&gt;To install it, you'll need Herdr 0.8.2 or newer, Python 3.9 or newer, and &lt;code&gt;fzf&lt;/code&gt;:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;herdr&lt;span class="w"&gt; &lt;/span&gt;plugin&lt;span class="w"&gt; &lt;/span&gt;install&lt;span class="w"&gt; &lt;/span&gt;catlee/herdr-snatch
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;The &lt;a href="https://github.com/catlee/herdr-snatch#install"&gt;README&lt;/a&gt; has the key binding I use and the other picker shortcuts. Right now this is a small tool for the paths and bits of output I keep reusing. If it misses something useful in your terminal, let me know!&lt;/p&gt;</description><category>herdr</category><category>plugins</category><category>shell</category><guid>https://atlee.ca/posts/herdr-snatch/</guid><pubDate>Sat, 26 Sep 2026 18:21:53 GMT</pubDate></item></channel></rss>