Skip to content

feat: skip slides, kept in the file and left out of the show - #8

Merged
roaldnefs merged 4 commits into
roaldnefs:mainfrom
victorbahl:feat/skip-slides
Nov 14, 2026
Merged

roaldnefs merged 4 commits into
roaldnefs:mainfrom
victorbahl:feat/skip-slides

Conversation

@victorbahl

Copy link
Copy Markdown
Contributor

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-skip on 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.
  • Slide numbers: the counter and the presenter view count only the slides that are shown, so the audience sees no gap. A skipped slide has an empty counter. The edit view keeps numbering every slide in document order, as the suggestions and the prompt do.
  • Presenter view: the next pane previews the next slide that is shown, and "End of deck" appears on the last one.
  • Edit view: a Skip slide button beside Duplicate and Delete skips the current slide or brings it back. Its thumbnail is dimmed. It is one edit in the list, to undo or to remove with × like the others. The arrows still reach skipped slides here, so they can be edited.
  • Landing: a deck that would open on a skipped slide, or leave the edit view on one, shows the next slide that is not skipped, or else the one before.
  • Docs: the README, the skill's component reference and the header comments of the engine and the template.

Notes on the design

  • I chose an attribute next to data-auto over 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.
  • putBack now 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 untouched main and passed on the next runs, so it may be a little flaky; it is not related to this change.

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.
@victorbahl

Copy link
Copy Markdown
Contributor Author

Hey Roald, two small additions since I opened this, each in its own commit so you can drop either:

  • the skip button now shows an eye struck through instead of the barred circle, which read more like "forbidden" than "hidden"
  • a show started on a skipped slide from the edit view shows it. The use case: a question comes up, you know the answer is on a backup slide, you go to it and present it. The next key goes on with the deck and never comes back to it.

…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>
@roaldnefs

Copy link
Copy Markdown
Owner

Thanks Victor, nice addition. I pushed one commit to your branch (bf061c8) with a few things I ran into while trying it:

  • × on a skip edit: skip, unskip, then × on the "Skipped slide" row left the slide skipped. The edit now records the state it sets instead of toggling.
  • Presenter view: a show started on a skipped slide said "Slide 0 of N"; it now says "Skipped slide".
  • Edit view: a "Skipped: not in the show" label above the slide and an eye over the dimmed thumbnail, since the slide itself looked like any other.

@roaldnefs
roaldnefs merged commit 98e2a2c into roaldnefs:main Nov 14, 2026
1 check passed
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.

2 participants