From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id IEDFJWtt0WOptQAAbAwnHQ (envelope-from ) for ; Wed, 25 Jan 2023 18:56:59 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id EG23JWtt0WOnbgAA9RJhRA (envelope-from ) for ; Wed, 25 Jan 2023 18:56:59 +0100 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 4B44374D8 for ; Wed, 25 Jan 2023 18:56:59 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pKk0R-0003UF-PU; Wed, 25 Jan 2023 12:56:19 -0500 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 1pKk0Q-0003Tj-4f for emacs-orgmode@gnu.org; Wed, 25 Jan 2023 12:56:18 -0500 Received: from stw1.rcdrun.com ([217.170.207.13]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pKk0N-0000vF-5l for emacs-orgmode@gnu.org; Wed, 25 Jan 2023 12:56:17 -0500 Received: from localhost ([::ffff:102.81.230.130]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 000000000010B84B.0000000063D16D40.00007ABA; Wed, 25 Jan 2023 10:56:15 -0700 Date: Wed, 25 Jan 2023 19:40:31 +0300 From: Jean Louis To: Ihor Radchenko Cc: Bruno Barbier , Max Nikulin , AW , emacs-orgmode@gnu.org Subject: Should Org provide commonly used link types? Message-ID: Mail-Followup-To: Ihor Radchenko , Bruno Barbier , Max Nikulin , AW , emacs-orgmode@gnu.org References: <3218434.44csPzL39Z@linux.fritz.box> <860cca44-faa3-ce41-3606-f92b50ee00a9@gmail.com> <87a62bnf4t.fsf@localhost> <21750362.EfDdHjke4D@linux.fritz.box> <939b62c1-34ee-051e-405a-328b841d3d16@gmail.com> <63d015e3.050a0220.5bc9c.95f5@mx.google.com> <877cxan56u.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: <877cxan56u.fsf@localhost> User-Agent: Mutt/2.2.9+54 (af2080d) (2022-11-21) Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.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.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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674669419; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=zTvkMApaLrVQSEXYziz6lxSCJKSWVZzgbQo18PEn8GE=; b=c4tVrrGw3RBqAU91u1CriILFV/BmsKDnIKzzFkQvVw0GLYm89yJWKE/3F9MVyWSu4FsI7+ BRWnqY8UZd1UmPfucIvUCsd9Fo/pYafKlBWbUQNd66INrbM9fS+j+WQ46u7jq5w2KTbSr5 NgQ6GhZ6ot8eKYMHNdv+WPkgQ3hNLesh7wV6CVrwapY1/OALX5j7f2xN85gZ5+0X0c+LQe fI8nM8OVNCmvIh/dxNOZ7fNpz7VJmWx7nPNhuDz22oplwn8fCSmO7kYNlYEsXhwczDMzvS 01TLlM8bsT3xxnmVFEdfSL9gDjKuNGuMfdsMrj+4zDbseqlJ0e58ZjZARP8ubQ== 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=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674669419; a=rsa-sha256; cv=none; b=gOd0HBnjIKJug70Sy6wHWa5j9SNxo4syxw4s/AOElGMwTyx+VxsY+bzWw7+QsF0BoiXCP4 HLVRSjq0RpRbGNsz4akwLUlxeqm/YsotsVo0oeTVYNOeb+40KPwvRUqduxBNr0x4DOl4fe dH7ttVn6QJIuy1Dd4tai1Aw3+DmJx3Rl5Nc5mZV1aeG/iB3VRNvzrL4BzHyov7JjCF3T6f E23e5meD274/yqz2sTnUXdf3olSGezl7IHKHcZcQax6zzlYAZ8drX3Vap7PC/IzpWN7NFj /12Vbsux6n7Vrd82qigTRXwx/YLBYquV9Ssb2rttHXE10k74GW9IhTFLQwSDDQ== X-Migadu-Scanner: scn1.migadu.com 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=none X-Migadu-Spam-Score: 0.12 X-Spam-Score: 0.12 X-Migadu-Queue-Id: 4B44374D8 X-TUID: RCFJ2RZpOAaO * Ihor Radchenko [2023-01-25 15:56]: > What we can do is add some more known link types. Some of them will use > `browse-url' as :follow link parameter. > > However, what are the link types which are worth including into the Org > code? I am looking into the protocols supported by Firefox now. > They are: mailto, news, nntp, snwes, afp, data, disk, disks, hcp, htp, > htps, http, iehistory, ierss, ile, javascript, le, mk, moz-icon, > ms-help, ms-msdt, ps, res, search, search-ms, shell, tps, ttp, ttps, > vbscript, vnd.ms.radio, and file. It is not relevant what Firefox support or not, as it is user customizable option. > Note that mid: is not listed. User can set it. > Suggestions welcome Main suggestion would be to make interface for users to easy setup those hyperlinks. If user is supposed to adapt mind to programmer by setting this horror: (info "(org) Adding Hyperlink Types") that leads nowhere. Forget about "usability". Customize interface is much better. How about this in customize? - prefix: pdf - format %s&%s - function to run: open-pdf However, how it was programmed in Org in such demanding and boring way. No wonder people complain for simple PDF opening by page number. I am changing my mind, now I really think that it is better you hard code those hyperlinks in Org as you said, that way you will get functionality that users can still choose but need not be bothered by programming. 1. For PDF there are not many PDF viewers that support opening by page number or query, so you could hard code it all. XPDF is so far best as it supports capturing in easy manner. 2. For mpv, vlc, you can open video and audio hyperlinks at specific place. I am using `mpv' package to capture video at exact point like this: (defun hyperscope-capture-mpv-playback-position () (interactive) (cond ((mpv-live-p) (mpv-pause) (let ((time (mpv-get-playback-position)) ;; subtype? (name (rcd-ask-get "Name video position: "))) (cond (time (hyperscope-add-generic name hyperscope-mpv-played-video nil 3 nil 1 time)) (t (rcd-warning-message "Could not get time for video play")))) (mpv-pause)) (t (rcd-warning-message "mpv not running")))) which is very easy to convert to Org. Package `mpv' already supports Org type Hyperlinks. Summary for now, PDF, video, audio, plus all at exact location. What about EPUB, DJVU, MOBI? - mupdf supports opening EPUB at specific page - zathura will surely work with DJVU to open at specific page Summary: PDF, EPUB, DJVU, video, audio, plus all at exact location. I am using general "media" which can be either audio, or video, could be PDF or something else. Message-ID, should support FOLDER+Message-ID Is it possible to support Emacs bookmarks as hyperlinks? I would include that. xournalapp is software that I use, and RMS uses too I heard, it is excellent for PDF editing. It has its own format and can open up also by page number. Geo location shall be supported, as it has already many handlers in GNU/Linux, then GPX files, GeoJSON files I have playlists as hyperlink, and other 100 different examples which I do not consider immediately useful for Org. -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/