EcoReality Posted June 10, 2015 Share Posted June 10, 2015 (edited) Perhaps something like this exists, but I couldn't find it. I sometimes would like to programmatically edit the clipboard in a snippet. For example, I'd like a way to change all spaces to plus signs ("+"), so that one could select some text, invoke a snippet, and have the text replaced with the edited content, like turning some text into a URL for Google: <a href="http://www.google.com/?q={clipboard:regex:s/ /+/}">{clipboard}</a> which for the text "Muscovy simplex" would yield: <a href="http://www.google.com/?q=Muscovy+simplex">Muscovy simplex</a> It seems this would have a great number of applications. (It took my "+" out whet I posted...) Edited June 10, 2015 by EcoReality Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now