Merge branch 'master' into feature/add-timeoutlen

This commit is contained in:
Anel 2025-10-02 18:51:20 -05:00
commit 9d9b3e8751
2 changed files with 6 additions and 2 deletions

View file

@ -50,6 +50,9 @@ exmap back obcommand app:go-back
nmap <C-o> :back<CR>
exmap forward obcommand app:go-forward
nmap <C-i> :forward<CR>
" Also works
nmap <C-w>h :obcommand<space>workspace:split-horizontal<CR>
```
## Supported Commands
@ -186,7 +189,7 @@ map sb :surround_brackets<CR>
map s( :surround_brackets<CR>
map s) :surround_brackets<CR>
map s[ :surround_square_brackets<CR>
map s[ :surround_square_brackets<CR>
map s] :surround_square_brackets<CR>
map s{ :surround_curly_brackets<CR>
map s} :surround_curly_brackets<CR>
```
@ -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).

View file

@ -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;