Permalink
Browse files

Added more keyboard shortcuts, removed conflicting keyboard shortcut …

…- ctrl+k
  • Loading branch information...
1 parent d6b6e11 commit 99094f7da501061072970b5f9beb98ba746fc10e @mrchief mrchief committed Jun 1, 2012
Showing with 23 additions and 4 deletions.
  1. +7 −1 Default (Linux).sublime-keymap
  2. +7 −1 Default (OSX).sublime-keymap
  3. +7 −1 Default (Windows).sublime-keymap
  4. +2 −1 ReadMe.md
@@ -11,7 +11,13 @@
{"key": "selector", "operator": "equal", "operand": "text.html.asciidoc"}
]
},
- { "keys": ["ctrl+k"], "command": "insert_snippet", "args": {"contents": "+${0:$SELECTION}+"}, "context":
+ { "keys": ["ctrl+k", "ctrl+k"], "command": "insert_snippet", "args": {"contents": "+${0:$SELECTION}+"}, "context":
+ [
+ {"key": "selection_empty", "operator": "equal", "operand": false},
+ {"key": "selector", "operator": "equal", "operand": "text.html.asciidoc"}
+ ]
+ },
+ { "keys": ["ctrl+k", "ctrl+f"], "command": "insert_snippet", "args": {"contents": "[role=\"filename\"]`${0:$SELECTION}`"}, "context":
[
{"key": "selection_empty", "operator": "equal", "operand": false},
{"key": "selector", "operator": "equal", "operand": "text.html.asciidoc"}
@@ -11,7 +11,13 @@
{"key": "selector", "operator": "equal", "operand": "text.html.asciidoc"}
]
},
- { "keys": ["cmd+k"], "command": "insert_snippet", "args": {"contents": "+${0:$SELECTION}+"}, "context":
+ { "keys": ["cmd+k", "cmd+k"], "command": "insert_snippet", "args": {"contents": "+${0:$SELECTION}+"}, "context":
+ [
+ {"key": "selection_empty", "operator": "equal", "operand": false},
+ {"key": "selector", "operator": "equal", "operand": "text.html.asciidoc"}
+ ]
+ },
+ { "keys": ["cmd+k", "cmd+f"], "command": "insert_snippet", "args": {"contents": "[role=\"filename\"]`${0:$SELECTION}`"}, "context":
[
{"key": "selection_empty", "operator": "equal", "operand": false},
{"key": "selector", "operator": "equal", "operand": "text.html.asciidoc"}
@@ -11,7 +11,13 @@
{"key": "selector", "operator": "equal", "operand": "text.html.asciidoc"}
]
},
- { "keys": ["ctrl+k"], "command": "insert_snippet", "args": {"contents": "+${0:$SELECTION}+"}, "context":
+ { "keys": ["ctrl+k", "ctrl+k"], "command": "insert_snippet", "args": {"contents": "+${0:$SELECTION}+"}, "context":
+ [
+ {"key": "selection_empty", "operator": "equal", "operand": false},
+ {"key": "selector", "operator": "equal", "operand": "text.html.asciidoc"}
+ ]
+ },
+ { "keys": ["ctrl+k", "ctrl+f"], "command": "insert_snippet", "args": {"contents": "[role=\"filename\"]`${0:$SELECTION}`"}, "context":
[
{"key": "selection_empty", "operator": "equal", "operand": false},
{"key": "selector", "operator": "equal", "operand": "text.html.asciidoc"}
View
@@ -51,7 +51,8 @@ Basic support for some handy shortcuts are now available:
- **Bold** selection: Select some text and then press `ctrl+b`
- _Italic_ize selection: Select some text and then press `ctrl+i`
- - Mark selection as Code literal: Select some text and then press `ctrl+k`
+ - Mark selection as Code literal: Select some text and then press `ctrl+k`, `ctrl+k`
+ - Mark selection as filename: Select some text and then press `ctrl+k`, `ctrl+f`
**Note**: `ctrl+b` overrides the standard key binding of `Tools > Build System`. If this bothers you, you can edit the `.sublime-keymap` files (based on your OS) under `Packages\AsciiDoc` folder.

0 comments on commit 99094f7

Please sign in to comment.