Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(301)

Side by Side Diff: tools/chrome_extensions/open_my_editor/README.md

Issue 2720793005: Add Open my editor (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 # Open My Editor (OME)
2
3 OME is an enhance tools for [Chromium Code Search](https://cs.chromium.org/),
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
8 open the file in your editor with line number.
9
10 ![Chromium Code Search](./images/cs.png)
11
12 For chromium Code Search, right click on symbol or filename and select
13 `OME by link` can also open file(maybe with linenumber).
14
15 ![Chromium Code Search by link](./images/open-by-link-cs.png)
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.
19
20 ![Chromium Code Review](./images/cr.png)
21
22 For Chromium Code Review, you can also right click on filename and select
23 `OME by link`.
24
25 ![Chromium Code Review by link](./images/open-by-link-cr.png)
26
27 For any *.chromium.org site, select the file path then right click and select
28 `OME $file`.
29
30 ## Installation
31
32 1. Install the Chrome Extension `TODO will add link`
33 2. Install dependencies `pip3 install bottle sh`, you may need to install
34 `python3` and `python3-pip` if you don't have `pip3`.
35
36 3. Start `omed.py`
37
38 ```
39 git clone sso://user/chaopeng/ome ~/ome
40 python3 ~/ome/omed.py # you should set it on startup
41 ```
42
43 4. Create your `myeditor` as your editor's wrapper (see `myeditor-example/`) and
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
51 editor.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698