Skip to content

Commit

Permalink
Header level adjustment in OS X using alt + plus and alt + minus
Browse files Browse the repository at this point in the history
  • Loading branch information
Kronuz committed Feb 23, 2014
1 parent 137b8c3 commit 78df047
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Default (OSX).sublime-keymap
Original file line number Diff line number Diff line change
Expand Up @@ -62,22 +62,22 @@
[
{ "key": "selector", "operator": "equal", "operand": "text.restructuredtext" }
]
}, { "keys": ["ctrl+="], "command": "header_change_level", "context":
}, { "keys": ["alt+="], "command": "header_change_level", "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.restructuredtext" }
]
},
{ "keys": ["ctrl+keypad_plus"], "command": "header_change_level", "context":
{ "keys": ["alt+keypad_plus"], "command": "header_change_level", "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.restructuredtext" }
]
},
{ "keys": ["ctrl+-"], "command": "header_change_level", "args": {"offset": 1}, "context":
{ "keys": ["alt+-"], "command": "header_change_level", "args": {"offset": 1}, "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.restructuredtext" }
]
},
{ "keys": ["ctrl+keypad_minus"], "command": "header_change_level", "args": {"offset": 1}, "context":
{ "keys": ["altl+keypad_minus"], "command": "header_change_level", "args": {"offset": 1}, "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.restructuredtext" }
]
Expand Down
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,9 @@ Adjust header level
+++++++++++++++++++

With the cursor in a header, press ``ctrl + +`` (plus key) and ``ctrl + -``
(minus key) will increase and decrease the header level respectively.
The adornment decoration (underline / overline) are autodetected from the document
and uses Sphinx's conventions as default.
(minus key) (``alt + +`` and ``alt + -``, in Mac) will increase and decrease the
header level respectively. The adornment decoration (underline / overline) are
autodetected from the document and uses Sphinx's conventions as default.

For example, you have the cursor in::

Expand Down

0 comments on commit 78df047

Please sign in to comment.