Giter VIP home page Giter VIP logo

udacity-keybindings's Introduction

About

This userscript enables Vim and Emacs keybindings for Udacity's embedded CodeMirror editor. No longer will your code be littered with stray is and dds!

Installation

Firefox: click here to install.

Chrome: click here to download the script, packaged as a Chrome extension. Open your extension settings (chrome://extensions/). Drag the .crx file over the window and drop to install.

This script is also available on userscripts.org.

Using Extended Keybindings

Once the script is installed, you'll see a 'Keybindings' button next to the "Reset" and "Test Run" buttons underneath the embedded code editor. Click to rotate through the included keyboard configurations: default, Vim, and Emacs. When Vim normal mode is enabled, you'll see a fat blue cursor. Most of your favorite Vim commands will now work. (Try ci( or 5dd!) To get a feel for what's available without messing up your own code, check out the Vim and Emacs demos from the CodeMirror site. I've only tested a few Emacs commands, but many of your favorite inscrutable pinky contortions should be available too.

Issues and Contributions

If you run into a bug, please open an issue here and I'll check it out. If you'd like to add a feature, feel free to fork and pull.

License

This code is released under an MIT license.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.