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

Unified Diff: tools/chrome_extensions/open_my_editor/README.md

Issue 2720793005: Add Open my editor (Closed)
Patch Set: Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
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.
+
+![Chromium Code Search](./images/cs.png)
+
+For chromium Code Search, right click on symbol or filename and select
+`OME by link` can also open file(maybe with linenumber).
+
+![Chromium Code Search by link](./images/open-by-link-cs.png)
+
+For Chromium Code Review, right click on the patchset table and select `OME`,
+it will open all the files in this patchset.
+
+![Chromium Code Review](./images/cr.png)
+
+For Chromium Code Review, you can also right click on filename and select
+`OME by link`.
+
+![Chromium Code Review by link](./images/open-by-link-cr.png)
+
+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.

Powered by Google App Engine
This is Rietveld 408576698