bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#44522: 28.0.50; enhancement proposal for eww to provide finely grain


From: Jean Louis
Subject: bug#44522: 28.0.50; enhancement proposal for eww to provide finely grained back links
Date: Sun, 08 Nov 2020 21:17:11 +0300

I would like to propose relatively simple function for `eww' that it
becomes possible to obtain finely grained reference to HTML link.

Reference:
https://www.dougengelbart.org/content/view/116/#7j

`w' key is already obtaining the document or link reference, which is
good in itself.

I am proposing that new function is implemented that allows to obtain
reference:

- to specific line number of HTML document on Internet

- to specific search inside of HTML document on Internet

- additionally it should include local file search to HTML document
  viewable by EWW

I am using this below function to view HTML files straight from Dired
for local files:

(defun eww-dired (&optional file prefix)
  (interactive "p")
  (let ((shr-inhibit-images t)
        (file (or (car (dired-get-marked-files)) file)))
    (if current-prefix-arg
        (setq shr-inhibit-images t))
    (eww-open-file file)))

but that does not allow going to specific line or search in HTML
document.

The function if possible, should be bookmarkable by Emacs bookmark
system. I have tried this below on eww buffer on WWW HTML file:

‘C-x r m <RET>’
     Set the bookmark for the visited file, at point.

And it did not work. It would be best if this works at least for "at
point" solution.

Best would be if user can decide:

- to link to line number in HTML (WWW or local file)

- to link to specific search by marking region and obtaining bookmark

- to link to annotated specific search by marking region, annotating
  the HTML part of the file and obtaining bookmark

-- 
Thanks,
Jean Louis
⎔ λ 🄯 𝍄 𝌡 𝌚





reply via email to

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