emmetio/codemirror

codemirror 4 support

Closed this issue · 5 comments

In Chrome DevTools we just updated to CM4.

We'd be very interested in using this plugin directly inside DevTools if it's compatible.

ref: http://code.google.com/p/chromium/issues/detail?id=360242
cc @aslushnikov

Would love to see Emmet support CM4 also, keen to upgrade ICEcoder.

Check out cm4 branch, should work with CodeMirror 4 and multi-selection mode (but don’t know how to test it, can’t find info on CodeMirror docs web-site about multiple cursors/selections).

Thanks for the work here @sergeche, really appreciated. I've had a look for the CM demo showcasing this, but seems to have gone and can't easily find shortcut key info in the CM manual.

From memory tho, I think the UI here is:

  • CTRL+clicking = placing extra cursors
  • Alt+drag = replace drag area with extra cursors
  • Esc = cancel

Think that's about it, but maybe @marijnh could confirm?

How come this isn't closed, the readme says compatible with 4.x, and another said 5.x even

Yep, also works with 5.x