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 ms0.migadu.com with LMTPS id iQmnJdpXkGFPvQAAgWs5BA (envelope-from ) for ; Sun, 14 Nov 2021 01:27:06 +0100 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 CO6dINpXkGHfCgAAB5/wlQ (envelope-from ) for ; Sun, 14 Nov 2021 00:27: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 321C12DEC4 for ; Sun, 14 Nov 2021 01:27:06 +0100 (CET) Received: from localhost ([::1]:48654 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mm3MO-0006ce-Nz for larch@yhetil.org; Sat, 13 Nov 2021 19:27:04 -0500 Received: from eggs.gnu.org ([209.51.188.92]:37108) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mm3Ly-0006cV-EF for emacs-orgmode@gnu.org; Sat, 13 Nov 2021 19:26:38 -0500 Received: from out1.migadu.com ([91.121.223.63]:16568) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mm3Lu-00038y-Us for emacs-orgmode@gnu.org; Sat, 13 Nov 2021 19:26:38 -0500 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kisaragi-hiu.com; s=key1; t=1636849591; h=from:from: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; bh=DCOql3WdELQgezc583aSA6yoS5zexNWpGhm8cGV2dNI=; b=e6AFvax9KjpEm8DxIYjBsNtEOlLbnoVr31T+qJ6wK6TAALH9YUJS6qCWGs/A8W+40d6WN1 AWEHsTLgm+FkqKCLXA2/AuWO2+DCD2+ZZFpSQBcSU9vPtTZjkD1rDM3L2dlej8WnhpKHld LfsB5zA4FUZsEGqP4x899/dANLPdY/vC48dj4HJVeQRhZURNrRsmIRMxWJ44u0dUKNPW/L l7AX1svomUTte+DIWjmnsk68qSvHhRS/4+up0w0UzaxXWO0zfh7tapqzehqz9wX7IRRkhr AxTHh30TX+I0/G/erfyJZhI04no83K6yyw54y/kYKwTRkLvGTh/yZEOz8Ef/kQ== Date: Sun, 14 Nov 2021 00:26:31 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: mail@kisaragi-hiu.com Message-ID: <3f15f635e18453b369ca81e5105be114@kisaragi-hiu.com> Subject: [Feature Request] Support org-link-abbrev-alist for clickable image links To: emacs-orgmode@gnu.org Received-SPF: pass client-ip=91.121.223.63; envelope-from=mail@kisaragi-hiu.com; helo=out1.migadu.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, 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.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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1636849626; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=DCOql3WdELQgezc583aSA6yoS5zexNWpGhm8cGV2dNI=; b=Hz0EVqfVwt3bvGG5xCnkrgfEdB2NxESjzWVW09pCbjGzsfC7/5EIlYF8Ljc4x9hd1V+FRG uw38+Xr9/dde+s1Hq9k/aVjPE6bghWvWakWmmLK893LQs+qF5pK4Sd0lSGik+gsMHiRz5g yvjw33wxBKkoThjqq3ogTK70WKVMybAuckDlEj0JnWy7tgDrzaUCzzWwfQUPhP25yJLZPA twcCGRU8jkdlf2K+tJMVa7Xy1i58iyrSUSZX7ztVkdyvB6yX2gfMI/VO7a3QRTQHmSX/ln uoaZdGRUrf7Dq2w8cD8kThu31kdVLe2GmNJE4FMYnO85/dCmMAKnpnBUUeR7Tw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1636849626; a=rsa-sha256; cv=none; b=Dz6+bV/IRNujvX8AstOXUtGpA1A6Xb/uIomKVW0GrcdaqE8pzQWQDmB+9rnJuVQDvRpbQj ZLmUtusnTKJo+f2klVAadvlwwosj5wPgdQyj5Og96Vp4QkHEpqxMYW11SdsjX2Lc2Mjyjm Jz8fuFT4VA6OWSLwWj7M4n+5qT3evupeRJwtteLi7RxPyDQdIaIc9derwmKSAeH1PbgzFb v3lfvgRb+yw7yJ5YnoYL5Ck6mvvN7FgTJpCJY46kDTr+yHvUeeyBWictWz8UxhHsq/tPAC VUs8WqhvgstWdagVXH3KQxPF9j3OEI75/2qbamisvOWs5VhokvpRgA9c6dOVzQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=kisaragi-hiu.com header.s=key1 header.b=e6AFvax9; dmarc=pass (policy=reject) header.from=kisaragi-hiu.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-Migadu-Spam-Score: -4.14 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=kisaragi-hiu.com header.s=key1 header.b=e6AFvax9; dmarc=pass (policy=reject) header.from=kisaragi-hiu.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-Migadu-Queue-Id: 321C12DEC4 X-Spam-Score: -4.14 X-Migadu-Scanner: scn1.migadu.com X-TUID: HNnkmZpIANL1 Org mode supports clickable images in the following form:=0A=0A[[https://= orgmode.org][file:/tmp/org-mode-logo.png]]=0A=0AThis is also displayed by= =3Dorg-display-inline-images=3D as the second case:=0A=0A#+begin_quote= =0AAn inline image is a link which follows either of these=0Aconventions:= =0A=0A 1. Its path is a file with an extension matching return value=0A = from image-file-name-regexp and it has no contents.=0A=0A 2. Its des= cription consists in a single link of the previous=0A type. In this = case, that link must be a well-formed plain=0A or angle link, i.e., i= t must have an explicit "file" type.=0A#+end_quote=0A=0AHowever, this doc= string isn't quite true.=0A=0A- The image link is parsed as a plain link,= and thus if it contains spaces, it must be wrapped in angle brackets. Th= is should be mentioned in the docstring.=0A- More crucially, it does not = support =3Dorg-link-abbrev-alist=3D, which works in case 1.=0A=0AYes: [[f= ile:/tmp/org-mode-logo.png]]=0AYes: [[my-abbrev:org-mode-logo.png]]=0AYes= : [[https://example.com][file:/tmp/org-mode-logo.png]]=0AYes: [[https://e= xample.com][]]=0ANo: [[https://example.com][f= ile:/tmp/with a space.png]] (docstring should mention this and suggest an= gle links)=0ANo: [[https://example.com][my-abbrev:org-mode-logo.png]] (th= is should work)