emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Re: Org-capture does not work with "long" extracts of text


From: Sébastien Vauban
Subject: [O] Re: Org-capture does not work with "long" extracts of text
Date: Fri, 25 Mar 2011 10:55:10 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (windows-nt)

Hi Giovanni,

Giovanni Ridolfi wrote:
> Sébastien Vauban <address@hidden> writes:
>> Org-capture, [...] on Firefox/Windows XP. [...]
>>
>> So, what's the limitation? I can only capture _short text_ extracts from
>> the Web. Once it gets over 20 lines of text or so, the "Org-capture" button
>> still does not do anything.
>
> would you please share some details and a brief tutorial so that I can try
> to reproduce this behaviour?

I followed quite precisely the instructions given on
http://orgmode.org/worg/org-contrib/org-protocol.php

In particular, for Windows, I created the following =.reg= file:

#+begin_src txt :tangle org-protocol-setup.reg
REGEDIT4

[HKEY_CLASSES_ROOT\org-protocol]
@="URL:Org Protocol"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\org-protocol\shell]
[HKEY_CLASSES_ROOT\org-protocol\shell\open]
[HKEY_CLASSES_ROOT\org-protocol\shell\open\command]
@="\"C:\\Program Files\\Emacs\\emacs\\bin\\emacsclientw.exe\" \"%1\""
#+end_src

and double-click it.

Then I created JavaScript bookmarklets, by adding new bookmarks, with the
following *names* and *addresses*:

- =org-capture=

  #+BEGIN_SRC javascript
  
javascript:location.href='org-protocol://capture://'+encodeURIComponent(location.href)+'/'+encodeURIComponent(document.title)+'/'+encodeURIComponent(window.getSelection())
  #+END_SRC

- =org-store-link=

  #+BEGIN_SRC javascript
  
javascript:location.href='org-protocol://store-link://'+encodeURIComponent(location.href)+'/'+encodeURIComponent(document.title)+'/'+encodeURIComponent(window.getSelection())
  #+END_SRC

- =org-open-source=

  #+BEGIN_SRC javascript
  
javascript:location.href='org-protocol://open-source://'+encodeURIComponent(location.href)
  #+END_SRC

Best regards,
  Seb

-- 
Sébastien Vauban




reply via email to

[Prev in Thread] Current Thread [Next in Thread]