From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id QOwPHoE5+V68MgAA0tVLHw (envelope-from ) for ; Mon, 29 Jun 2020 00:44:49 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 6FznGYE5+V7rZgAAbx9fmQ (envelope-from ) for ; Mon, 29 Jun 2020 00:44:49 +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 BA01194053D for ; Mon, 29 Jun 2020 00:44:48 +0000 (UTC) Received: from localhost ([::1]:33020 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jphug-0003JI-1B for larch@yhetil.org; Sun, 28 Jun 2020 20:44:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59476) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jphuK-0003J4-TH for emacs-orgmode@gnu.org; Sun, 28 Jun 2020 20:44:24 -0400 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]:39003) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jphuJ-0006Yz-0g for emacs-orgmode@gnu.org; Sun, 28 Jun 2020 20:44:24 -0400 Received: by mail-pl1-x634.google.com with SMTP id s14so6413382plq.6 for ; Sun, 28 Jun 2020 17:44:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:subject:in-reply-to:message-id:date :mime-version; bh=etI98hcdU7A3aepPQll+28Y0bnhMO025CUhah7dqqq4=; b=RYcPrJMMzvKJQ/kAJnJfnMuHLbNXW0LU1C6OMWCbwWx0VNjgMnxyU8mURJ404fSbhe aXxue4q1jguyO3VW4DmnjyN69JgmWVctlWPE870cNGcfYT1hoppBIa2Uy7hg1yuYoKo6 gHsP1ojLo3LkcnPew4FhxdHp8WAHOyFaXPU4HGJzviqYXA543mYxCfR6jT4r0htekwbc oe89buef/AaFnmkxnAajRUGfoXg//MzdAPjCTwwGNXTWxG7a1rod3RYJNtk3nSJk+Qwa 7C3fHfImP5r97puN6qJOF2vMxsXQF7rbx+TjOGdLxjjsaKNGRBVqrHZ0zND7/DJgp66X qQnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:subject :in-reply-to:message-id:date:mime-version; bh=etI98hcdU7A3aepPQll+28Y0bnhMO025CUhah7dqqq4=; b=P3eCIGYRoiLMwhch0jClAk0N0bsgmdkqGFxF2hM/K3BCMqSgQdazVpI3W5Xwo19PDx dlf8oqDYI0JKEKO7LnmI8J06DWiiJ91hhe/e/fpFAz3gaDTINjfW1BpVKtguwo95KVX1 nQ0dXBdPWFVSDhqHvHJJPVf5MI8ypEvu1SGDbfX5czoM8RGp0f1j+9JJone3ON9DmWU7 AhTQwPEardUl0nb4jwUezqHWv8hqwb02gcLNFA/eBQOMolhSRnzVae2tmEfhMMBIypgg u+EV+pbbS/FbNES0lV3xyl0M6bON/lItrL2BoUtxsVFklSTdn9icAcMV3HExOXt2HJ0b vjcA== X-Gm-Message-State: AOAM5306XhshtqoFc+uOr9DRB7kLkqEBTJwGIUdOpW4Fw7EDdl1h/o1S 9iaZL9ptbrS5ldvhF3rls6dAi4H9Fk4= X-Google-Smtp-Source: ABdhPJwi01NQlXiHmbv4rdMpJn3/nHNw9ZpUX9Ui1obM5XIokJToxuSMcvl1KNr3D7MUwEi8CHxpPw== X-Received: by 2002:a17:902:d68f:: with SMTP id v15mr11430246ply.109.1593391460461; Sun, 28 Jun 2020 17:44:20 -0700 (PDT) Received: from tim-desktop (203-173-20-43.dyn.iinet.net.au. [203.173.20.43]) by smtp.gmail.com with ESMTPSA id q92sm17944541pjh.12.2020.06.28.17.44.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jun 2020 17:44:20 -0700 (PDT) References: User-agent: mu4e 1.5.3; emacs 27.0.91 From: Tim Cross To: emacs-orgmode@gnu.org Subject: Re: Smart processing of http(s) links In-reply-to: Message-ID: <87a70mk8f4.fsf@gmail.com> Date: Mon, 29 Jun 2020 10:44:15 +1000 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::634; envelope-from=theophilusx@gmail.com; helo=mail-pl1-x634.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=RYcPrJMM; dmarc=pass (policy=none) header.from=gmail.com; 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: -1.71 X-TUID: NIG0h0j30QvF Ag Ibragimov writes: > I want to make something like this: > > Whenever I I use org-insert-link and it turns out to be a URI that starts with "https://github.com" I would like it to be processed differently than any other link, one example - if it is a PR or a Github Issue, I'd like it to fetch summary(title) of it and create a link that looks like this: > > [[https://github.com/user/repo/issues/3899][This issue needs to be fixed #3899]] > > Do we have any "built-in" mechanism for doing something like this? Can someone suggest how I can make it. Thank you! I suspect you could do something with browse-url. The issue I see here is why you would want the contents fetched whenever you insert a link or where this summary(title). I guess I don't really understand what exactly is your use case here - everything I can think of seems more complicated and requiring more maintenance than just typing the appropriate description when you insert the link. -- Tim Cross