thescientist13 / greenwood-starter-presentation

A Greenwood plugin and general purpose starter kit for creating slide decks and presentations from markdown.

Home Page:https://awesome-bhaskara-b7d76c.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

keep currently selected slide up on refresh when in editor mode

thescientist13 opened this issue · comments

Type of Change

  • New Feature Request
  • Documentation / Website
  • Improvement / Suggestion
  • Bug
  • Other (please clarify below)

Summary

When making local edits to content, the entire browser window will refresh. So if you were working on slide 6, everything would be be zero'd out and you would be back at slide 0. This would especially helpful during development. (or at least until something like ProjectEvergreen/greenwood#48 lands)

Details

I think a good way to approach this is to just add a query string in the browser's URL bar, and on reload, the app can see if that exists and can

  1. Set the correct slide to the current slide
  2. advance the scroll position in the list preview (nice to have)
  3. Whenever a user clicks a slide, update the URL bar (so this can work even if the user wants to set this themselves)

One question, should clicking the presenter mode always start at the first slide? 🤔