Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix: vim jk movement should only be registered on cell when code is hidden (#671)

Akshay Agrawal0e3f1a3811d5
diff --git a/frontend/src/components/editor/Cell.tsx b/frontend/src/components/editor/Cell.tsx
index 6f89f11369..2960534587 100644
--- a/frontend/src/components/editor/Cell.tsx
+++ b/frontend/src/components/editor/Cell.tsx
@@ -315,7 +315,9 @@ const CellComponent = (
moveToNextCell({ cellId, before: true, noCreate: true });
return true;
},
- ...(userConfig.keymap.preset === "vim"
+ // only register j/k movement if the cell is hidden, so as to not
+ // interfere with editing
+ ...(userConfig.keymap.preset === "vim" && cellConfig.hide_code
? {
j: () => {
moveToNextCell({ cellId, before: false, noCreate: true });