Hotkey to toggle focus between notebook and helper panel

Open
#11,546 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
python, react

Research direction

Start at the global action registration and the focus handling for notebook cells and the helper panel; the issue does not name specific files or tests. Trace how Mod-Shift-s opens and closes the panel, then check how the last focused cell is tracked. Done means the new unbound action moves focus in both directions and opens the panel when needed.

Written by the indexing model from the issue text.

Description

Description

As a vim user, I can't move focus between a cell and the helper panel (e.g. the AI agent prompt) without the mouse. Mod-Shift-s shows/hides the panel, but focus stays where it was.

Proposal: a new action, global.toggleSidebarFocus, unbound by default.

  • From a cell: open the panel if needed and focus its text input, or its first control if it has none.
  • From the panel: return focus to the last focused cell.
Are you willing to submit a PR? (You must receive approval from the team before submitting a PR.)
  • Yes
Alternatives

Tab-cycling, which is slow and unreliable here.

Additional context

Related: #9109. I have a working implementation with tests, happy to open a PR if this fits.

Dominant language
Python
Stars
22.9k
Forks
1.3k
Avg merge
1d 10h
Merged PRs (30d)
380

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from marimo-team/marimo

All issues in marimo-team/marimo

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.