diff --git a/README.md b/README.md index 7bb9de8..5960457 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,9 @@ exmap back obcommand app:go-back nmap :back exmap forward obcommand app:go-forward nmap :forward + +" Also works +nmap h :obcommandworkspace:split-horizontal ``` ## Supported Commands @@ -186,7 +189,7 @@ map sb :surround_brackets map s( :surround_brackets map s) :surround_brackets map s[ :surround_square_brackets -map s[ :surround_square_brackets +map s] :surround_square_brackets map s{ :surround_curly_brackets map s} :surround_curly_brackets ``` @@ -577,3 +580,4 @@ Fixed [an issue](https://github.com/esm7/obsidian-vimrc-support/issues/2) caused The plugin now injects the Vimrc just once for the CodeMirror class (for the class -- not object instance, because that's where CodeMirror keeps the Vim settings.) This seems to work well, but in theory there could be Vimrc settings that are CodeMirror-object bound and not class-bound, and in that case we'll be in trouble (these settings will be lost when Obsidian replaces CodeMirror objects). + diff --git a/main.ts b/main.ts index 7c26be5..3220b1c 100644 --- a/main.ts +++ b/main.ts @@ -525,7 +525,7 @@ export default class VimrcPlugin extends Plugin { // Using the register for when this.yankToSystemClipboard == false surroundFunc( ['[', - '](' + vimObject.getRegisterController().getRegister('yank').keyBuffer + ")"]); + '](' + vimObject.getRegisterController().getRegister('yank').keyBuffer[0].trim() + ")"]); }) var editor = this.getActiveView().editor;