From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alvar Maciel Subject: problems with org-protocol + capture templates Date: Wed, 20 Mar 2013 18:19:01 -0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48934) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIQPs-0006YB-Im for emacs-orgmode@gnu.org; Wed, 20 Mar 2013 17:19:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UIQPq-0006kA-Vd for emacs-orgmode@gnu.org; Wed, 20 Mar 2013 17:19:24 -0400 Received: from mail-we0-x232.google.com ([2a00:1450:400c:c03::232]:49420) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIQPq-0006gt-P6 for emacs-orgmode@gnu.org; Wed, 20 Mar 2013 17:19:22 -0400 Received: by mail-we0-f178.google.com with SMTP id o45so1897640wer.9 for ; Wed, 20 Mar 2013 14:19:21 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi to all, I'm using org-mode as personal day planner with almost all the configuration of http://doc.norang.ca/org-mode.html I try to use org-protocol to send links to emacs using the config of worg. But when emacs open i can not select the template of the capture mode (it's weird months ago was working) and i don't know were is my mistake. this is my keybindidng var orgProtoString = 'org-protocol://capture://'+ encodeURIComponent(gBrowser.currentURI.spec) + '/' + encodeURIComponent(gBrowser.contentWindow.document.title) + '/' + encodeURIComponent(content.window.getSelection()); gBrowser.loadURI(orgProtoString); my capture template (setq org-capture-templates (quote (("t" "todo" entry (file "~/en uso/2013/org/refile.org") "* TODO %?\n%U\n%a\n" :clock-in t :clock-resume t) ("r" "respond" entry (file "~/en uso/2013/org/refile.org") "* NEXT Respond to %:from on %:subject\nSCHEDULED: %t\n%U\n%a\n" :clock-in t :clock-resume t :immediate-finish t) ("n" "note" entry (file "~/en uso/2013/org/refile.org") "* %? :NOTE:\n%U\n%a\n" :clock-in t :clock-resume t) ("j" "Journal" entry (file+datetree "~/Dropbox/en uso/2013/org/diary.org") "* %?\n%U\n" :clock-in t :clock-resume t) ("w" "org-protocol" entry (file "~/en uso/2013/org/refile.org") "* TODO Review %c\n%U\n" :immediate-finish t) ("p" "Phone call" entry (file "~/en uso/2013/org/refile.org") "* PHONE %? :PHONE:\n%U" :clock-in t :clock-resume t) ("h" "Habit" entry (file "~/en uso/2013/org/refile.org") "* NEXT %?\n%U\n%a\nSCHEDULED: %(format-time-string \"<%Y-%m-%d %a .+1d/3d>\")\n:PROPERTIES:\n:STYLE: habit\n:REPEAT_TO_STATE: NEXT\n:END:\n")))) and the .desktop file in ./local/share/applications [Desktop Entry] Name=org-protocol Exec=emacs %u Type=Application Terminal=false Categories=System; MimeType=x-scheme-handler/org-protocol; reggards Alvar