From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id ba3nNUrdvV9uMAAA0tVLHw (envelope-from ) for ; Wed, 25 Nov 2020 04:27:54 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id uJpOMUrdvV//agAAB5/wlQ (envelope-from ) for ; Wed, 25 Nov 2020 04:27:54 +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 468C8940363 for ; Wed, 25 Nov 2020 04:27:54 +0000 (UTC) Received: from localhost ([::1]:57860 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1khmPJ-00066V-95 for larch@yhetil.org; Tue, 24 Nov 2020 23:27:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39876) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khmLw-0003Lu-QX for emacs-orgmode@gnu.org; Tue, 24 Nov 2020 23:24:24 -0500 Received: from static.rcdrun.com ([95.85.24.50]:33253) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khmLu-0003Xu-33 for emacs-orgmode@gnu.org; Tue, 24 Nov 2020 23:24:23 -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 00000000002C1AE9.000000005FBDDC54.00002A2F; Wed, 25 Nov 2020 04:23:47 +0000 Date: Tue, 24 Nov 2020 20:41:35 +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: <169441F9-83D6-4D0F-8A23-1923B44F7C0A@health.ucsd.edu> <87eekkcwzs.fsf@localhost> <874klfcj5k.fsf@localhost> <87tutfaxgm.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: <87tutfaxgm.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: -3 X-Spam_score: -0.4 X-Spam_bar: / X-Spam_report: (-0.4 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_06_12=1.543, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no 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: N+wFKgcDvPw9 * 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. > > 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