emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Should Org provide commonly used link types?


From: Jean Louis
Subject: Should Org provide commonly used link types?
Date: Wed, 25 Jan 2023 19:40:31 +0300
User-agent: Mutt/2.2.9+54 (af2080d) (2022-11-21)

* Ihor Radchenko <yantar92@posteo.net> [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/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]