I couldn’t figure out how to get CodeMirror6’s atomic ranges work in the normal mode of Vim mode. Is it possible? Or is it an upstream bug of GitHub - replit/codemirror-vim: Vim keybindings for CM6 ?
I searched ‘obsidian “EditorView.atomicRanges.of”’ on GitHub, and found there are only 4 plugins that use atomic ranges (including myself). And I tried them all
but none of them worked.
For example, @liam’s Creases looks like this in Vim mode:
source:
# heading 1
## heading 2 %% fold %%
### heading 3
(What’s in the console is transaction.annotation(Transaction.userEvent)
)
Clearly, the atomic range is not working, that is, the shirt widget is not treated as a single character.
I searched issues on GitHub - replit/codemirror-vim: Vim keybindings for CM6 and https://discuss.codemirror.net/ but there seems to be no issue/thread about atomic ranges and vim.
Any help is much appreciated. Thanks!