deathbeds / jupyterlab-deck

Lightweight presentations for JupyterLab
https://jupyterlab-deck.rtfd.io
BSD 3-Clause "New" or "Revised" License
40 stars 9 forks source link

Set (different) `slide_types` on selected cells #44

Open bollwyvl opened 1 year ago

bollwyvl commented 1 year ago

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.

untitled dio

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.

With, initially, some hard-coded multi-select examples, such as:

These could be dynamically registered, if a suitable UI existed (even if initially the JSON editor in settings :scream_cat: ), but doing this for the general case might require JSON-E, jmespath, or equivalent.

bollwyvl commented 1 year ago

Some progress (can be seen over on RTD over on #40):

Screenshot from 2023-01-10 07-33-10