# repl: Add notebook command/edit modes and keybindings \(\#51194\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/fd667f6373926fce36ff17d741d4d78d20c5a103)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: fd667f6373926fce36ff17d741d4d78d20c5a103

Requested commit: fd667f6373926fce36ff17d741d4d78d20c5a103

Commit: fd667f6373926fce36ff17d741d4d78d20c5a103

Tree: fd4ec3a142518891fc3dda0aceca53ca479e2016

Author: MostlyK

Committer: GitHub

## Message

```
repl: Add notebook command/edit modes and keybindings (#51194)

- Introducing NotebookMode state and handlers (EnterEditMode,
EnterCommandMode, RunAndAdvance).
- Wire up UI to switch modes,focus editors appropriately, and advance
selection while in command mode.
- Update default and vim keymaps to use the new bindings (shift-enter
runs+advances, escape enters command mode,
and enter/up/down work in command mode).
- Reveal and Focus the new Cell when inserted 

Before you mark this PR as ready for review, make sure that you have:
- [x] Added a solid test coverage and/or screenshots from doing manual
testing
- [x] Done a self-review taking into account security and performance
aspects
- [x] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)

Release Notes:

- N/A
```

## Parents

- [f2ef43429ff4db6b2b735f3969e393b86bf7d8d4](https://git.cafe/gitcafe/zed/commit/f2ef43429ff4db6b2b735f3969e393b86bf7d8d4?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/fd667f6373926fce36ff17d741d4d78d20c5a103?format=markdown)
