GithubHelp home page GithubHelp logo

cheater's Introduction

Cheater Sublime Text 2 Plugin

Cheater is a plugin for quickly accessing cheat sheets in the Sublime Text 2 editor. Typing the key sequence will open a cheat sheet in a new file tab. If the sheet is already open, it will simply pop to the front.

Available Cheat Sheets

At the moment there is only one available sheet.

  • Regular Expressions "cmd/ctrl + shift + c" + "r" + "x"

How to add your own Cheat Sheets

  • In your ./Packages/User/ folder create a folder named cheat_sheet and add your filename.cheatsheet. Highlighting follows the following format:
Header
\t Text
Command \s\s Text
  • Add a keyboard shortcut by adding the following line to ./Packages/User/Default(OS).sublime-keymap and change the keys and filename:
{ "keys": ["ctrl+shift+c", "n", "s"], "command": "cheat_sheet", "args": {"cheatsheet": "filename"} }
  • Add a menu entry by adding the following to `./Packages/User/Main.sublime-menu and change both instances of filename:
[
  {
    "id": "tools",
    "children": [
      {
        "id": "cheat-sheets",
        "caption": "Cheat Sheets",
        "children": [
          {
            "caption": "filename",
            "command": "cheat_sheet",
            "args": {"cheatsheet": "filename"}
          }
        ]
      }
    ]
  }
]

Note on Patches/Pull Requests

New sheets, and improvements to the existing ones are more than welcome.

  • Fork the project.
  • Make your feature addition or bug fix.
  • Add tests for it. This is important so I don't break it in a future version unintentionally.
  • Commit, but do not mess with the Rakefile. If you want to have your own version, that is fine but bump the version in a commit by itself in another branch so I can ignore it when I pull.
  • Send me a pull request. Bonus points for git flow feature branches.

License

Cheater is licensed under the MIT License. See LICENSE for details.

cheater's People

Contributors

damien-biasotto avatar dmikalova avatar shammond42 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cheater's Issues

Sublime - Align JSON formatting

Doesn't seem to work for me... Ctrl + Alt + J to "Align JSON formatting"

input:

{a:1,b:[2,3.4], z:function(){}}

sublime v3 build 3083

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.