chrome-edit-server-1.0a1
توضیحات
An edit server compatible with TextAid and "Edit with Emacs" chrome extensions"
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | chrome-edit-server-1.0a1 |
| نام | chrome-edit-server |
| نسخه کتابخانه | 1.0a1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Tim Cuthbertson, Adam Coddington |
| ایمیل نویسنده | me@adamcoddington.net |
| آدرس صفحه اصلی | https://github.com/coddingtonbear/chrome-edit-server |
| آدرس اینترنتی | https://pypi.org/project/chrome-edit-server/ |
| مجوز | UNKNOWN |
Chrome Edit Server
==================
.. image:: https://travis-ci.org/coddingtonbear/chrome-edit-server.svg?branch=master
:target: https://travis-ci.org/coddingtonbear/chrome-edit-server
.. image:: https://badge.fury.io/py/chrome-edit-server.png
:target: http://badge.fury.io/py/chrome-edit-server
.. image:: https://pypip.in/d/chrome-edit-server/badge.png
:target: https://pypi.python.org/pypi/chrome-edit-server
This application is an "edit server" supporting one of the many Chrome plugins
(including `TextAid <https://chrome.google.com/webstore/detail/textaid/ppoadiihggafnhokfkpphojggcdigllp>`_
and `Edit with Emacs <https://chrome.google.com/webstore/detail/edit-with-emacs/ljobjlafonikaiipfkggjbhkghgicgoh>`_)
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 <https://chrome.google.com/webstore/detail/textaid/ppoadiihggafnhokfkpphojggcdigllp>`_
or `Edit with Emacs <https://chrome.google.com/webstore/detail/edit-with-emacs/ljobjlafonikaiipfkggjbhkghgicgoh>`_
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 <https://github.com/gfxmonk/edit-server/pull/5#issuecomment-53051767>`_) fork of
`@gfxmonk <https://github.com/gfxmonk>`_'s `edit-server <https://github.com/gfxmonk/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.
نحوه نصب
نصب پکیج whl chrome-edit-server-1.0a1:
pip install chrome-edit-server-1.0a1.whl
نصب پکیج tar.gz chrome-edit-server-1.0a1:
pip install chrome-edit-server-1.0a1.tar.gz