From 63ffc9e30bf8a66816d6c5c7818928ae5772fb23 Mon Sep 17 00:00:00 2001 From: "German M. Bravo" Date: Sun, 23 Feb 2014 01:13:04 -0600 Subject: [PATCH] Extended list of addornments for headers added. Fixes #27 --- Default (Linux).sublime-keymap | 2 +- Default (OSX).sublime-keymap | 5 +++-- Default (Windows).sublime-keymap | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Default (Linux).sublime-keymap b/Default (Linux).sublime-keymap index 98ac715..cf6fc5d 100644 --- a/Default (Linux).sublime-keymap +++ b/Default (Linux).sublime-keymap @@ -85,7 +85,7 @@ { "keys": ["tab"], "command": "smart_header", "context": [ { "key": "selector", "operator": "equal", "operand": "text.restructuredtext" }, - { "key": "preceding_text", "operator": "regex_match", "operand": "([=\\-\\*\\+\\^\\\"\\+\\~\\#\\'\\:\\`])\\1\\1+$" } + { "key": "preceding_text", "operator": "regex_match", "operand": "([!\\\"#$%&'\\\\()*+,\\-./:;<=>?@\\[\\]\\^_`{|}~])\\1\\1+$" } ] }, { "keys": ["alt+shift+f"], "command": "magic_footnotes", "context": diff --git a/Default (OSX).sublime-keymap b/Default (OSX).sublime-keymap index ae51391..c0700e6 100644 --- a/Default (OSX).sublime-keymap +++ b/Default (OSX).sublime-keymap @@ -81,10 +81,11 @@ [ { "key": "selector", "operator": "equal", "operand": "text.restructuredtext" } ] - }, { "keys": ["tab"], "command": "smart_header", "context": + }, + { "keys": ["tab"], "command": "smart_header", "context": [ { "key": "selector", "operator": "equal", "operand": "text.restructuredtext" }, - { "key": "preceding_text", "operator": "regex_match", "operand": "([=\\-\\*\\+\\^\\\"\\+\\~\\#\\'\\:\\`])\\1\\1+$" } + { "key": "preceding_text", "operator": "regex_match", "operand": "([!\\\"#$%&'\\\\()*+,\\-./:;<=>?@\\[\\]\\^_`{|}~])\\1\\1+$" } ] }, { "keys": ["alt+shift+f"], "command": "magic_footnotes", "context": diff --git a/Default (Windows).sublime-keymap b/Default (Windows).sublime-keymap index 98ac715..cf6fc5d 100644 --- a/Default (Windows).sublime-keymap +++ b/Default (Windows).sublime-keymap @@ -85,7 +85,7 @@ { "keys": ["tab"], "command": "smart_header", "context": [ { "key": "selector", "operator": "equal", "operand": "text.restructuredtext" }, - { "key": "preceding_text", "operator": "regex_match", "operand": "([=\\-\\*\\+\\^\\\"\\+\\~\\#\\'\\:\\`])\\1\\1+$" } + { "key": "preceding_text", "operator": "regex_match", "operand": "([!\\\"#$%&'\\\\()*+,\\-./:;<=>?@\\[\\]\\^_`{|}~])\\1\\1+$" } ] }, { "keys": ["alt+shift+f"], "command": "magic_footnotes", "context":