Skip to content

Add a Markdown navigation pane - #935

Open
kisaraki wants to merge 1 commit into
microsoft:mainfrom
kisaraki:codex/markdown-navigation-pane
Open

Add a Markdown navigation pane#935
kisaraki wants to merge 1 commit into
microsoft:mainfrom
kisaraki:codex/markdown-navigation-pane

Conversation

@kisaraki

Copy link
Copy Markdown
Contributor

Summary

  • add a View > Navigation Pane command that is disabled for non-.md files
  • parse ATX headings from # through ###### and render a six-level tree
  • summarize intervening non-heading content as [......]
  • support mouse/keyboard activation, cursor jumps, active-row highlighting, and +/- folding
  • center the pane title and keep the ESC hint at the bottom

Validation

  • unit tests cover six heading levels, fenced-code exclusion, asterisk rejection, content grouping, and cursor jumps
  • cargo test --all-features --all-targets on Windows and WSL/Ubuntu
  • cargo clippy --workspace --all-features --all-targets -- --no-deps --deny warnings on Windows and WSL/Ubuntu

Contribution ownership

This contribution is entirely my own work. It is not created on behalf of, or connected with, any organization or company. I agree to contribute it under the repository's MIT License and to the repository's applicable contribution terms.

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

Successfully merging this pull request may close these issues.

1 participant