Skip to content

Commit 22c5b1a

Browse files
MijailMijail
Mijail
authored and
Mijail
committed
Added sublime-keymap files so that the user won't have to manually bind the F2 key to intelli_docs. Also edited the preference menu and README.md to reflect these changes
1 parent 4c92d03 commit 22c5b1a

5 files changed

+62
-1
lines changed

Diff for: Default (Linux).sublime-keymap

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[
2+
{ "keys": ["f2"], "command": "intelli_docs" }
3+
]

Diff for: Default (OSX).sublime-keymap

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[
2+
{ "keys": ["f2"], "command": "intelli_docs" }
3+
]

Diff for: Default (Windows).sublime-keymap

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[
2+
{ "keys": ["f2"], "command": "intelli_docs" }
3+
]

Diff for: Main.sublime-menu

+49
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,55 @@
1919
"args": {"file": "${packages}/User/IntelliDocs.sublime-settings"},
2020
"caption": "Settings – User"
2121
},
22+
{ "caption": "-" },
23+
{
24+
"command": "open_file",
25+
"args": {
26+
"file": "${packages}/IntelliDocs/Default (OSX).sublime-keymap",
27+
"platform": "OSX"
28+
},
29+
"caption": "Key Bindings – Default"
30+
},
31+
{
32+
"command": "open_file",
33+
"args": {
34+
"file": "${packages}/IntelliDocs/Default (Linux).sublime-keymap",
35+
"platform": "Linux"
36+
},
37+
"caption": "Key Bindings – Default"
38+
},
39+
{
40+
"command": "open_file",
41+
"args": {
42+
"file": "${packages}/IntelliDocs/Default (Windows).sublime-keymap",
43+
"platform": "Windows"
44+
},
45+
"caption": "Key Bindings – Default"
46+
},
47+
{
48+
"command": "open_file",
49+
"args": {
50+
"file": "${packages}/User/Default (OSX).sublime-keymap",
51+
"platform": "OSX"
52+
},
53+
"caption": "Key Bindings – User"
54+
},
55+
{
56+
"command": "open_file",
57+
"args": {
58+
"file": "${packages}/User/Default (Linux).sublime-keymap",
59+
"platform": "Linux"
60+
},
61+
"caption": "Key Bindings – User"
62+
},
63+
{
64+
"command": "open_file",
65+
"args": {
66+
"file": "${packages}/User/Default (Windows).sublime-keymap",
67+
"platform": "Windows"
68+
},
69+
"caption": "Key Bindings – User"
70+
}
2271
]
2372
} ]
2473
} ]

Diff for: README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ Currently supported languages:
4848
## Installation ##
4949

5050
- Download the [zip-ball](https://github.com/shortcutme/Sublime-IntelliDocs/archive/master.zip) and unpack to `sublime\data\packages` OR via [packageControl](https://sublime.wbond.net/)
51-
- Add `{ "keys": ["f2"], "command": "intelli_docs" }` to `Preferences``Key Bindings – User`
51+
52+
## Usage ##
53+
54+
- Set your cursor over a function or object you want to look up and press F2 to see relevant documentation
5255

5356

5457
## Thanks to ##

0 commit comments

Comments
 (0)