From fadd5eb65d42f74dd1db71fef2bdb7401e09ce77 Mon Sep 17 00:00:00 2001 From: seth Date: Wed, 18 Mar 2026 17:17:35 -0500 Subject: [PATCH] executeObsidianCommand: editor grabs focus --- main.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/main.ts b/main.ts index 2a1471b..5ca4302 100644 --- a/main.ts +++ b/main.ts @@ -444,6 +444,7 @@ export default class VimrcPlugin extends Plugin { const editor = view.editor; const command = availableCommands[commandName]; const {callback, checkCallback, editorCallback, editorCheckCallback} = command; + editor.focus(); // editor callbacks expect focus if (editorCheckCallback) editorCheckCallback(false, editor, view); else if (editorCallback)