Skip to content

Commit e2885a3

Browse files
committed
initial transfer to github
1 parent e44ed4e commit e2885a3

File tree

3 files changed

+106
-0
lines changed

3 files changed

+106
-0
lines changed

LICENSE.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright (c) 2012 James Deng
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Main.sublime-menu

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
[
2+
{
3+
"caption": "Tools",
4+
"id": "tools",
5+
"children":
6+
[
7+
{
8+
"caption": "GoToDoc",
9+
"id": "go-to-doc",
10+
"children":
11+
[
12+
{
13+
"caption": "Exact",
14+
"command": "go_to_doc_exact"
15+
},
16+
{
17+
"caption": "Lucky",
18+
"command": "go_to_doc_lucky"
19+
}
20+
]
21+
}
22+
]
23+
24+
},
25+
{
26+
"caption": "Preferences",
27+
"id": "preferences",
28+
"children":
29+
[
30+
{
31+
"caption": "Package Settings",
32+
"id": "package-settings",
33+
"children":
34+
[
35+
{
36+
"caption": "GoToDoc",
37+
"id":"go-to-doc",
38+
"children":
39+
[
40+
{
41+
"caption": "Key Bindings – Default",
42+
"platform": "Linux",
43+
"command": "open_file",
44+
"args": {
45+
"file": "${packages}/GoToDoc/Default (Linux).sublime-keymap"
46+
}
47+
},
48+
{
49+
"caption": "Key Bindings – Default",
50+
"platform": "Windows",
51+
"command": "open_file",
52+
"args": {
53+
"file": "${packages}/GoToDoc/Default (Windows).sublime-keymap"
54+
}
55+
},
56+
{
57+
"caption": "Key Bindings – Default",
58+
"platform": "OSX",
59+
"command": "open_file",
60+
"args": {
61+
"file": "${packages}/GoToDoc/Default (OSX).sublime-keymap"
62+
}
63+
}
64+
]
65+
}
66+
]
67+
}
68+
]
69+
}
70+
]

README.md

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# GoToDoc
2+
GoToDoc is a Sublime Text 2 plugin to quickly open Go programming language document in your browser
3+
base on the selected packages, functions, types and keywords in Go source file.
4+
5+
6+
## Usage
7+
GoToDoc supports 2 modes to open the corresponding document in your web browser
8+
9+
### Exact Mode: (Windows/Linux: Ctrl+Alt+E, OSX: Super+Ctrl+E)
10+
Go to the exact package document at http://golang.org/pkg.
11+
Package alias is supported, it's automatically looked up in the imported package list.
12+
13+
### Lucky Mode: (Windows/Linux: Ctrl+Alt+L, OSX: Super+Ctrl+L)
14+
Google search on golang.org and go to the first result using "I'm Feeling Lucky".
15+
16+
17+
## Installation
18+
You can install from github.com, or using Sublime Text 2 Package Control
19+
20+
### From Github
21+
$ cd ${ST2_Package_Folder}
22+
$ git clone git://github.com/jtdeng/GoToDoc.git GoToDoc
23+
24+
### Using Package Control
25+
TODO
26+
27+
28+
## Settings
29+
You can customize the key bindings of GoToDoc by going to the menu `Preferences -> Package Settings -> GoToDoc -> Key Bindings - Default`.

0 commit comments

Comments
 (0)