-
-
Notifications
You must be signed in to change notification settings - Fork 12
Description
So Command-D in "normal" emmet does outward-expansion. But in CodeMirror, if you turn on the official Sublime Text bindings:
https://codemirror.net/demo/sublime.html
Then Command-D gets replaced with "select next occurrence" (selectNextOccurrence).
Because CodeMirror supports multiple selections/multiple cursors, that means you don't just have the original selection, but it keeps adding to the selection.
That's all fine, and so far working as expected:
CleanShot.2021-06-22.at.05.52.22.mp4
But that's without Emmet.
I would test it here, but this demo doesn't have Sublime Text bindings on:
https://download.emmet.io/codemirror/index.html
On CodePen, we do (you have to turn on Sublime Text bindinds, and Emmet, in Editor Preferences).
When BOTH are active, in HTML specifically, something gets funky with line positions. You can see here:
CleanShot.2021-06-22.at.05.54.24.mp4
It looks like maybe Emmet's tag-matching thing is catching the second-and-beyond selection?