marimo-team / marimo

A reactive notebook for Python — run reproducible experiments, execute as a script, deploy as an app, and version with git.
https://marimo.io
Apache License 2.0
8.11k stars 294 forks source link

keyboard shortcuts for sidebar helper panels #2607

Open aidanmontare-fed opened 1 month ago

aidanmontare-fed commented 1 month ago

Description

I'd like to switch to and from the helper panels with the keyboard.

Suggested solution

It would be awesome if the various sidebar helper panels had keyboard shortcuts to switch to them quickly!

Alternative

No response

Additional context

No response

mscolnick commented 1 month ago

Any suggestions?

They should appear in the command palette, but no shortcuts at the moment.

aidanmontare-fed commented 1 month ago

Hmm, I was initially thinking something like CTRL-SHIFT-1, CTRL-SHIFT-2, ... in the order they appear on the sidebar, but some of those are already taken for rearranging cells.

aidanmontare-fed commented 1 month ago

VSCode does sort of mnemonic names based on the name of the panel (CTRL-SHIFT-E for "Explorer"), but for marimo things like CTRL-SHIFT-S for "Scratchpad" are already used.

aidanmontare-fed commented 1 month ago

Maybe just two keys that cycle through the panels?

This is harder than I thought...

mscolnick commented 1 month ago

I like a Function key to cycle through

aidanmontare-fed commented 1 month ago

How about CTRL-SHIFT-, for previous and CTRL-SHIFT-. for next?