sprig / org-capture-extension

A Chrome and firefox extension facilitating org-capture in emacs
MIT License
538 stars 56 forks source link

Org captue results in Emacs opening ~/org-capture/... file instead of triggering org-capture #40

Closed vmalloc closed 6 years ago

vmalloc commented 6 years ago

I'm using the default configuration on the emacs side ((require org-protocol)).

I got the bookmarklet working correctly from chrome:

javascript:(function () {   window.location.href='org-protocol://capture://l/'     +encodeURIComponent(window.location.href)+'/'     +encodeURIComponent(document.title)+'/'     +encodeURIComponent(window.getSelection()); })();

However the extension doesn't work on both FF and Chrome - it sends me to an empty buffer that is being opened as ~/org-protocol:/capture/?template=l&url=XXX

I think the URL formatted by the bookmarklet is the more "correct" one as it works correctly both through xdg-open and through the bookmarklet in Chrome...

vmalloc commented 6 years ago

I'm using Gnome on Arch linux, BTW, and I followed the configuration guide...

sprig commented 6 years ago

This extension by default uses different handlers than the default setup (specifically, for p as in paragraph when you have made a selection, and L for link when you haven't).

See https://github.com/sprig/org-capture-extension#set-up-handlers-in-emacs for more details.

sprig commented 6 years ago

If you have further problems with this issue feel free to reopen the ticket, but please follow the instructions outlined here;

https://github.com/sprig/org-capture-extension#troubleshooting