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.

improve: use "i" to focus a cell from command mode when in vim keymap (#5632)

Akshay Agrawala6e3b02016a0
diff --git a/frontend/src/components/editor/navigation/navigation.ts b/frontend/src/components/editor/navigation/navigation.ts
index b1af667601..eabd8bfa88 100644
--- a/frontend/src/components/editor/navigation/navigation.ts
+++ b/frontend/src/components/editor/navigation/navigation.ts
@@ -154,6 +154,12 @@ export function useCellNavigationProps(
actions.focusCell({ cellId, before: true });
return;
}
+ if (evt.key === "i" && !Events.hasModifier(evt)) {
+ setTemporarilyShownCode(true);
+ focusCellEditor(store, cellId);
+ evt.preventDefault();
+ return;
+ }
}
// Down arrow moves to the next cell.