Add keybinding for org-roam

This commit is contained in:
Thomas Dehaeze 2020-05-26 08:35:32 +02:00
parent 21d7f3c2d7
commit 6ade60dc13

View File

@ -164,8 +164,8 @@
'yt': 'https://www.youtube.com/results?search_query={}', 'yt': 'https://www.youtube.com/results?search_query={}',
'gh': 'https://github.com/search?q={}', 'gh': 'https://github.com/search?q={}',
're': 'https://www.reddit.com/search?q={}', 're': 'https://www.reddit.com/search?q={}',
'lb': 'http://188.240.208.184/search.php?req={}', 'lb': 'http://gen.lib.rus.ec/search.php?req={}',
'la': 'http://188.240.208.184/scimag/index.php?s={}', 'la': 'http://gen.lib.rus.ec/scimag/index.php?s={}',
'sm': 'https://www.openstreetmap.org/search?query={}', 'sm': 'https://www.openstreetmap.org/search?query={}',
'am': 'https://www.amazon.fr/s?k={}', 'am': 'https://www.amazon.fr/s?k={}',
'md': 'https://fr.mathworks.com/help/search.html?qdoc={}&submitsearch=', 'md': 'https://fr.mathworks.com/help/search.html?qdoc={}&submitsearch=',
@ -314,6 +314,11 @@ See Amazon price history using CamelCamelCamel
config.bind(',A', ":open -t https://fr.camelcamelcamel.com/search?sq={url}") config.bind(',A', ":open -t https://fr.camelcamelcamel.com/search?sq={url}")
#+end_src #+end_src
Org Roam Entry for the current page
#+begin_src python
config.bind(',R', "open javascript:void(location.href='org-protocol://roam-ref?template=r&ref='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title))")
#+end_src
* Userscripts * Userscripts
:PROPERTIES: :PROPERTIES:
:header-args:bash: :shebang "#!/usr/bin/env bash" :header-args:bash: :shebang "#!/usr/bin/env bash"