<div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace">Michael,<br><br></div><div class="gmail_default" style="font-family:monospace,monospace">I don't know the current state of KDE applications, but at least on Debian Stable, there's a plasma applet called 'paste' that lets you paste snippets. It provides a few builtin macro expansions for stuff like<br></div><div class="gmail_default" style="font-family:monospace,monospace"><br>
<p style="margin:0px;text-indent:0px"> %{date()}</p>
<p style="margin:0px;text-indent:0px"> %{exec(netstat -plant)}</p>
<p style="margin:0px;text-indent:0px"> %{file(file:///etc/motd)}</p>
<p style="margin:0px;text-indent:0px"> %{password(16, true, true, true, true)}</p>
<p style="margin:0px;text-indent:0px"> %{time()}</p><p style="margin:0px;text-indent:0px">Note: doesn't appear that 'date()/time()' takes an argument (e.g. %{date(yesterday)}, just returns current, but as long as you have exec() you can do anything.</p><p style="margin:0px;text-indent:0px">If you click a snippet, it inserts into the clipboard, then you can paste, You have to double-click to auto-paste.<br></p><p style="margin:0px;text-indent:0px"><br></p><p style="margin:0px;text-indent:0px">You could leverage the klipper Actions to do something similar, though it would be a bit more "hackish".</p><p style="margin:0px;text-indent:0px"><br></p><p style="margin:0px;text-indent:0px">Setup a regular expression like @K -- If you type, then double click that, and have automatic enabled (or, alternatively, if you use <CTRL><ALTR><R> to invoke manual klipper actions popupmenu), you would have a popup menu with all your commands that could be things like:</p><p style="margin:0px;text-indent:0px"><br></p><p style="margin:0px;text-indent:0px"> Command=echo FLIMFLAM</p><p style="margin:0px;text-indent:0px"> Output Handling=Replace Clipboard</p><p style="margin:0px;text-indent:0px">(organize as many commands that echo what you want under a single klipper action)<br></p><p style="margin:0px;text-indent:0px"><br></p><p style="margin:0px;text-indent:0px">then you'd just have to paste. I don't see a way in klipper to auto-paste<br></p><br></div><div class="gmail_default" style="font-family:monospace,monospace">Also, you can use 'khotkeys' to create a global shortcut that performs keyboard input. (but you'd likely run out of keyboard combos, or forget them.) also, i think khotkeys was destined for deprecation?<br><br></div><div class="gmail_default" style="font-family:monospace,monospace">probably many other solutions. (i recall a very simple Xt X11 application from many years ago that did similar things)<br><br></div><div class="gmail_default" style="font-family:monospace,monospace">--stephen<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 28, 2016 at 2:15 PM, Michael Fierro <span dir="ltr"><<a href="mailto:biffster@gmail.com" target="_blank">biffster@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I have a feature request for Klipper: snippets! I can't even begin to say how convenient having sticky entries that I can click on and then paste wherever I need it. If you need an example of how these work, look either at the Snippets plugin for glipper or the Snippet menu in ClipMenu (Mac).<span class="HOEnZb"><font color="#888888"><div><br></div><div>-- </div><div>Michael Fierro</div><div><br></div></font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Stephen Dowdy - Systems Administrator - NCAR/RAL<br>303.497.2869 - <a href="mailto:sdowdy@ucar.edu" target="_blank">sdowdy@ucar.edu</a> - <a href="http://www.ral.ucar.edu/~sdowdy/" target="_blank">http://www.ral.ucar.edu/~sdowdy/</a><br><br><br></div>
</div>