Navigate sibling page - <<previous next>>

problem

Andy raises the issue that It’s hard to navigate to unlinked “neighbors” in associative note systems

proposal

This would IMO often be addressable with buttons to go to sibling notes.
<<previous and next>> button at the bottom of a page.

  • easy swap between sibling notes
  • show related notes, similar to backlinks

ideally it auto generates the next & prev buttons, based on folder and alphabetical.

  • let user choose the sorting algorithm. alphabetical up, down, most recent, …
  • option to define a link in the frontmatter.
    if there is a nav-next or nav-previous defined, we use that instead of the automatic page. Giving the user easy options to modify the linking behaviour manually.

This is inspirated by the existing footer navigation in mkdocs, see navigation docs.

sketch of how it could look (see previous and next at bottom)

The need

several threads on this forum show the need for this feature:

  • popular thread requesting this
  • in-depth discussion on a previous and next button in the daily notes plugin, and workarounds with templates.
  • short thread, repeating the same
  • thread requesting hotkeys for this feature

Alternatives

The quick explorer plugin already adds hotkeys for this feature. But no visual preview. It forgets about people with a mouse.

You could make templates, but would have to keep them up to date. / It’s clunky

5 Likes

Did you ask author of the “Quick Explorer” plugin (@pjeby) to implement this as option?
IMHO, it would be easiest way to do this as he has most of the relevant code already written and used by the hotkeys.

great suggestion, i’ve posted a feature request

the author from quick explorer got back to me and provided a solution.

install these 2 plugins

  • quick explorer - for previous & next command
  • commander - for adding command buttons
    then when hovering on the top bar, you can add a custom button for next & previous.
    image
2 Likes

Thanks for the guide. It works on PC. But do you have any idea, how to realize this on Mobile? ( quick-explorer doesn’t support Mobile)