OLD | NEW |
---|---|
(Empty) | |
1 # Open My Editor (OME) | |
2 | |
3 OME is an enhance tools for [Chromium Code Search](https://cs.chromium.org/), | |
watk
2017/03/02 23:13:49
"OME gives you a context menu for opening files in
| |
4 [Chromium Code Review](https://codereview.chromium.org/) and | |
5 [Chromium Build](https://build.chromium.org). | |
6 | |
7 For Chromium Code Search, right click on code block and select `OME`, it will | |
watk
2017/03/02 23:13:49
"on a code block"
OME -> "Open my editor"
| |
8 open the file in your editor with line number. | |
watk
2017/03/02 23:13:49
"at the selected line."
| |
9 | |
10  | |
11 | |
12 For chromium Code Search, right click on symbol or filename and select | |
watk
2017/03/02 23:13:48
capitalize Chromium
| |
13 `OME by link` can also open file(maybe with linenumber). | |
watk
2017/03/02 23:13:48
Space before open paren.
| |
14 | |
15  | |
16 | |
17 For Chromium Code Review, right click on the patchset table and select `OME`, | |
18 it will open all the files in this patchset. | |
watk
2017/03/02 23:13:48
"this patchset" -> "the patchset"
| |
19 | |
20  | |
21 | |
22 For Chromium Code Review, you can also right click on filename and select | |
watk
2017/03/02 23:13:49
"on a filename"
| |
23 `OME by link`. | |
24 | |
25  | |
26 | |
27 For any *.chromium.org site, select the file path then right click and select | |
watk
2017/03/02 23:13:49
Remove double space before *.chromium.org
| |
28 `OME $file`. | |
29 | |
30 ## Installation | |
31 | |
32 1. Install the Chrome Extension `TODO will add link` | |
watk
2017/03/02 23:13:48
Finish todo now?
| |
33 2. Install dependencies `pip install bottle sh`, you may need to install | |
34 `python` and `python-pip` if you don't have `pip`. | |
35 | |
36 3. Start `omed.py` | |
37 | |
38 ``` | |
39 git clone sso://user/chaopeng/ome ~/ome | |
watk
2017/03/02 23:13:49
Change this to the Chrome checkout version.
| |
40 python ~/ome/omed.py # you should set it on startup | |
watk
2017/03/02 23:13:49
I would move this comment out of the code block in
| |
41 ``` | |
42 | |
43 4. Create your `myeditor` as your editor's wrapper (see `myeditor-example/`) and | |
watk
2017/03/02 23:13:49
"Create a `myeditor` executable to be used for lau
| |
44 put it into path. | |
45 5. Enjoy. | |
46 | |
47 ## How it works | |
48 | |
49 In the Chrome Extension, I read the filepath and line number from right click, | |
50 then make a http call to `omed.py`. `omed.py` call `myeditor` to open your | |
watk
2017/03/02 23:13:48
"`omed.py` calls `myeditor`"
| |
51 editor. | |
OLD | NEW |