Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persist Deck position #3

Open
bollwyvl opened this issue Oct 9, 2022 · 0 comments
Open

Persist Deck position #3

bollwyvl opened this issue Oct 9, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@bollwyvl
Copy link
Contributor

bollwyvl commented Oct 9, 2022

Problem

When reloading the page with Deck enabled, the active position in the deck is lost and the presentation restarts.

Implementation Ideas

Initially, it would make sense to track this in notebook metadata.

metadata:
  deck-v0:
    slide: 3
    fragment: 2

the deck:go command could also offer these:

commands.execute('deck:go', {slide: 3, fragment: 2})

Design ideas

When RTC is enabled, it would also make sense to offer UX to allow following the presenter's position, as well as offering some way to claim and relinquish control.

Future Work

This model will get more complicated when considering multiple documents are part of a logical deck. This might need to be modeled in a more complete way, such as if embedded in a Notebook:

metadata:
  deck-v1:
    documents:
      - path: README.md
        command: markdown:preview  
        start: <some identifier>
        end: <some identifier>
        skip:
          - <some identifier>
@bollwyvl bollwyvl added the enhancement New feature or request label Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant