Skip to content

Instantly share code, notes, and snippets.

@gooddadmike
Last active September 9, 2019 13:07
Show Gist options
  • Save gooddadmike/f5eedfb5bc877bae48caa68e65f14167 to your computer and use it in GitHub Desktop.
Save gooddadmike/f5eedfb5bc877bae48caa68e65f14167 to your computer and use it in GitHub Desktop.
CopyQ change from ' to ''
copyq:
function modifyText(text)
{
return text.replace(/'/g, "''");
}
if (!copy())
abort()
var text = str(clipboard())
var newText = modifyText(text)
if (text == newText)
abort();
copy(newText)
paste()
// I set my shortcut to [Ctrl]+[Alt]+[Down] (Numpad 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment