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 4PLBC+D+vV9KEgAA0tVLHw (envelope-from ) for ; Wed, 25 Nov 2020 06:51:12 +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 yPObB+D+vV/TdQAA1q6Kng (envelope-from ) for ; Wed, 25 Nov 2020 06:51:12 +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 9FBC99400D3 for ; Wed, 25 Nov 2020 06:51:11 +0000 (UTC) Received: from localhost ([::1]:42412 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1khodw-0007ye-TL for larch@yhetil.org; Wed, 25 Nov 2020 01:51:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39570) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khodB-0007yR-Ey for emacs-orgmode@gnu.org; Wed, 25 Nov 2020 01:50:21 -0500 Received: from static.rcdrun.com ([95.85.24.50]:56027) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khod9-0006FE-E7 for emacs-orgmode@gnu.org; Wed, 25 Nov 2020 01:50:21 -0500 Received: from localhost ([::ffff:41.202.241.56]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by static.rcdrun.com with ESMTPSA id 00000000002C1AE2.000000005FBDFEA7.00004272; Wed, 25 Nov 2020 06:50:15 +0000 Date: Wed, 25 Nov 2020 08:36:11 +0300 From: Jean Louis To: Ihor Radchenko Subject: Re: Bring up a screen giving option to open a series of orgmode files Message-ID: References: <87eekkcwzs.fsf@localhost> <874klfcj5k.fsf@localhost> <87tutfaxgm.fsf@localhost> <87r1oiays5.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: <87r1oiays5.fsf@localhost> User-Agent: Mutt/2.0 (3d08634) (2020-11-07) Received-SPF: pass client-ip=95.85.24.50; envelope-from=bugs@gnu.support; helo=static.rcdrun.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-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=none; dmarc=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.51 X-TUID: I4x5DKyTkRzT * Ihor Radchenko [2020-11-25 06:43]: > > 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. Thank you Ihor. I know this all could be in the manual, and I read manuals all the time but never read it fully. Without these references I would not easily discover those useful functions. When there is reference such as URL, I am actually following it and researching the subject. Few minutes research here and then are sparing me time on repetitive tasks in futures. > > 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. While I did use qutebrowser many times, did not know about the scripts. Please state some examples how you call those external scripts. I am interested if: - qutebrowser, once HTML is loaded or any file, can transmit this file in a script to external program to parse it, collect meta data and index it somewhere - in particular I would be interested if qutebrowser could be used to convert the HTML on the fly to OPML by using external script so to get chunks finely grained such as paragraphs, headings of course are included making HTML better outlined and structured for further import into both Org files and yet private Hyperscope database. You think that could work? Any examples how you use qutebrowser with external scripts?