From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id CJAZCAREu2QY8AAASxT56A (envelope-from ) for ; Sat, 22 Jul 2023 04:50:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kCYZCAREu2QcJgEA9RJhRA (envelope-from ) for ; Sat, 22 Jul 2023 04:50:44 +0200 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 D90B24826C for ; Sat, 22 Jul 2023 04:50:43 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1689994244; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=hoqdDzZJHF9jUazhN54MX5R5A48wjzkGcjiQ3iGS8nI=; b=cZk6PJOFtGWoLOCRunc4AMzZkDAc/JGN/+GqjsZKAWeez/un6GSgHtRFuD4cXDTdX9IBnc rmex4X9pSrPuSpmjzia3B9Hqq1DMCixEPSnMIMHcc7egUoyJCLUGJfKFWoJMnNdJn8aOmW EKIM3D0+iylX2FLS4605svbi/2+3iZUYQevCmyYADv24KBCggam/+egLOmk/B6/qEnmFAh zyHqbsT2dS/aJH7HndwVskO19oTs6MhmQGf2uw9my9ICa61gh3mKx9d0rYWnHFV1f8njPB HWKS+cQcz6bDA+fMSBIMNPerRiuTJ3iq9fY4XbRVJWWrNW3npjVuKdHeEgkmjw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1689994244; a=rsa-sha256; cv=none; b=aTYhD/kCzEUUb/aorSnBj6P4/csSaBFkXVqSNVeYTSs4rRktuiYe7VYV0vq8lKpdpBUl+g +qP+EVejgtiF6fQWvyEw11bguxZawXtxw1ecN1GJKiZkj7bYuekiIrPg/YC9Z/ubiWau/t YCv+fWZ5RAzB9ULg2t6QoDcpF4bVDZeEGdhoUyiyQ9RH8xCKC+937CIQBO3E59cGRJIFrn BE502lfGEUBeIMmZ1DSAh2DELODa4Xpys4/YDW2tjDvwer8ziLwnhIJI8CoeG3IPd7b01A sQZGweUGHnvjTLSe+QMezJPRGoIlx6e3GqLyWhuksP8qMcuX/pLiBwvlSvVfcg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qN2gW-0003eB-Pi; Fri, 21 Jul 2023 22:49:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qN2gT-0003do-Qj for emacs-orgmode@gnu.org; Fri, 21 Jul 2023 22:49:29 -0400 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qN2gR-0006c5-Fn for emacs-orgmode@gnu.org; Fri, 21 Jul 2023 22:49:28 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1qN2gO-000433-2t for emacs-orgmode@gnu.org; Sat, 22 Jul 2023 04:49:24 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: Is there a better (built-in) way to insert an org link with title as description? Date: Sat, 22 Jul 2023 09:49:17 +0700 Message-ID: References: <68592813-e8d4-a9d6-cb3d-51804236413d@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Content-Language: en-US, ru-RU In-Reply-To: Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 27 X-Spam_score: 2.7 X-Spam_bar: ++ X-Spam_report: (2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-0.094, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: 1.11 X-Migadu-Queue-Id: D90B24826C X-Migadu-Spam-Score: 1.11 X-Migadu-Scanner: mx0.migadu.com X-TUID: J9usYQzFIoSX On 21/07/2023 20:04, Arthur Miller wrote: > I copy a link from a readme file or a piece of code or elsewhere and > wish to stash it away in a note but not necessary open in a browser. You know, > "todo" to come back later for it :). If a file is opened in Emacs then it sounds like a case for `org-capture' or `org-store-link'. Perhaps storing link is better compatible with `url-retrive' callback and it makes delay for `org-insert-link' due to network roundtrip less probable. When I add a link to my notes, often I mention where I noticed it. >> Anyway I suggest to split non-interactive part of the command to allow code >> reuse (for drag and drop, etc.). > > Tell me more here? Can I drag a link from one buffer into a note buffer, or how > can I use it? My idea is to handle dropping of text into Org buffers. Currently it causes opening links in eww. I think, there are better options: convert from html to Org using pandoc and insert text, `org-capture', `org-store-link'. I have not tried to implement it. Currently I have just a couple of hints in my notes: `dnd-protocol-alist' and https://github.com/abo-abo/org-download/blob/master/org-download.el as an example of code.