Add userscript to add current url to refile.org
This commit is contained in:
parent
c190cdee12
commit
60aabb17af
@ -895,3 +895,23 @@ Cast to Chromecast
|
|||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
config.bind(',c', ':hint links spawn catt cast {hint-url}')
|
config.bind(',c', ':hint links spawn catt cast {hint-url}')
|
||||||
#+END_SRC
|
#+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
|
||||||
|
Loading…
Reference in New Issue
Block a user