mfontanini / presenterm

A markdown terminal slideshow tool
https://mfontanini.github.io/presenterm/
BSD 2-Clause "Simplified" License
1.19k stars 29 forks source link

Introduce a keymapping for quickly going through slides #241

Closed carbon-steel closed 4 months ago

carbon-steel commented 4 months ago

I think it'd be handy, especially when editing presentations, to have a key I can press to click through slides without going through every single step within each slide. Instead, the key would show the beginning and ending states of each slide, skipping any intermediate states.

For example:

First slide
<!-- pause -->
a
<!-- pause -->
b
<!-- pause -->
c
<!-- pause -->
d
<!-- pause -->
e
<!-- end_slide -->
Second slide
<!-- pause -->
second slide end

Imagine I map this new function to the "n" key. When I start the presentation, I'll see the first line from the first slide.

The function doesn't have to be set to "n", or even be set to any key by default, but I think having the option to set this function to a key would be good.

Wdyt?

mfontanini commented 4 months ago

Thanks for the suggestion, I like it! I just implemented this. It's bound to p and n by default but you can override it via the config file. The keys are next_fast and previous_fast (see example config file)