From 059157b5e84c44865890fb68ec8cde761425d96c Mon Sep 17 00:00:00 2001 From: Nicholas Dudfield Date: Sun, 10 Feb 2013 15:11:21 +0700 Subject: [PATCH] Updated README --- README.creole | 22 +++++++++++----------- commands_base.py | 4 ++-- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/README.creole b/README.creole index 3fd8523..df484b2 100644 --- a/README.creole +++ b/README.creole @@ -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. @@ -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` diff --git a/commands_base.py b/commands_base.py index 6cbfc48..967ed9c 100644 --- a/commands_base.py +++ b/commands_base.py @@ -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 @@ -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)