Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Display each section in a buffer #11

Closed
xiongtx opened this issue Sep 7, 2017 · 1 comment
Closed

Display each section in a buffer #11

xiongtx opened this issue Sep 7, 2017 · 1 comment

Comments

@xiongtx
Copy link
Contributor

xiongtx commented Sep 7, 2017

Expected Behavior

Each section is displayed in a buffer, and the user can advance by section in addition to by chapter.

This would be similar to how Info treats nodes.

Actual Behavior

Only chapters can be displayed in a buffer.

@wasamasa
Copy link
Owner

wasamasa commented Sep 7, 2017

The problem with this is that sections aren't a thing in the first place. Just because the TOC links to parts of the document doesn't mean it comes sliced into sections. For this to work you'd need to do that kind of splitting yourself, change the internal representation so that switching between sections in a document is supported and make sure metadata (currently the <title> tag) is included in each slice. For me this is not worth the effort, I'd rather look for a simpler solution like remembering the last position in the document and restoring it to make reading more convenient.

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

No branches or pull requests

2 participants