> Now I hope that I can use org-capture to invoke other functions from > external programs.
In general, you can define your own protocols. See org-protocol-protocol-alist docstring for details how to define custom protocols executing arbitrary elisp code. > I would like to use org-capture to get data while invoking some > Elisp, that I can capture into database. Do you think that is > possible straight somehow? > > That capture does not go into Org but that I can redirect it to other > elisp function? You can add your own function to org-capture-prepare-finalize-hook and do whatever you want with the captured text, like passing it to external program. Once done, you can just call (org-capture-kill) to abort the capture and not save the data to org. > Chrome is no go here as I do not like getting tracked by Google. But > it is similar extension I just listed the possibilities. I personally use qutebrowser where I can directly call external scripts. > That is yet another tip how to capture, and I can use it probably with > the other add on, or basically without add on, how I understand. Sure, bookmarklet should be the most universal solution working with pretty much all browsers. Best, Ihor Jean Louis <bugs@gnu.support> writes: > * Ihor Radchenko <yanta...@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. > > Yes, thank you for pointers. > > What I would like to do is to execute external program from browser as > such program will give me more than just capturing the TITLE and URL, > data that browser has, because I need external data that browser does > not have such as annotation or a note to the bookmark. > > So I could maybe use org-capture as you said. Then I could annotate > the bookmark in description and later by one click move everything > into Hyperscope database. > >> Also, you can capture webpage as a heading using org-capture + >> org-protocol: >> 1. https://addons.mozilla.org/en-US/firefox/addon/org-capture > > I think this one could work. But it does not work on iceweasel-uxp > from fully free OS Hyperbola GNU/Linux-libre. It could be installed on > the GNU IceCat. Firefox I am not using directly within the OS due to > its problematic tradeark issues and I like GNU IceCat as it has by > default some good features like quickly disabling Javascript and > taking care of non-free Software. > > I have tried, now I am getting error: > > Greedy org-protocol handler. Killing client. > > eeeee. > > After more setups insights, I could make it work. It works quite nice! > > Now I hope that I can use org-capture to invoke other functions from > external programs. > >> 2. >> https://chrome.google.com/webstore/detail/org-capture/kkkjlfejijcjgjllecmnejhogpbcigdc > > Chrome is no go here as I do not like getting tracked by Google. But > it is similar extension > >> 3. https://seds.nl/notes/orgmode-firefox-bookmark/ > > That is yet another tip how to capture, and I can use it probably with > the other add on, or basically without add on, how I understand. > >> 4. https://github.com/yantar92/org-capture-ref (shameless plug) > > Even more enhancements there. That is great. > >> Or you can write a custom org-capture handler that invokes >> org-store-link > > I would like to use org-capture to get data while invoking some > Elisp, that I can capture into database. Do you think that is > possible straight somehow? > > That capture does not go into Org but that I can redirect it to other > elisp function?