Set (different) `slide_types` on selected cells
bollwyvl opened this issue · comments
Elevator Pitch
Offer a way to update the slide_type
of multiple selected cells with different common patterns.
Motivation
from a user:
i keep having this accidental tendency in deck where i where i select multiple cells and i want to make them a slide. so i really want like slide/frag/frag/frag. its almost like a natural grouping tendency
References
Design Ideas
This is not really feasible with the existing Property Inspector, as it has fairly undefined behavior with respect to multiple selected cells.
The more likely path is to offer a custom Deck sidebar: indeed, it might make sense to move all of the non-navigation and -overlay tools to such a sidebar, as it would require less fiddling around and surprising behavior of the various pop-up based controls.
Alternatives
An nearer-term alternative might be adding some general JupyterLab Commands optimized for use with the Command Palette that were well optimized for fuzzy search e.g.
- Set Active Cell Slideshow Type to Slide e.g. ctrl+c acst
- Set Active Cell Slideshow Type to Subslide ctrl+c acsb
- Set Active Cell Slideshow Type to Fragment ctrl+c acsf
With, initially, some hard-coded multi-select examples, such as:
- Set Selected Cells' Slideshow Type to Slide, Fragment...
- Set Selected Cells' Slideshow Type to Subslide, Fragment...
These could be dynamically registered, if a suitable UI existed (even if initially the JSON editor in settings 🙀 ), but doing this for the general case might require JSON-E, jmespath, or equivalent.
Some progress (can be seen over on RTD over on #40):