OLD | NEW |
(Empty) | |
| 1 # Open My Editor (OME) |
| 2 |
| 3 OME gives you a context menu for opening files in your editor on |
| 4 [Chromium Code Search](https://cs.chromium.org/), |
| 5 [Chromium Code Review](https://codereview.chromium.org/) and |
| 6 [Chromium Build](https://build.chromium.org). |
| 7 |
| 8 For Chromium Code Search, right click on code block and select `Open My Editor`,
|
| 9 it will open the file in your editor at the selected line. |
| 10 |
| 11  |
| 12 |
| 13 For Chromium Code Search, right click on symbol or filename and select |
| 14 `Open My Editor by link` can also open file (maybe with linenumber). |
| 15 |
| 16  |
| 17 |
| 18 For Chromium Code Review, right click on the patchset table and select |
| 19 `Open My Editor`, it will open all the files in the patchset. |
| 20 |
| 21  |
| 22 |
| 23 For Chromium Code Review, you can also right click on a filename and select |
| 24 `Open My Editor by link`. |
| 25 |
| 26  |
| 27 |
| 28 For any build.chromium.org site, select the file path then right click and |
| 29 select `Open My Editor $file`. |
| 30 |
| 31 ## Installation |
| 32 |
| 33 1. Install the [Chrome Extension](https://chrome.google.com/webstore/detail/ome/
ddmghiaepldohkneojcfejekplkakgjg?hl=en-US) |
| 34 2. Install dependencies `pip install bottle sh`, you may need to install |
| 35 `python` and `python-pip` if you don't have `pip`. |
| 36 |
| 37 3. Start `omed.py` |
| 38 |
| 39 ``` |
| 40 python ${CHROMIUM_SRC}/tools/chrome_extensions/open_my_editor/omed.py |
| 41 ``` |
| 42 |
| 43 It's convenient to configure your system to automatically run omed.py at |
| 44 startup so that you don't have to remember to manually start it. |
| 45 |
| 46 4. Create a `myeditor` executable to be used for launching your editor, and add |
| 47 it to your path. See [`myeditor-example/`](https://chromium.googlesource.com/
chromium/src.git/+/master/tools/chrome_extensions/open_my_editor/myeditor-exampl
e/). |
| 48 5. Enjoy. |
| 49 |
| 50 ## How it works |
| 51 |
| 52 In the Chrome Extension, I read the filepath and line number from right click, |
| 53 then make a http call to `omed.py`. `omed.py` calls `myeditor` to open your |
| 54 editor. |
OLD | NEW |