diff --git a/README.md b/README.md index b2cbeb7..e9dcac3 100644 --- a/README.md +++ b/README.md @@ -419,6 +419,11 @@ Note that the above snippet uses powerline glygh for the triangular shape, so yo ## Changelog +### 0.10.1 + +- Fixed https://github.com/esm7/obsidian-vimrc-support/issues/231 (thanks @alythobani!) +- Fixed https://github.com/esm7/obsidian-vimrc-support/issues/232. + ### 0.10.0 - Most notably, support for *many* new default mappings, see [here](https://github.com/esm7/obsidian-vimrc-support/pull/222) -- thanks @alythobani for this great contribution! diff --git a/main.ts b/main.ts index 4ace892..e09a63f 100644 --- a/main.ts +++ b/main.ts @@ -116,6 +116,9 @@ export default class VimrcPlugin extends Plugin { this.registerYankEvents(w); }) + this.prepareChordDisplay(); + this.prepareVimModeDisplay(); + // Two events cos // this don't trigger on loading/reloading obsidian with note opened this.app.workspace.on("active-leaf-change", async () => { @@ -280,9 +283,6 @@ export default class VimrcPlugin extends Plugin { this.loadVimCommands(vimCommands); - this.prepareChordDisplay(); - this.prepareVimModeDisplay(); - // Make sure that we load it just once per CodeMirror instance. // This is supposed to work because the Vim state is kept at the keymap level, hopefully // there will not be bugs caused by operations that are kept at the object level instead diff --git a/manifest.json b/manifest.json index 0ea4322..cd79063 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-vimrc-support", "name": "Vimrc Support", - "version": "0.10.0", + "version": "0.10.1", "description": "Auto-load a startup file with Obsidian Vim commands.", "minAppVersion": "0.15.3", "author": "esm", diff --git a/package.json b/package.json index 2bcded7..3d4a364 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-vimrc-support", - "version": "0.10.0", + "version": "0.10.1", "description": "Auto-load a startup file with Obsidian Vim commands.", "main": "main.js", "scripts": {