judge0 / ide

✨ Simple, free and open-source online code editor.
https://ide.judge0.com
MIT License
818 stars 257 forks source link

Request to have Emacs mode as well #26

Closed kaushalmodi closed 4 years ago

kaushalmodi commented 5 years ago

Hello,

I see that the judge0 IDE has Vim mode. Can we also please have an Emacs mode?

Ref: https://github.com/nim-lang/Nim/issues/11599#issuecomment-506339018

hermanzdosilovic commented 4 years ago

I will add that in the near future: https://github.com/judge0/ide/issues/27#issuecomment-509833402

hermanzdosilovic commented 4 years ago

Hey @kaushalmodi,

I have added Vim and Emacs support on https://ide.judge0.com. Please check it out let me know does it work for you as expected.

If you are not sure if Judge0 IDE behaves as expected, please consult with https://editor.bitwiser.in. I am using their plugin for both vim and emacs.

Thanks!

Herman

kaushalmodi commented 4 years ago

The Ctrl+N (C-n) binding in Emacs should act like down arrow. But on Firefox, the Ctrl+N is stolen by the browser (Firefox) to open a new window.

The Ctrl+P (C-p) binding to act like up arrow works fine though (the browser is not stealing that binding to open the print dialog (as expected)).

Thanks for working on this.

By the way, I use Nim and was surprised to see Nim not available on that link (so I opened this other issue: https://github.com/judge0/ide/issues/32 ). And the Emacs binding setting is not available on https://nim.ide.judge0.com/.

hermanzdosilovic commented 4 years ago

Thanks for your fast review @kaushalmodi!

I will consider this feature as working because C-n cannot be cached by JavaScript.

I separated Nim from Judge0 IDE because Nim isn't currently in Judge0 API. At first Nim was added as experimental language to feature Judge0 but at the same time give Nim community something useful. I will think about adding Nim to Judge0 IDE (and API) and will let you know when that happens.

kaushalmodi commented 4 years ago

I tried the Emacs mode more today with basic stuff but none of these bindings work:

hermanzdosilovic commented 4 years ago

Hey @kaushalmodi,

I was able to reproduce this but it seems to me that monaco-emacs plugin that I use doesn't work as expected.

Can you please open an issue there?