From: Juri Linkov <juri@linkov.net>
To: Yuchen Pei <hi@ypei.me>
Cc: 50497@debbugs.gnu.org
Subject: bug#50497: [PATCH] Adding eww-{next,previous,up,top}-path.
Date: Fri, 10 Sep 2021 09:43:09 +0300 [thread overview]
Message-ID: <877dfp53zm.fsf@mail.linkov.net> (raw)
In-Reply-To: <87lf45xh86.fsf@ypei.me> (Yuchen Pei's message of "Fri, 10 Sep 2021 13:05:45 +1000")
> I often find myself wanting to navigate paginated web pages
> (e.g. <https://media.libreplanet.org/videos?page=4>), or to go up or all
> the way up when visiting a web page, which is why I added these functions
> to my eww.
>
> Does this change make sense?
This reminds a very useful Firefox add-on "Go Up" that lets you go up
a level to the parent directory on the current website by pressing
Alt+UpArrow, and some other add-ons I don't remember their names.
> + (define-key map "N" 'eww-next-path)
> + (define-key map "P" 'eww-previous-path)
> + (define-key map "U" 'eww-up-path)
> + (define-key map "T" 'eww-top-path)
Would it be possible to combine this feature with the existing
(define-key map "n" 'eww-next-url)
(define-key map "p" 'eww-previous-url)
(define-key map "u" 'eww-up-url)
(define-key map "t" 'eww-top-url)
that rely on special attributes. I mean to install your new commands.
Then later add fallbacks to both sets of commands: if there is
no special attribute, then "n"/"p"/"u"/"t" could try to deduce the
page from URL by calling your new commands, instead of signaling
an error as they do currently by (user-error "No `next' on this page").
And vice versa: if your commands don't match a number in the URL, then
fall back to "n"/"p"/"u"/"t", maybe optionally.
next prev parent reply other threads:[~2021-09-10 6:43 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-10 3:05 bug#50497: [PATCH] Adding eww-{next,previous,up,top}-path Yuchen Pei
2021-09-10 6:43 ` Juri Linkov [this message]
2021-09-10 6:57 ` Yuchen Pei
2021-09-10 11:28 ` Lars Ingebrigtsen
2021-09-10 12:50 ` Yuchen Pei
2021-09-11 12:22 ` Lars Ingebrigtsen
2021-11-06 0:29 ` Lars Ingebrigtsen
2021-09-10 16:10 ` Juri Linkov
2021-09-11 12:18 ` Lars Ingebrigtsen
2021-09-11 19:01 ` Juri Linkov
2021-09-13 8:03 ` Lars Ingebrigtsen
2021-09-13 8:25 ` Juri Linkov
2021-09-13 17:51 ` Juri Linkov
2021-09-14 11:04 ` Lars Ingebrigtsen
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877dfp53zm.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=50497@debbugs.gnu.org \
--cc=hi@ypei.me \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.