Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
sublimator committed Feb 10, 2013
1 parent 103548f commit 059157b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
22 changes: 11 additions & 11 deletions README.creole
Expand Up @@ -15,24 +15,24 @@ Copy from the Default.sublime-keymap.template the last line that contains a
multitude of bindings with `insert_binding_repr` and place it in your User
keymap.

How it works is you actually think modifiers, PLUS, THEN key, in total pressing
TWO key combinations (the latter a lonely combo of one)
How it works is you press the modifiers, then PLUS, THEN the key, pressing in
total TWO key combinations (the latter a lonely combo of one)

You can't bind to just a modifier like alt, so plus seems a resaonable
key/mnemonic. Note that on a standard US keyboard `=` is on the same key as
`+` (plus)
key/mnemonic. Note that on a standard US keyboard `=` is on the same key as `+`
(plus)

So how would you insert alt+q?

* PRESS `alt+=`
* PRESS `q`
You can think of it like this:
So how would you insert alt+q? You can think of it like this:

* PRESS `alt` and hold it down
* PRESS `=` while thinking PLUS then lift all fingers
* PRESS `q`
In sublime `{"keys": [...]}` terms:

* PRESS `["alt+="]`
* PRESS `["q"]`
The following bindings show how it works.
Note the `expecting_binding_repr_mode` key.

Expand All @@ -56,7 +56,7 @@ Note the `expecting_binding_repr_mode` key.
"keys": ["q"]}
}}}

So how would you insert ctrl+alt+q?
So how would you insert ctrl+alt+q? (In sublime terms)

* PRESS `ctrl+alt+=`
* PRESS `q`
Expand Down
4 changes: 2 additions & 2 deletions commands_base.py
Expand Up @@ -20,7 +20,7 @@ def glob_and_parse_package_json(pattern):

yield pkg, name, f, text, setting_dict

class IEditJSONPreferenceBase:
class IEditJSONPreference:
format_cols = () # MUST_IMPLEMENT
settings_pattern = "*.sublime-json" # MUST OVERRIDE

Expand All @@ -31,7 +31,7 @@ def on_selection(self, setting):
def format_for_display(self, settings):
return settings # for quick panel

class EditJSONPreferenceBase(sublime_plugin.WindowCommand, IEditJSONPreferenceBase):
class EditJSONPreferenceBase(sublime_plugin.WindowCommand, IEditJSONPreference):
def format_for_display(self, settings):
return format_for_display(settings, cols=self.format_cols)

Expand Down

0 comments on commit 059157b

Please sign in to comment.