Skip to content

Instantly share code, notes, and snippets.

@m4r71n
Created January 29, 2014 21:02
Show Gist options
  • Save m4r71n/b988322cece3dfb483ee to your computer and use it in GitHub Desktop.
Save m4r71n/b988322cece3dfb483ee to your computer and use it in GitHub Desktop.
transforms english date format to german date format and adds as entry
[Commands]
1\Name=Date english -> german
1\Match=[0-9]{4}-[0-9]{2}-[0-9]{2}
1\Command="copyq eval \"add( str(input()).trim().replace(/([0-9]{4})-([0-9]{2})-([0-9]{2})/, '$3.$2.$1') )\""
1\Separator=\\n
1\Input=text/plain
1\Automatic=true
size=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment