| OLD | NEW |
| (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  |
| 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  |
| 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  |
| 21 |
| 22 For Chromium Code Review, you can also right click on filename and select |
| 23 `OME by link`. |
| 24 |
| 25  |
| 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. |
| OLD | NEW |