ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Cheater

by shammond42 ST2

Sublime Text 2 plugin to show cheat sheets in a file tab.

Details

  • 2013.06.22.12.34.29
  • github.​com
  • github.​com
  • 11 years ago
  • 13 minutes ago
  • 11 years ago

Installs

  • Total 624
  • Win 333
  • Mac 183
  • Linux 108
Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

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.