diff options
Diffstat (limited to '')
-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 |