Skip to content

(duplicate) Sync position between View and Edit modes for ToC #1060

@contrapunctus-1

Description

@contrapunctus-1

Thanks for adding the ToC - it makes it easy to read large files. I have a request for a behaviour which would greatly ease their editing as well.

Situation

  1. View mode. User taps a ToC heading.
  2. They switch to edit mode.

Current behavior

The cursor is placed at the beginning of the document (even with the 'open at end' option enabled? Might be a bug.)

Suggested behaviour

Place the cursor at or below the heading.

If there is a concern about a case where the user -

  1. taps a ToC heading
  2. scrolls around, possibly going to another section
  3. switches to edit mode

...then the behavior could be to fall back to usual behavior (cursor at start or end of document) if the user scrolls after tapping the ToC heading.

This would make editing large files a lot easier.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions