| Index: tools/chrome_extensions/open_my_editor/README.md
|
| diff --git a/tools/chrome_extensions/open_my_editor/README.md b/tools/chrome_extensions/open_my_editor/README.md
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f29585cce2a8a9657bd5b9dcafd84e47373fa83c
|
| --- /dev/null
|
| +++ b/tools/chrome_extensions/open_my_editor/README.md
|
| @@ -0,0 +1,51 @@
|
| +# Open My Editor (OME)
|
| +
|
| +OME is an enhance tools for [Chromium Code Search](https://cs.chromium.org/),
|
| +[Chromium Code Review](https://codereview.chromium.org/) and
|
| +[Chromium Build](https://build.chromium.org).
|
| +
|
| +For Chromium Code Search, right click on code block and select `OME`, it will
|
| +open the file in your editor with line number.
|
| +
|
| +
|
| +
|
| +For chromium Code Search, right click on symbol or filename and select
|
| +`OME by link` can also open file(maybe with linenumber).
|
| +
|
| +
|
| +
|
| +For Chromium Code Review, right click on the patchset table and select `OME`,
|
| +it will open all the files in this patchset.
|
| +
|
| +
|
| +
|
| +For Chromium Code Review, you can also right click on filename and select
|
| +`OME by link`.
|
| +
|
| +
|
| +
|
| +For any *.chromium.org site, select the file path then right click and select
|
| +`OME $file`.
|
| +
|
| +## Installation
|
| +
|
| +1. Install the Chrome Extension `TODO will add link`
|
| +2. Install dependencies `pip3 install bottle sh`, you may need to install
|
| + `python3` and `python3-pip` if you don't have `pip3`.
|
| +
|
| +3. Start `omed.py`
|
| +
|
| + ```
|
| + git clone sso://user/chaopeng/ome ~/ome
|
| + python3 ~/ome/omed.py # you should set it on startup
|
| + ```
|
| +
|
| +4. Create your `myeditor` as your editor's wrapper (see `myeditor-example/`) and
|
| + put it into path.
|
| +5. Enjoy.
|
| +
|
| +## How it works
|
| +
|
| +In the Chrome Extension, I read the filepath and line number from right click,
|
| +then make a http call to `omed.py`. `omed.py` call `myeditor` to open your
|
| +editor.
|
|
|