Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set (different) slide_types on selected cells #44

Open
bollwyvl opened this issue Jan 8, 2023 · 1 comment
Open

Set (different) slide_types on selected cells #44

bollwyvl opened this issue Jan 8, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@bollwyvl
Copy link
Contributor

bollwyvl commented Jan 8, 2023

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.

  • 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.

@bollwyvl bollwyvl added the enhancement New feature or request label Jan 8, 2023
@bollwyvl
Copy link
Contributor Author

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant