Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xuchunyang/edit-chrome-textarea.el
Edit Chrome Textarea with Emacs
https://github.com/xuchunyang/edit-chrome-textarea.el
Last synced: about 1 month ago
JSON representation
Edit Chrome Textarea with Emacs
- Host: GitHub
- URL: https://github.com/xuchunyang/edit-chrome-textarea.el
- Owner: xuchunyang
- License: gpl-3.0
- Created: 2020-03-19T09:23:08.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-08T06:37:39.000Z (over 4 years ago)
- Last Synced: 2024-10-16T01:45:55.664Z (3 months ago)
- Language: Emacs Lisp
- Homepage:
- Size: 29.3 KB
- Stars: 6
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Edit Chrome Textarea
[![Melpa](https://melpa.org/packages/edit-chrome-textarea-badge.svg)](https://melpa.org/#/edit-chrome-textarea)This is an Emacs package for editing Chrome textarea through [Chrome DevTools
Protocol](https://chromedevtools.github.io/devtools-protocol).## Usage
To use this package, you need to enable Chrome DevTools Protocol by launching
Chrome with `--remote-debugging-port=9222`, if you are on macOS, you can use$ open -a Google\ Chrome --args --remote-debugging-port=9222
1. Select the textarea you want to edit in Chrome
2. Switch to Emacs, type `M-x edit-chrome-textarea` to open a buffer pre-filled
with the textarea's content
3. Hit `C-c C-c` to send text in current buffer back to Chrome or `C-c C-k` to
discard## Alternatives
- the edit-server package, https://github.com/stsquad/emacs_chrome
- the atomic-chrome package, https://github.com/alpha22jp/atomic-chrome
- [ubolonton/pullover: Pull text from other (macOS) apps into Emacs to edit](https://github.com/ubolonton/pullover)### Comparison with atomic-chrome
Pros:
- Don't need to install a browser extension
Cons:
- Users need to enable Chrome DevTools Protocol
- Edit-chrome-textarea can't sync between Chrome and Emacs on-the-fly (it's
possible with Chrome DevTools Protocol but beyond my skills)
- Edit-chrome-textarea can't understand editable div such as CodeMirror used by
GitHub (it's also possible but beyond my skills)## Requires
- Emacs 25.1
- the websocket package, https://github.com/ahyatt/emacs-websocket