diff options
author | Matthew Lemon <lemon@x220.lan> | 2020-09-06 16:48:05 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@x220.lan> | 2020-09-06 16:48:05 +0100 |
commit | e4640e28c8449eea66392052bfab57ce0cdd27f9 (patch) | |
tree | 2be81b55bc37da60599f4e6d434e74a57694962e /fish/functions/copy-to-markdown.fish |
first commit
Diffstat (limited to 'fish/functions/copy-to-markdown.fish')
-rw-r--r-- | fish/functions/copy-to-markdown.fish | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fish/functions/copy-to-markdown.fish b/fish/functions/copy-to-markdown.fish new file mode 100644 index 0000000..aaa91e1 --- /dev/null +++ b/fish/functions/copy-to-markdown.fish @@ -0,0 +1,3 @@ +function copy-to-markdown --description 'Text copied from browser will be converted to Markdown and put back on clipboard' + xclip -o -selection clipboard -t text/html | pandoc -r html -w markdown | xclip -i -selection clipboard +end |