From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id zXJgD8rSvV8XbwAA0tVLHw (envelope-from ) for ; Wed, 25 Nov 2020 03:43:06 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id UK4AC8rSvV8pcAAA1q6Kng (envelope-from ) for ; Wed, 25 Nov 2020 03:43:06 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 441AD9404CA for ; Wed, 25 Nov 2020 03:43:05 +0000 (UTC) Received: from localhost ([::1]:39900 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1khlhu-0000su-0v for larch@yhetil.org; Tue, 24 Nov 2020 22:43:02 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58384) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khlhY-0000sn-2y for emacs-orgmode@gnu.org; Tue, 24 Nov 2020 22:42:40 -0500 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]:44469) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1khlhW-00051f-6W for emacs-orgmode@gnu.org; Tue, 24 Nov 2020 22:42:39 -0500 Received: by mail-pf1-x435.google.com with SMTP id y7so1027578pfq.11 for ; Tue, 24 Nov 2020 19:42:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=fM7SiDb35DzRLRFnuNWLfgpUnBVVn90VN9UsYU4gS1s=; b=jDYtfSEapLp0+5IXAycdIL2BTzzPTe7X3/apQnM2ikjkgNzxRhYudOXqZSFm2XQG39 O9sgI1guSB4HSNnSCOfgi6jWLyGEDhzML7sjof1fXf2pdFMr20c7NgZJXIQgFRWHjI+v p1fwrUClL+ViTuUeeYW/ZQg7EkLN4ULGUGC9rSYX3XhIJlGi7ixlSur80eZpXrp7g/28 8dc/LWdt508zRR533evPTbU3bd58k+bq/nHlmDUpoyjgCLralRUs4f+EutZAfz461Emc 3bTiah8UHXeI6NVRRe0vmny7tWOTQwIob1yQesB+iIXXhND96XWHNSONyrTj5WdXtqUF 5l6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=fM7SiDb35DzRLRFnuNWLfgpUnBVVn90VN9UsYU4gS1s=; b=gSIkT9edIXR44V0KfICbvKDphuPRhCMnQ3CkdnVeUqBG9gD+kuPmIz3+SFxzs0UUNU 0iOG4PxgjU/VPaFT3UevxzmvxWGHtriCwUelMrqf2tpbRpjtCZdaoaDScoXhGAnssSBA toFeGRsvG3I4WIry11i2lYG+gX8gQkr5WqCQO+D7kfoekKpz08Bg756zJEtI6Ci+1N3W MSRdUZENvTBad/Md7+HbCdMT42nnALoZ4XPS3twaIfursW4ygPHcXv8jlmCZrye8NGow FJYjM65OBf4fC3/2Pl/c/Qu7qpPtB2ZJ0GR/+9neuduqQ6F6CdBz/sEM5Are1AF+zu8y EYhQ== X-Gm-Message-State: AOAM531u2FUEPBIsVI+F81FNDLNR2uVLmX91Y9Y1/nxmTTGMYK385Csm erco9CXfG3paspeWKi/2WR8= X-Google-Smtp-Source: ABdhPJw8nglAyuh1GvA4GIc32A8rCTkG0XKj6wdif3FRLCasNjbYwhISSlIwRYjuJcGG9fzhQIh0kw== X-Received: by 2002:a65:684d:: with SMTP id q13mr1437723pgt.372.1606275756525; Tue, 24 Nov 2020 19:42:36 -0800 (PST) Received: from localhost ([23.27.206.160]) by smtp.gmail.com with ESMTPSA id f17sm426160pfk.70.2020.11.24.19.42.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2020 19:42:35 -0800 (PST) From: Ihor Radchenko To: Jean Louis Subject: Re: Bring up a screen giving option to open a series of orgmode files In-Reply-To: References: <169441F9-83D6-4D0F-8A23-1923B44F7C0A@health.ucsd.edu> <87eekkcwzs.fsf@localhost> <874klfcj5k.fsf@localhost> <87tutfaxgm.fsf@localhost> Date: Wed, 25 Nov 2020 11:41:30 +0800 Message-ID: <87r1oiays5.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::435; envelope-from=yantar92@gmail.com; helo=mail-pf1-x435.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Berry, Charles" , Gerardo Moro , emacs-orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=gmail.com header.s=20161025 header.b=jDYtfSEa; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: 0.59 X-TUID: YRexE/1hxnlI > 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 writes: > * Ihor Radchenko [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?