nyxt icon indicating copy to clipboard operation
nyxt copied to clipboard

Jump-to-heading should place index at nearest heading

Open wongandj opened this issue 1 year ago • 3 comments

Purpose of request: To improve the user experience when using jump-to-heading.

Describe your proposed change: Make the list interface that appears with jump-to-heading start with the index/highlight over the entry for the nearest heading.

Why do you believe this to be an improvement? Jump-to-heading is already an incredibly useful feature. However, a limitation of it is that its interface always starts on the first heading of the page. Since this feature is often used on very long webpages (e.g. GNU info manuals converted to a single webpage), this is incredibly inconvenient as it causes the user to lose their place on the page. If the page includes several identical headers, this makes the feature become useless.

Additional context/User story: I often have trouble with this when browsing a deeply-nested or long page.

Screenshots/Mock ups: N/A


Pre-Build Checklist:

  • [ ] Discussion has occurred.
  • [ ] One or more developers have signed off on this change.
  • [ ] One or more user researchers have signed off on this change.

wongandj avatar Sep 19 '24 15:09 wongandj

@brosasaki sounds like a good suggestion to me.

From a cursory look to the codebase, it should be easy to implement. Any takers?

aadcg avatar Sep 20 '24 18:09 aadcg

@aadcg when you say easy, how easy do you mean? :)

I keep lurking around the issues the last few days, wondering if I could (finally) have a go at something. My skills are less than mediocre, but my enthusiasm levels are high!

What reading could I do to get this one started, where should I poke around? What's the best channel for discussion, here, IRC, elsewhere?

Thanks very much!

jamiebill avatar Dec 14 '24 04:12 jamiebill

@jamiebill if it is your first time contributing to a project, then this is a rather complex one.

It's OK to discuss here. I'm usually not available on the IRC channel.

Ultimately, motivation is the most important thing to achieve any goal!

aadcg avatar Dec 16 '24 13:12 aadcg