Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manual genre: navigation buttons should be a preorder traversal #231

Open
david-christiansen opened this issue Nov 22, 2024 · 0 comments
Open

Comments

@david-christiansen
Copy link
Collaborator

Today, the navigation buttons "prev" and "next" navigate the structure of the tree, going to sibling nodes. Thus, "next" means "next chapter" when looking at a chapter, or "next subsubsection" when looking at a subsubsection.

They should instead navigate via a preorder traversal of the tree, so "next" at the root opens chapter 1, "next" from there goes to chapter 1 section 1. Because there's no 1.1.1, "next" then goes to chapter 1 section 2, and then to chapter 2 if that's the last node in chapter 1. In other words, this is like turning the page of a physical book.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant