vscode-reveal
vscode-reveal copied to clipboard
where could I add reveal.js config (keyboard) options?
I'm using this extension as a way to have a client make edits to a slide. I would love to be able to match my own reveal.js install, where I use the Reveal.configure with the "keyboard" option to give users a "blackout" function that suits me better than the built-in "pause" (I need to be able to black out the main slide screen but not the presenter view, then advance slides, and undo the black screen with a new slide). All this works when I have access to that Reveal.configure function.
In the reveal.js docs: https://revealjs.com/keyboard/
Is there currently a place where I could implement this? Thanks so much!
This is currently possible by using init.js
- if you create this file in presentation directory, it will replace the default initialization code from init.ejs.
The downside is that you have to recreate whole reveal options object yourself (plugins, presentation size, etc.) and you loose the fronmatter configuration.
I'd propose to construct and expose revealOptions
object whether init.js
exists or not. Then it could be used by init code from init.ejs
or custom code in init.js
(and possibly modified or totally ignored there).