* New Chrome Extension @ 2015-07-07 15:44 Konstantin Kliakhandler 2015-07-07 16:16 ` Ken Mankoff 0 siblings, 1 reply; 6+ messages in thread From: Konstantin Kliakhandler @ 2015-07-07 15:44 UTC (permalink / raw) To: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 436 bytes --] Hello everyone, I wrote up a small chrome extension for org-protocol. Comments, improvements and positive criticism are all welcome. The code is available at https://github.com/sprig/org-capture-extension The extension can be installed from https://chrome.google.com/webstore/detail/org-capture/kkkjlfejijcjgjllecmnejhogpbcigdc Enjoy, Kosta -- Konstantin Kliakhandler http://slumpy.org )°) )°( (°( [-- Attachment #2: Type: text/html, Size: 859 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: New Chrome Extension 2015-07-07 15:44 New Chrome Extension Konstantin Kliakhandler @ 2015-07-07 16:16 ` Ken Mankoff 2015-07-07 16:24 ` Ken Mankoff 0 siblings, 1 reply; 6+ messages in thread From: Ken Mankoff @ 2015-07-07 16:16 UTC (permalink / raw) To: Konstantin Kliakhandler; +Cc: emacs-orgmode Hi Konstantin, On 2015-07-07 at 11:44, Konstantin Kliakhandler <kosta@slumpy.org> wrote: > I wrote up a small chrome extension for org-protocol. Comments, > improvements and positive criticism are all welcome. Thanks for making this. I just set up org-protocol and pass the "install test" on that page. Now when I click on your icon/extension Emacs comes to the foreground and I see the following error in the modeline: > No capture template referred to by "L" keys And in *Messages* I see: > Greedy org-protocol handler. Killing client. > No server editing buffers exist > No capture template referred to by "L" keys Any idea what I might be doing wrong? -k. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: New Chrome Extension 2015-07-07 16:16 ` Ken Mankoff @ 2015-07-07 16:24 ` Ken Mankoff 2015-07-07 16:57 ` Konstantin Kliakhandler 0 siblings, 1 reply; 6+ messages in thread From: Ken Mankoff @ 2015-07-07 16:24 UTC (permalink / raw) To: Konstantin Kliakhandler; +Cc: emacs-orgmode On 2015-07-07 at 12:16, Ken Mankoff <mankoff@gmail.com> wrote: > Hi Konstantin, > > On 2015-07-07 at 11:44, Konstantin Kliakhandler <kosta@slumpy.org> wrote: >> I wrote up a small chrome extension for org-protocol. Comments, >> improvements and positive criticism are all welcome. > > Thanks for making this. I just set up org-protocol and pass the > "install test" on that page. Now when I click on your icon/extension > Emacs comes to the foreground and I see the following error in the > modeline: > >> No capture template referred to by "L" keys > > And in *Messages* I see: > >> Greedy org-protocol handler. Killing client. >> No server editing buffers exist >> No capture template referred to by "L" keys If I add a capture template with hotkey "L" I get the same message but for "p". If I add a capture template with the hotkey "p" then it appears to mostly work, but I don't get selected text. I do get a link to the webpage as the capture item body. -k. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: New Chrome Extension 2015-07-07 16:24 ` Ken Mankoff @ 2015-07-07 16:57 ` Konstantin Kliakhandler 2015-07-07 17:13 ` Ken Mankoff 0 siblings, 1 reply; 6+ messages in thread From: Konstantin Kliakhandler @ 2015-07-07 16:57 UTC (permalink / raw) To: Ken Mankoff; +Cc: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 2233 bytes --] Hello Ken, The first user, hurrah! You were right to add the capture templates - I will update the docs to be more clear about that. I think the first thing to add to the extension now that it is in the open is to add configuration for the targets... Here are the templates that I use (I need to replace the captured on: with a property at some point, but this is beside the point): ("L" "Protocol Link" entry (file+headline ,(concat org-directory "notes.org") "Inbox") "* %? [[%:link][%:description]] \nCaptured On: %U") ("p" "Protocol" entry (file+headline ,(concat org-directory "notes.org") "Inbox") "* %^{Title}\nSource: %u, %c\n #+BEGIN_QUOTE\n%i\n#+END_QUOTE\n\n\n%?") I can't recall at the moment why I use the nicer format replacements for the link and the shorter for the full quote, and it might not matter. Could you try to make your "p" template similar to mine and see if it works? Alternatively, can you paste the templates you used? Cheers, Kosta -- Konstantin Kliakhandler http://slumpy.org )°) )°( (°( On 7 July 2015 at 19:24, Ken Mankoff <mankoff@gmail.com> wrote: > > On 2015-07-07 at 12:16, Ken Mankoff <mankoff@gmail.com> wrote: > > Hi Konstantin, > > > > On 2015-07-07 at 11:44, Konstantin Kliakhandler <kosta@slumpy.org> > wrote: > >> I wrote up a small chrome extension for org-protocol. Comments, > >> improvements and positive criticism are all welcome. > > > > Thanks for making this. I just set up org-protocol and pass the > > "install test" on that page. Now when I click on your icon/extension > > Emacs comes to the foreground and I see the following error in the > > modeline: > > > >> No capture template referred to by "L" keys > > > > And in *Messages* I see: > > > >> Greedy org-protocol handler. Killing client. > >> No server editing buffers exist > >> No capture template referred to by "L" keys > > If I add a capture template with hotkey "L" I get the same message but for > "p". If I add a capture template with the hotkey "p" then it appears to > mostly work, but I don't get selected text. I do get a link to the webpage > as the capture item body. > > -k. > [-- Attachment #2: Type: text/html, Size: 3412 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: New Chrome Extension 2015-07-07 16:57 ` Konstantin Kliakhandler @ 2015-07-07 17:13 ` Ken Mankoff 2015-07-07 17:31 ` Konstantin Kliakhandler 0 siblings, 1 reply; 6+ messages in thread From: Ken Mankoff @ 2015-07-07 17:13 UTC (permalink / raw) To: Konstantin Kliakhandler; +Cc: emacs-orgmode Selected text works with your capture templates. Thanks for sending them. FYI I notice the "test" on the org-protocol.el setup pages uses this: document.location.href='org-protocol://capture://'+makeUrl(); While yours uses: capture:/L/... If you don't specify "L" or "c" then would it let me choose which template the capture gets sent to? Seems like it might be an extra keystroke to then choose the template, but also more powerful... -k. On 2015-07-07 at 12:57, Konstantin Kliakhandler <kosta@slumpy.org> wrote: > Hello Ken, > > The first user, hurrah! > > You were right to add the capture templates - I will update the docs to be > more clear about that. I think the first thing to add to the extension now > that it is in the open is to add configuration for the targets... > > Here are the templates that I use (I need to replace the captured on: with > a property at some point, but this is beside the point): > > ("L" "Protocol Link" entry (file+headline ,(concat org-directory "notes.org") > "Inbox") "* %? [[%:link][%:description]] \nCaptured On: %U") > > ("p" "Protocol" entry (file+headline ,(concat org-directory "notes.org") > "Inbox") > "* %^{Title}\nSource: %u, %c\n > #+BEGIN_QUOTE\n%i\n#+END_QUOTE\n\n\n%?") > > I can't recall at the moment why I use the nicer format replacements for > the link and the shorter for the full quote, and it might not matter. Could > you try to make your "p" template similar to mine and see if it works? > Alternatively, can you paste the templates you used? > > Cheers, > Kosta ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: New Chrome Extension 2015-07-07 17:13 ` Ken Mankoff @ 2015-07-07 17:31 ` Konstantin Kliakhandler 0 siblings, 0 replies; 6+ messages in thread From: Konstantin Kliakhandler @ 2015-07-07 17:31 UTC (permalink / raw) To: Ken Mankoff; +Cc: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 2257 bytes --] Great - the %i is what gets interpolated into the pasted text. If you don't specify a template letter, as in the setup pages, then the link is sent to the same place as it would by org-store-link ("C-c l" if you use the suggested bindings). Personally, I find it less useful in my workflow, as I would then need to start a new capture and insert the link. I can understand however why someone else would find that useful. When I (or someone else) add a configuration page, this should be easy to change. Cheers, Kosta On Jul 7, 2015 8:13 PM, "Ken Mankoff" <mankoff@gmail.com> wrote: > > Selected text works with your capture templates. Thanks for sending them. > > FYI I notice the "test" on the org-protocol.el setup pages uses this: > > document.location.href='org-protocol://capture://'+makeUrl(); > > While yours uses: > > capture:/L/... > > If you don't specify "L" or "c" then would it let me choose which template > the capture gets sent to? Seems like it might be an extra keystroke to then > choose the template, but also more powerful... > > -k. > > > On 2015-07-07 at 12:57, Konstantin Kliakhandler <kosta@slumpy.org> wrote: > > Hello Ken, > > > > The first user, hurrah! > > > > You were right to add the capture templates - I will update the docs to > be > > more clear about that. I think the first thing to add to the extension > now > > that it is in the open is to add configuration for the targets... > > > > Here are the templates that I use (I need to replace the captured on: > with > > a property at some point, but this is beside the point): > > > > ("L" "Protocol Link" entry (file+headline ,(concat org-directory " > notes.org") > > "Inbox") "* %? [[%:link][%:description]] \nCaptured On: %U") > > > > ("p" "Protocol" entry (file+headline ,(concat org-directory "notes.org") > > "Inbox") > > "* %^{Title}\nSource: %u, %c\n > > #+BEGIN_QUOTE\n%i\n#+END_QUOTE\n\n\n%?") > > > > I can't recall at the moment why I use the nicer format replacements for > > the link and the shorter for the full quote, and it might not matter. > Could > > you try to make your "p" template similar to mine and see if it works? > > Alternatively, can you paste the templates you used? > > > > Cheers, > > Kosta > > [-- Attachment #2: Type: text/html, Size: 3131 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-07-07 17:32 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-07-07 15:44 New Chrome Extension Konstantin Kliakhandler 2015-07-07 16:16 ` Ken Mankoff 2015-07-07 16:24 ` Ken Mankoff 2015-07-07 16:57 ` Konstantin Kliakhandler 2015-07-07 17:13 ` Ken Mankoff 2015-07-07 17:31 ` Konstantin Kliakhandler
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/emacs.git https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.