前回、前々回の記事のようにメモをとるときはst3+wri.peで書いてるんですが、色々使ってみたけど結果MarkdownEditingがめちゃめちゃいい。
使い始めは
で、とりあえずドハマり…ҟҽղհɾօ ʍօɾ@_john_doe_
だが、MarkdownEditingの日本語入力時のEnter押した時のバグはなんとかして欲しい
2014/08/28 16:42:45
横道にそれIMESupportを入れたり…
とか言ってSmartMarkdownを試し…なんかちげーなと思い。ҟҽղհɾօ ʍօɾ@_john_doe_
もうMarkdownEditiingは諦めた…他のを探そう…
2014/09/09 13:31:03
- MacでSmartMarkdown利用時、日本語の変換確定で文字が消える問題の対策
- Sublime Textの導入、Markdown、日本語入力時の不具合対策
- [Tips] Sublime Text: 日本語変換を確定すると文字が消える
と、キーバインドも変更できねーしなんなんだよもう!無理じゃん!って思い込んでたんですけど。ҟҽղհɾօ ʍօɾ@_john_doe_
ホントMarkdownEditiingどうにかならんかなあ…キーバインドさえいじれればいいのになあ…
2014/09/09 19:46:35
それでも対策方法を探しながら使い続け、やっとみつけた起死回生のQiita!> MacのSublimeText3で日本語が消えるバグを回避する
あんれまあ、盲点〜。
というわけで早速実行。
~/L/A/S/P/MarkdownEditing ❯❯❯ diff -uBB ~/Downloads/MarkdownEditing-master/Default\ \(OSX\).sublime-keymap .
--- /Users/kmori/Downloads/MarkdownEditing-master/Default (OSX).sublime-keymap 2014-05-01 04:42:30.000000000 +0900
+++ ./Default (OSX).sublime-keymap 2014-11-19 15:08:39.000000000 +0900
@@ -294,7 +294,7 @@
{ "key": "selector", "operator": "not_equal", "operand": "markup.raw", "match_all": true }
]
},
- { "keys": ["enter"], "command": "insert_snippet", "args": {"contents": " ${TM_CURRENT_LINE/(#+?)[^#].*$/$1\n/}"}, "context":
+ { "keys": ["shift+enter"], "command": "insert_snippet", "args": {"contents": " ${TM_CURRENT_LINE/(#+?)[^#].*$/$1\n/}"}, "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown", "match_all": true },
{ "key": "preceding_text", "operator": "regex_contains", "operand": "^#+\\s+[^#]", "match_all": true },
@@ -306,7 +306,7 @@
]
},
// Extend lists
- { "keys": ["enter"], "command": "insert_snippet", "args": {"contents": "${TM_CURRENT_LINE/^(\\s*([*\\-+])(\\s+)).*/\n$2$3/}"}, "context":
+ { "keys": ["shift+enter"], "command": "insert_snippet", "args": {"contents": "${TM_CURRENT_LINE/^(\\s*([*\\-+])(\\s+)).*/\n$2$3/}"}, "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown", "match_all": true },
{ "key": "preceding_text", "operator": "regex_contains", "operand": "^(\\s*([*\\-+])\\s+)\\S.*", "match_all": true },
@@ -315,7 +315,7 @@
]
},
// Extend lists with GFM tasks
- { "keys": ["enter"], "command": "insert_snippet", "args": {"contents": "${TM_CURRENT_LINE/^(\\s*([*\\-+])(\\s+)\\[[ x]\\](\\s+)).*/\n$2$3[ ]$4/}"}, "context":
+ { "keys": ["shift+enter"], "command": "insert_snippet", "args": {"contents": "${TM_CURRENT_LINE/^(\\s*([*\\-+])(\\s+)\\[[ x]\\](\\s+)).*/\n$2$3[ ]$4/}"}, "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown", "match_all": true },
{ "key": "preceding_text", "operator": "regex_contains", "operand": "^(\\s*([*\\-+])\\s+)\\[[ x]\\]\\s+\\S.*", "match_all": true },
@@ -324,7 +324,7 @@
]
},
// Extend Numbered Lists
- { "keys": ["enter"], "command": "number_list", "context":
+ { "keys": ["shift+enter"], "command": "number_list", "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown", "match_all": true },
{ "key": "preceding_text", "operator": "regex_contains", "operand": "^(\\s*(\\d+\\.)\\s+)\\S.*", "match_all": true },
@@ -333,7 +333,7 @@
]
},
// Remove empty list item
- { "keys": ["enter"], "command": "run_macro_file", "args": {"file": "Packages/MarkdownEditing/macros/Remove Empty List Item.sublime-macro"}, "context":
+ { "keys": ["shift+enter"], "command": "run_macro_file", "args": {"file": "Packages/MarkdownEditing/macros/Remove Empty List Item.sublime-macro"}, "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown", "match_all": true },
{ "key": "preceding_text", "operator": "regex_contains", "operand": "^(\\s*([*\\-+]|\\d+\\.)\\s+)$", "match_all": true },
@@ -343,7 +343,7 @@
]
},
// Extend blockquote
- { "keys": ["enter"], "command": "insert_snippet", "args": {"contents": "${TM_CURRENT_LINE/^(\\s*((>+\\s+)+([*\\-+]\\s+)?)).*/\n$2/}"}, "context":
+ { "keys": ["shift+enter"], "command": "insert_snippet", "args": {"contents": "${TM_CURRENT_LINE/^(\\s*((>+\\s+)+([*\\-+]\\s+)?)).*/\n$2/}"}, "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown", "match_all": true },
{ "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*>+\\s+", "match_all": true },
~/L/A/S/P/MarkdownEditing ❯❯❯
というわけでキーバインドを変えられて万々歳。最高。MarkdownEditing自体の素晴らしさは使えばわかるので多くは語りません。
あ、せめて設定だけは書いておきます。なんやかんやmarkdown/multi/GFM分ありますが…
{
"color_scheme": "Packages/MarkdownEditing/MarkdownEditor-Dark.tmTheme",
"draw_centered": false,
"enable_table_editor": true,
"extensions":
[
"md",
"mdown",
"",
],
"highlight_line": true,
"line_numbers": true,
"translate_tabs_to_spaces": false,
"wrap_width": 120
}
あとオマケでstでmarkdown書くならTable Editerいれると更に幸せになれると思います。