-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDefault (OSX).sublime-keymap
51 lines (49 loc) · 1.72 KB
/
Default (OSX).sublime-keymap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
[
/* --For Mac users who had used 0.1.0 or 0.2.0 versions of this plugin--
* If you don't like newer version of key bindings, please add
* old key-bindings to "Default (OSX).sublime-keymap" in "User"
* folder.
* Here is an example of old key-binding.
{
"keys": ["super+left"],
"command": "key_select_jp",
"args": {"key": "left"}
},
*/
{
"keys": ["alt+left"],
"command": "key_select_jp",
"args": {"key": "left"},
"context": [
{
"key": "preceding_text",
"operator": "regex_contains",
"operand": "^[ぁ-んア-ン一-龠ヴ。、,.!? ・「」:”()ー゚゙]"
}
]
},
{
"keys": ["alt+right"],
"command": "key_select_jp",
"args": {"key": "right"},
"context": [
{ "key": "preceding_text", "operator": "regex_contains", "operand": "[\\p{Katakana}\\p{Hiragana}\\p{Han}。、,.!? ・「」:”()ー゚゙]" }
]
},
{
"keys": ["alt+shift+left"],
"command": "key_select_jp",
"args": {"key": "left", "additive": true},
"context": [
{ "key": "preceding_text", "operator": "regex_contains", "operand": "[\\p{Katakana}\\p{Hiragana}\\p{Han}。、,.!? ・「」:”()ー゚゙]" }
]
},
{
"keys": ["alt+shift+right"],
"command": "key_select_jp",
"args": {"key": "right", "additive": true},
"context": [
{ "key": "preceding_text", "operator": "regex_contains", "operand": "[\\p{Katakana}\\p{Hiragana}\\p{Han}。、,.!? ・「」:”()ー゚゙]" }
]
}
]