GithubHelp home page GithubHelp logo

isabella232 / shortcuts-config Goto Github PK

View Code? Open in Web Editor NEW

This project forked from koding/shortcuts-config

0.0 0.0 0.0 28 KB

shortcuts tools for creating keymap configs

Makefile 2.15% JavaScript 86.52% CoffeeScript 10.46% Python 0.87%

shortcuts-config's Introduction

tools for creating keymap config

$ npm install
$ make

to generate json & csv files under out/ directory that we can use for shortcuts.

keymap item

  {
    "name": "w#gototabnumber1",
    "description": "Go to Tab #1",
    "binding": [
      [
        "ctrl+1"
      ],
      [
        "command+1"
      ]
    ],
    "readonly": false,
    "enabled": true,
    "hidden": false,
    "options": {
      "mousetrap": {
        "global": true
      }
    }
  },
  • name is unique id for this shortcut~~, which also acts some sort of namespace. here w#gototabnumber1 denotes that this shortcut is in w group, and eventually will be displayed along with other shortcuts in w group.~~
  • binding is an array of two arrays. these arrays hold key-bindings defined for windows and mac respectively. shortcuts are always in mousetrap syntax.
  • if a shortcut is readonly it cannot be overridden by any shortcut in same namespace. we only display them but do not allow them to be set.
  • hidden shortcuts are shortcuts that we had to implicitly override for some reason (eg ace#showSettingsMenu) and have to keep them around to prevent getting them overridden. they are hidden because they are not displayed.

ace-to-json.js

json repr of ace shortcuts.

depends on:

terminal-to-json.coffee

json repr of shortcuts extracted from Terminal/AppController#keyBindings

editor-to-json.js

json repr of shortcuts extracted from Ace/ace.coffee (see: addKeyCombo calls)

workspace-to-json.coffee

json repr of shortcuts extracted from IDE/AppControllerOptions#keyBindings

depends on:

  • workspace-descriptions.json

to-csv.py

turns keymap json into csv. so people can make revisions using google spreadsheets.

(see: UI/UX > IDE and Terminal > Shortcuts under google drive)

usage:

node ace-to-json.js|python to-csv.py

shortcuts-config's People

Contributors

gokmen avatar tetsuo avatar

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.