dart-lang / dart-pad

An online Dart editor with support for console, web, and Flutter apps
https://dartpad.dev
BSD 3-Clause "New" or "Revised" License
1.67k stars 550 forks source link

Vim mode has been removed #2902

Open dantechguy opened 3 months ago

dantechguy commented 3 months ago

Looks like a new version of dartpad has arrived. A regression I've found is the lack of Vim mode which was added to the previous version https://github.com/dart-lang/dart-pad/issues/1361

Would be great if either it could be added again, or more realistically a toggle for the old dartpad version could be added (so we can continue to have full functionality while this new version is still in beta).

maranix commented 3 months ago

+1 for this.

Whenever I want to create a quick snippet or test a small piece of logic/code. My first instinct is to do it in dartpad. The new version has really been holding me back from consistently using it.

PS: If you guys are waiting for someone to contribute this feature in the newer version, then let us know. I am up for taking this task, although I have never done this before. Should be an interesting and fun thing to implement.

dantechguy commented 2 months ago

FYI the old version of Dartpad with VIM mode can be found at https://old-dartpad-3ce3f.web.app

johnpryan commented 2 weeks ago

This isn't too much work to implement, since Codemirror already supports Vim keybindings. See this pull request for details.

maranix commented 2 weeks ago

Hi @johnpryan thanks for replying with a reference PR, very excited to start working on this!

maranix commented 5 days ago

Haven't been able to work on this due to some circumstances, I am however content on implementing this in the future.

In the meantime, if somebody wants to pick it up then please do so.