Fixed
- Ctrl hotkeys broken on active tab after closing Oil explorer — after closing Oil (via
q,:q, orcloseOil()),Ctrl-based hotkeys (<C-d>,<C-f>,<C-b>, etc.) stopped working on the restored file until the user switched to another tab and back. Root cause:OilView.onClose()calledremoveChild(editor)which triggersunload()but notdestroy(). ThepopKeymapScopecall that removes the Oil-specific ObsidianScope(withCtrl+T/S/H/L/Chandlers) lives indestroy(), so the scope remained pushed on the keymap stack after Oil was gone — intercepting Ctrl keys and silently consuming them. Fixed by callingthis.editor.destroy()beforeremoveChild()inonClose(). (#93)- Plugin:
src/oil/oil-view.ts(onClose— explicitdestroy()beforeremoveChild)
- Plugin:
Tests
- 2 e2e tests in
test/specs/oil-poc.e2e.ts: Ctrl keys work after closing Oil viacloseOil()(scope cleanup regression), Ctrl keys work after opening and closing Oil multiple times (scope stack leak detection)
Full Changelog: 0.92.0...0.92.1