From 60aabb17af9bba7aa0ce3c57c7559690f339c80c Mon Sep 17 00:00:00 2001 From: Thomas Dehaeze Date: Thu, 31 Jan 2019 12:05:45 +0100 Subject: [PATCH] Add userscript to add current url to refile.org --- dotfiles/qutebrowser.org | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/dotfiles/qutebrowser.org b/dotfiles/qutebrowser.org index 0ad2d0e..9134970 100644 --- a/dotfiles/qutebrowser.org +++ b/dotfiles/qutebrowser.org @@ -895,3 +895,23 @@ Cast to Chromecast #+BEGIN_SRC conf config.bind(',c', ':hint links spawn catt cast {hint-url}') #+END_SRC + +Add url to refile.org +#+BEGIN_SRC conf +config.bind(',r', ':spawn --userscript ~/.config/qutebrowser/userscripts/test.sh') +#+END_SRC + +* Userscripts +** TODO Add url to refile.org + :PROPERTIES: + :header-args: :tangle ~/.config/qutebrowser/userscripts/test.sh + :header-args+: :comments both :mkdirp yes + :header-args+: :shebang "#!/usr/bin/env bash" + :END: + +Add the date and time of add to properties. +#+begin_src bash +echo "* TODO $QUTE_TITLE" >> ~/Dropbox/org/refile.org +echo "$QUTE_URL" >> ~/Dropbox/org/refile.org +echo "message-info 'Added to refile.org'" >> "$QUTE_FIFO" +#+end_src