Skip to content

feat(infoview): add history navigation and sectioned display#531

Open
epjnre wants to merge 2 commits into
Julian:mainfrom
epjnre:feature/history-sectioned
Open

feat(infoview): add history navigation and sectioned display#531
epjnre wants to merge 2 commits into
Julian:mainfrom
epjnre:feature/history-sectioned

Conversation

@epjnre

@epjnre epjnre commented Jul 6, 2026

Copy link
Copy Markdown
  • History: [H / ]H to go back/forward through previous goal states (max 30 per pin).
  • Sectioned display: optional headers (── Goals ──, etc.). Enabled by setting sectioned_display = true in view options.
  • New view option: sectioned_display (boolean).

Changes:

  • Pin stores history and history_index; adds history_back() / history_forward().
  • Pin:update() saves current element to history on successful commit.
  • wrap_sectioned_content, contents_for_interactive_sectioned for sectioned rendering.
  • Infoview:render_contents() dispatches to sectioned renderer when enabled.
  • Keymaps for [H / ]H in __setup_pin_keymaps.
  • Module exports: history_back, history_forward, toggle_sectioned_display.

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