emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jean Louis <bugs@gnu.support>
To: Alan Schmitt <alan.schmitt@polytechnique.org>
Cc: "Berry, Charles" <ccberry@health.ucsd.edu>,
	Gerardo Moro <gerardomoro37@gmail.com>,
	emacs-orgmode <emacs-orgmode@gnu.org>,
	Ihor Radchenko <yantar92@gmail.com>
Subject: Re: Bring up a screen giving option to open a series of orgmode files
Date: Fri, 27 Nov 2020 15:04:03 +0300	[thread overview]
Message-ID: <X8DrM07sW7sleQf7@protected.rcdrun.com> (raw)
In-Reply-To: <871rgfcj1h.fsf@m4x.org>

Hello Allan,

Thank you for references, I am collecting it.

* Alan Schmitt <alan.schmitt@polytechnique.org> [2020-11-27 11:15]:
> For that I recommend pdf-tools (great pdf viewer for emacs, supporting
> annotations and synctex, https://github.com/politza/pdf-tools ) and
> org-pdftools (provides org links for it,

That is nice and I have take note for later inspection. The current
doc-view functions are already pretty nice and allow to access PDF
files by its page number and I also think searching words would
work. Maybe I already made it and forgot it.

For the built-in doc-view by using function (doc-view-current-page)
one can obtain the page number and that allows for creation of a
function to create quickly Org link to specific PDF number to be
viewed with the built-in doc-view:

(defun org-capture-doc-view-page-by-number ()
  (interactive)
  (let* ((page (doc-view-current-page))
	 (file (buffer-file-name))
	 (name (read-from-minibuffer "Hyperlink name: "))
	 (hyperlink (format "[[elisp:(doc-view-open-file \"%s\" %s)][%s]]" file page name)))
    (kill-new hyperlink)))

Function allows to search by page number, query and match:
`(doc-view-open-file FILE &optional PAGE-NUMBER QUERY MATCH)'

When making such hyperlinks for Org, I rather like using generic
functions to open such files, such as:

Instead of:

[[elisp:(doc-view-open-file
"/home/data1/protected/Downloads/Download.PDF" 1)][Transaction
History]]

[[elisp:(generic-pdf-open-file "/home/data1/protected/Downloads/Download.PDF" 1)][Transaction History]]

Then the generic function could be replaced by user's
customization. If somebody would like to open PDF file by pdf-tools,
evince, or doc-view, then welcome, customize and go!

More than that I like using even more generic links that do not hard
code the file path as such are indexed in the database, then it would
look like this:

Instead of:

[[elisp:(generic-pdf-open-file "/home/data1/protected/Downloads/Download.PDF" 1)][Transaction History]]

[[elisp:(hyperscope 123)][Transaction History]]

As that brings the possibility that I change the file path or rename
the file but the unique ID 123 never changes, and again may decide how
to open file, by which viewer. In addition it could decide:

- to open file and show annotations

- while opening file to play some music to read with music together

- or I could add any other function to the very generic high level
  hyperlink

I would prefer if authors of pdf-tools would contribute their generic
functions if useful to doc-view. It is nice to have such external
tools, even nicer is when core Emacs get enhanced.

> https://github.com/fuxialexander/org-pdftools). There is also the
> org-noter option (https://github.com/weirdNox/org-noter) to link
> external annotations to pdfs.

Annotations are long time envisioned feature that is very poorly
implemented in any hyperdocument systems. Hypothes.is implement it for
WWW but WWW could be better designed to allow easier
annotations. Browsers are missing it all over.

Hypothes.is Annotate the web, with anyone, anywhere.
https://web.hypothes.is/

org-noter is great package and peculiar to me I would keep notes
related to anything and make it built-in feature in Emacs. Files can
be annotated, images can be annotated, videos, email messages.

It referenced to interleave, I have not used it but I see it would
show PDF on one side and Org file on the other side, Then user can
quickly annotate a page and press key and note is stored in Org, that
is such good example of what I call integration or combining into one
whole. Such functions could become part of Org mode as they are
useful.

Personally I am using similar divided window functionality where I can
quickly insert hyperlinks from other buffer and capture hyperlinks
from other buffers straight into the database.

How I see that org-noter does it from the video is that when user
opens heading the page will automatically appear on the other
window. That is useful feature.

I just see it is so much hard coding and it reinforced demand for
structured meta data. Packages interleave and org-note are good
examples where authors try to hard code relations.

> > We have browsers that each of them think for themselves. Each can
> > store bookmarks but hardly provide such to external programs.
> 
> For that org-protocol was mentioned. There is eww as well to browse
> within emacs (and thus have links).

Browsers vary in their implementations, if they allow Javascript this
may be possible. Without Javascript it requires different
hacks. Generally there is no adopted standard on annotations. Mosaic
browser had general public annotations as a built-in feature. Netscape
did not follow with it and Firefox today still does not have proper
annotations. It has bookmark annotation. But it does not have
something like page ID, match, query or paragraph annotation, or
heading annotation. Then every browser does what they want. We would
have more useful computing would developers agree on common useful
features. 

> > File managers do not provide `file-manager-store-link' but they should
> > as it would be very useful to have programs integrate with each other
> > that hyperdocument systems can be built.
> 
> dired is a nice file manager. I agree having something at the level of
> the OS would be great, but emacs is a pretty good OS ;)

Yes. I use Dired all the time. But I use files in groups and group
members cannot all easily do what is required. Files are managed by
different file managers.

If there would be central database on computer that is integrated or
supported by various file managers. As long as file manager support
options such as "Open with" or "Send to" and those are customizable
then integration becomes possible. 


  reply	other threads:[~2020-11-27 12:06 UTC|newest]

Thread overview: 87+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-22 10:01 Gerardo Moro
2020-11-22 10:09 ` Jean Louis
2020-11-22 17:35   ` Berry, Charles via General discussions about Org-mode.
2020-11-22 18:33     ` Jean Louis
2020-11-22 19:03     ` Gerardo Moro
2020-11-22 19:15       ` Jean Louis
2020-11-23  3:59         ` Gerardo Moro
2020-11-23  5:21           ` Jean Louis
2020-11-23  8:12             ` Ihor Radchenko
2020-11-23  8:40               ` Gerardo Moro
2020-11-23  9:11                 ` Ihor Radchenko
2020-11-23  9:14                   ` Gerardo Moro
2020-11-23  9:14               ` Jean Louis
2020-11-24  4:07                 ` Gerardo Moro
2020-11-24  7:26                   ` Ihor Radchenko
2020-11-24  7:23                 ` Ihor Radchenko
2020-11-24  9:28                   ` Gerardo Moro
2020-11-24  9:57                     ` Ihor Radchenko
2020-11-24 16:26                       ` Jean Louis
2020-11-25  3:41                         ` Ihor Radchenko
2020-11-25  5:36                           ` Jean Louis
2020-11-25  7:15                             ` Ihor Radchenko
2020-11-25 11:20                               ` Browser org-capture bookmarklet Jean Louis
2020-11-25 12:51                                 ` Ihor Radchenko
2020-11-25 14:12                                   ` Jean Louis
2020-11-25 14:50                                   ` Jean Louis
2020-12-02  9:07                               ` Bring up a screen giving option to open a series of orgmode files Jean Louis
2020-12-02  9:53                                 ` Ihor Radchenko
2020-12-02 10:19                                   ` Jean Louis
2020-12-02  9:24                               ` Jean Louis
2020-12-02  9:56                                 ` Ihor Radchenko
2020-12-02 10:14                                   ` Jean Louis
2020-11-24 17:41                       ` Jean Louis
2020-12-02 10:17                       ` Maxim Nikulin
2020-11-27  2:40                   ` Jean Louis
2020-11-27  8:15                     ` Alan Schmitt
2020-11-27 12:04                       ` Jean Louis [this message]
2020-11-28 16:12                         ` Maxim Nikulin
2020-11-28 18:10                           ` Jean Louis
2020-11-28 15:51                     ` Maxim Nikulin
2020-11-28 17:59                       ` Jean Louis
2020-11-30  9:35                         ` Ihor Radchenko
2020-11-30 10:45                           ` Jean Louis
2020-12-01  2:38                             ` Ihor Radchenko
2020-12-01 10:30                               ` Jean Louis
2020-11-30 17:08                         ` Maxim Nikulin
2020-11-30 18:33                           ` Jean Louis
2020-12-02 16:41                             ` Maxim Nikulin
2020-12-02 17:24                               ` Jean Louis
2020-12-09 13:00                               ` Jean Louis
2020-12-09 15:03                                 ` Maxim Nikulin
2020-12-09 16:32                                   ` Jean Louis
2020-12-09 16:49                                     ` Maxim Nikulin
2020-12-10  0:04                                     ` Ihor Radchenko
2020-12-11  6:54                                       ` Jean Louis
2020-12-11 14:40                                         ` Maxim Nikulin
2020-12-11 15:22                                           ` Ihor Radchenko
2020-12-12  3:22                                             ` Jean Louis
2020-12-13  0:42                                               ` Ihor Radchenko
2020-12-13 15:00                                                 ` Jean Louis
2020-12-14 12:58                                                   ` Ihor Radchenko
2020-12-14 19:08                                                     ` Jean Louis
2020-12-14 22:27                                                       ` TRS-80
2020-12-14 22:33                                                         ` Jean Louis
2020-12-15  4:42                                                         ` Ihor Radchenko
2020-12-15  5:00                                                           ` Jean Louis
2020-12-16  2:59                                                             ` Ihor Radchenko
2020-12-16  4:05                                                               ` Tom Gillespie
2020-12-18 12:35                                                               ` Jean Louis
2020-12-16  1:48                                                           ` TRS-80
2020-12-16 12:40                                                           ` Maxim Nikulin
2020-12-12  2:49                                           ` Jean Louis
2020-12-13  0:48                                             ` Ihor Radchenko
2020-12-13 15:13                                               ` Jean Louis
2020-12-13 18:02                                                 ` Christopher Dimech
2020-12-13 20:31                                                   ` Jean Louis
2020-12-14  0:34                                                 ` Ihor Radchenko
2020-12-14  0:34                                                   ` Jean Louis
2020-12-14  0:35                                                 ` Ihor Radchenko
     [not found]                     ` <874kl7172r.fsf@localhost>
2020-11-30 10:51                       ` Jean Louis
2020-11-22 21:23       ` Berry, Charles via General discussions about Org-mode.
2020-11-23  9:52 ` Diego Zamboni
2020-11-23 21:04   ` Jean Louis
2020-11-24  9:53 ` John Sturdy
2020-11-24 10:04   ` Detlef Steuer
2020-11-24 13:44     ` Jean Louis
2020-11-24 14:38   ` Jean Louis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=X8DrM07sW7sleQf7@protected.rcdrun.com \
    --to=bugs@gnu.support \
    --cc=alan.schmitt@polytechnique.org \
    --cc=ccberry@health.ucsd.edu \
    --cc=emacs-orgmode@gnu.org \
    --cc=gerardomoro37@gmail.com \
    --cc=yantar92@gmail.com \
    --subject='Re: Bring up a screen giving option to open a series of orgmode files' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).