brijeshb42 / monaco-emacs Goto Github PK
View Code? Open in Web Editor NEWEmacs keybindings for monaco-editor
Home Page: https://editor-a5ea1.web.app/
License: MIT License
Emacs keybindings for monaco-editor
Home Page: https://editor-a5ea1.web.app/
License: MIT License
The getConfiguration()
method was recently removed from Monaco which causes this to not work with the latest Monaco version.
See: https://github.com/microsoft/monaco-editor/blob/master/CHANGELOG.md#0190-20122019
Hello,
https://ide.judge0.com/ uses Monaco Editor. The dev @hermanzdosilovic of that project recently added support for Emacs mode.
But while testing that out, I figured out that basic bindings like C-n
, C-y
, C-w
, C-x h
were not working (so I wasn't able to test out the Emacs mode more thoroughly on judge0.
The default way of importing it is via npm. However, I wonder if there is an easier way to import it via a script tag?
Thanks!
I've got a listener on my monaco instance that listens for Ctrl+M
onKeyDown
, and calls
e.preventDefault();
e.stopPropagation();
console.log("i'm stopping this event");
This event still then travels to monaco-emacs, and gets handled again.
Monaco-Emacs should respect stopprop and preventDefault.
Commands such as C-k
, C-y
do not work on recent version of Monaco.
This bug can be experienced on the demo.
In the demo page (https://editor.bitwiser.in/) with "emacs" enabled, tab
no longer indents text.
This keybinding works in emacs, and should still work on the browser equivalent.
Pressing ctrl-k multiple times doesn't do the right thing.
It's supposed to: capture all ctrl-k'illed lines into the yank buffer, and when you press ctrl-y insert them all at the cursor.
It deletes a line every time you press ctrl-k, but only keeps the most recent single line in the yank buffer. when you press ctrl-y it only inserts that most recent line at the cursor.
This is reproducible on your demo site (https://editor.bitwiser.in/)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.