From: Yuchen Pei <hi@ypei.me>
To: Juri Linkov <juri@linkov.net>
Cc: 50497@debbugs.gnu.org
Subject: bug#50497: [PATCH] Adding eww-{next,previous,up,top}-path.
Date: Fri, 10 Sep 2021 16:57:58 +1000 [thread overview]
Message-ID: <87fsucyl1l.fsf@ypei.me> (raw)
In-Reply-To: <877dfp53zm.fsf@mail.linkov.net>
[-- Attachment #1: Type: text/plain, Size: 1744 bytes --]
Juri Linkov <juri@linkov.net> writes:
>> 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").
This sounds good to me, if it does not break people's workflows.
> And vice versa: if your commands don't match a number in the
> URL, then
> fall back to "n"/"p"/"u"/"t", maybe optionally.
I think the previous fallback should be sufficient, and I feel a
"mutual" fallback like this could be confusing.
--
Best,
Yuchen
PGP Key: 47F9 D050 1E11 8879 9040 4941 2126 7E93 EF86 DFD0
<https://ypei.me/assets/ypei-pubkey.txt>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 243 bytes --]
next prev parent reply other threads:[~2021-09-10 6:57 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
2021-09-10 6:57 ` Yuchen Pei [this message]
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=87fsucyl1l.fsf@ypei.me \
--to=hi@ypei.me \
--cc=50497@debbugs.gnu.org \
--cc=juri@linkov.net \
/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.