Repository navigation
feat: skip slides, kept in the file and left out of the show - #8
Merged
Merged
Conversation
A section with data-skip stays in the deck and in the edit view, and is passed over by the keys, clicks and swipes of the show. It is not printed, and the slide numbers and the presenter view count and preview only the slides that are shown. A deck that would open on a skipped slide, or leave the edit view on one, lands on the next one shown. The edit view has a Skip slide button beside Duplicate and Delete. It dims the thumbnail, and is one edit to undo or remove like the others.
Contributor
Author
|
Hey Roald, two small additions since I opened this, each in its own commit so you can drop either:
|
…bugs The edit view shows "Skipped: not in the show" above a skipped slide and a struck-through eye over its dimmed thumbnail, as the slide itself looked like any other. A skip edit now records the state it sets instead of toggling. Removing the first of two skip edits with × left the slide in the state opposite to what the remaining row said. The presenter view says "Skipped slide" for a show started on a skipped slide, where it said "Slide 0 of N". Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Owner
|
Thanks Victor, nice addition. I pushed one commit to your branch (bf061c8) with a few things I ran into while trying it:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi Roald. I have tried a fair number of slide tools lately (Slidev, Bento and others), and deckfile is the one I kept: one file, no build, and an edit view that really works. I would be glad to help where it is useful, starting with something I missed in my first decks. If you would rather have this another way, or not at all, that is fine too.
What changes
data-skipon a section: the slide stays in the file and is left out of the show. The keys, clicks and swipes pass over it, and it is not printed. It is for backup slides and for slides that are not ready.Notes on the design
data-autoover a class, since themes own the classes of a section.#edit-bar .e-mode button[aria-pressed=true]became#edit-bar button[aria-pressed=true], so the new button shares the pressed look of the Edit / Suggest switch.putBacknow also restores whether the slide is skipped, as a snapshot only carried the children before.Testing
npm test: 13 node tests and 103 browser tests pass. Three browser tests are new (show and print, presenter view, edit view), and the test that counts the buttons of the Slide section goes from 3 to 4. Checked by hand in Chrome on macOS only.a saved deck has its slides in the new order…failed once for me on an untouchedmainand passed on the next runs, so it may be a little flaky; it is not related to this change.