Skip to main content

An edit server compatible with TextAid and "Edit with Emacs" chrome extensions"

Project description

https://travis-ci.org/coddingtonbear/chrome-edit-server.svg?branch=master https://badge.fury.io/py/chrome-edit-server.png https://pypip.in/d/chrome-edit-server/badge.png

This application is an “edit server” supporting one of the many Chrome plugins (including TextAid and Edit with Emacs) allowing you to edit text area fields displayed in your browser using your editor-of-choice.

Getting Started

First, install this package from PyPI:

pip install chrome-edit-server

Second, run the server by running:

chrome-edit-server

Then, install either the TextAid or Edit with Emacs Chrome extensions. Follow the extension’s instructions regarding how to open up an editor window.

Configuration

By default, the edit server will run on port 9292, and will use GVim (gvim -f) as your editor, but you can configure each of those parameters by either setting environment variables or providing arguments from the command line.

To see a brief overview of what settings can be provided from the command-line run:

chrome-edit-server --help

Environment Variables

  • EDIT_SERVER_EDITOR: Sets the editor command to run when editing a file. Defaults to gvim -f. Note that you will want this application to return only once your file edits have been completed! Example settings include:

    • OSX:

      • MacVim: open -aW MacVim

    • Linux:

      • GVim: gvim -f (default)

  • EDIT_SERVER_PORT: Set the port that the edit server will run on. Defaults to 9292.

  • EDIT_SERVER_DELETE_DELAY: Sets the amount of time (in minutes) to wait before deleting created temporary files. Defaults to 5.

  • EDIT_SERVER_TEMP: Sets the path to where temporary files should be stored. Defaults to your system’s temporary files directory.

  • EDIT_SERVER_INCREMENTAL: Sets whether incremental editing will be enabled; your chrome editor plugin must support this feature for it to have an effect. By default this is turned on.

  • EDIT_SERVER_USE_FILTERS: Sets whether filters are enabled. By default this is turned on.

Contributors

This is an unofficial (but endorsed) fork of @gfxmonk’s edit-server repository that follows common Python style conventions, and is packaged for distribution on PyPI.

If you have any thanks to give for this application’s existence – you owe them to that gentleman.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chrome-edit-server-0.3.4.tar.gz (7.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page