obsidian-vimrc-support
obsidian-vimrc-support copied to clipboard
VIM Surround Function will sometimes place brackets at a different position than the current selection
Here is a Loom of an issue I am experiencing where the vim-surround gets out of sync over time. Quitting out of Obsidian and reopening the page fixes whatever is causing this.
https://www.loom.com/share/c58db6c70ce149aab06ca00f67d76d8b
I'm experiencing the exact same issue
I spent some time looking into it and couldn't replicate the problem, but I might have a fix. CM is likely accidentally keeping multiple selections due to a bug somewhere else in CM. I've made changes to attempt to fix the bug in 89219379865ca1ed306138d1fa60c51ad6e1df2b and have made a PR #41, but I'd like to get @esm7's thoughts as well.