scrimba / community

Repository for public issue-tracking and discussions
https://scrimba.com
910 stars 75 forks source link

Add Vi keybindings #69

Open BlackCapCoder opened 7 years ago

BlackCapCoder commented 7 years ago

I have to use this in a class, and it pains me that there are no option to enable vi-emulation. There are plug and play solutions to this such as the Ace editor

perborgen commented 7 years ago

Hey @BlackCapCoder ! The editor we're using doesn't have Vi-support yet, so this is not possible at the moment. However, we're noting your request down, and will keep this issue posted in case something changes.

BlackCapCoder commented 7 years ago

@perborgen Would you consider making a chrome plugin that syncs the current project with local files, and/or to expose a simple get/push API?

perborgen commented 7 years ago

@BlackCapCoder We'll definitely consider it. And we have thought about syncing with other text editors. However it's not likely that it'll happen in the near future, as our todo list is pretty full at the moment.

BlackCapCoder commented 7 years ago

@perborgen Gotcha. Please let me know if there is anything I can do to aid development

perborgen commented 7 years ago

@BlackCapCoder Will do! Btw, I'd be curious to hear which school/course you're attending (you said you had to use it in class).

BlackCapCoder commented 7 years ago

@perborgen Westerdals. For anyone else interested in this, I actually went ahead and implemented it myself. I will probably be maintaining this for a year or so: https://github.com/BlackCapCoder/scrimba-vim

perborgen commented 7 years ago

@BlackCapCoder Oh, that's amazing! We'll check it out :)

somebee commented 7 years ago

Nice @BlackCapCoder :) If you want to take a stab at a making vim-bindings a viable alternative for all users of Scrimba you could look into what it would take to port https://github.com/VSCodeVim/Vim to https://github.com/Microsoft/monaco-editor. VSCode is basically just a wrapper around monaco in the first place, so I think it should be possible. If you'd like we could meet up and talk about it, we're dropping by Westerdals from time to time!

BlackCapCoder commented 7 years ago

@somebee I might look into it on a rainy day, but for now- scimba-vim solves every problem that I originally had with using Scimba for my class. Do drop me a message if you're going to Westerdals though; I never turn down an opportunity to priest my religious text-editing beliefs.

jamestomasino commented 4 years ago

This may be helpful - https://github.com/brijeshb42/monaco-vim

I'm not sure how scrimba is bundling monaco for its use, but maybe this can be inserted into the pipeline.

BlackCapCoder commented 4 years ago

I had a look at monaco-vim; it is a wrapper between monaco and an editor called CodeMirror, which also supports emacs. If this were to be integrated it would be advisable to support both editors as to not get caught in the great editor war.

I treated CodeMirror to a standard vim-emulator quality exam of placing a vim user in front of it and counting seconds, and it scored about 10, which is on par with Ace I'd say.

Personally I would prefer a way to sync files locally so that I can use my own tools..