emacs-orgmode
[Top][All Lists]
Advanced

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

Re: Bring up a screen giving option to open a series of orgmode files


From: Jean Louis
Subject: Re: Bring up a screen giving option to open a series of orgmode files
Date: Tue, 24 Nov 2020 20:41:35 +0300
User-agent: Mutt/2.0 (3d08634) (2020-11-07)

* Ihor Radchenko <yantar92@gmail.com> [2020-11-24 12:59]:
> > org-store-link would work only within Emacs, not for the case of copying
> > http links in the browser, right?
> 
> Indeed. If you want to copy "[[url][title]]" string directly from
> browser, you should probably write a simple bookmarklet. I have seen
> someone sharing it in reddit, but cannot find the comment anymore.
> In any case, you might look at
> https://stackoverflow.com/questions/5046972/copy-text-to-clipboard-from-bookmarklet
> for ideas how to do it.
> 
> Also, you can capture webpage as a heading using org-capture +
> org-protocol:
> 1. https://addons.mozilla.org/en-US/firefox/addon/org-capture/
> 2. 
> https://chrome.google.com/webstore/detail/org-capture/kkkjlfejijcjgjllecmnejhogpbcigdc
> 3. https://seds.nl/notes/orgmode-firefox-bookmark/
> 4. https://github.com/yantar92/org-capture-ref (shameless plug)
> 
> Or you can write a custom org-capture handler that invokes
> org-store-link

Those references were very helpful.

Org has already some nice capturing abilities, like rmail, one can
capture (I guess) the link to message ID, or URL in eww and so on.

I hope now that org-protocol is generic and does not only do stuff for
Org that I can capture other things too.

But in general I wonder how does that bookmarklet work. I was looking
inside and I think it works by converting or redirecting the page to
new protocol like http:// only this time org-protocol:// and then
based on that protocol it is opening a handler. If somebody knows if
this is correct, let me know.

As this feature then can be used then that I make protocol for myself,
that I can capture into the database, only not with org-protocol.

After inspection I can see that org-protocol.el have been made
generic! Bingo!

Hide Org Protocol Protocol Alist:
INS
    State : STANDARD.
   Register custom handlers for org-protocol. Hide

So that means that little different captures can be made into anything
and not only to Org.

Thank you for hints, without it I would not soon find out about that.

Jean



reply via email to

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