.. contents::
These are Pate plugins for Kate <http://kate-editor.org/>
_ editor. Plugins to make coding easier in Python <http://python.org/>
, Django <https://docs.djangoproject.com>
and JavaScript
.. note::
This repository is unmaintained, because these plugins have been added to the official repository: Python utils <https://projects.kde.org/projects/kde/applications/kate/repository/revisions/master/show/addons/kate/pate/src/plugins/python_utils>
, Javascript utils <https://projects.kde.org/projects/kde/applications/kate/repository/revisions/master/show/addons/kate/pate/src/plugins/js_utils>
, Django utils <https://projects.kde.org/projects/kde/applications/kate/repository/revisions/master/show/addons/kate/pate/src/plugins/django_utils>
_ and XML pretty <https://projects.kde.org/projects/kde/applications/kate/repository/revisions/master/entry/addons/kate/pate/src/plugins/xml_pretty.py>
. The generic functions and generic classes have been added to the libkatepate <https://projects.kde.org/projects/kde/applications/kate/repository/revisions/master/show/addons/kate/pate/src/plugins/libkatepate>
Kate <http://kate-editor.org/>
_pysmell <http://pypi.python.org/pypi/pysmell>
_pyplete <http://pypi.python.org/pypi/pyplete>
_pyflakes <http://pypi.python.org/pypi/pyflakes>
_simplejson <http://pypi.python.org/pypi/simplejson>
_pyjslint <http://pypi.python.org/pypi/pyjslint>
_ (it requires NodeJS <http://nodejs.org/>
_, read the pyjslint readme)Install Kate <http://kate-editor.org/get-it/>
_ from sources
Install optional requirements:
::
# Kate plugins has been tested with these versions but is very probably that works with later versions
pip install pysmell==0.7.3 pyplete==0.0.2 pep8==0.6.1 pyflakes==0.5.0 pyjslint==0.3.3 simplejson==2.6.1
::
pip install Kate-plugins
ln -s /PATH/OF/THE/EGG/kate_plugins/ $(kde4-config --localprefix)/share/apps/kate/pate
Or
::
cd ~/build
git clone https://github.com/goinnn/Kate-plugins
ln -s ~/build/Kate-plugins/kate_plugins/ $(kde4-config --localprefix)/share/apps/kate/pate
You should now see three additional menu items: "Python", "Javascript", and "XML". You can change the menu configuration of easy way change the settings <https://github.com/goinnn/Kate-plugins/blob/master/kate_plugins/kate_settings_plugins.py>
_
pysmell <http://pypi.python.org/pypi/pysmell>
_::
def path(session, doc, view): if session == 'session1' return ['/PATH/OF/THE/EGG1/name1.egg', '/PATH/OF/THE/PACKAGE1/', ... '/PATH/OF/THE/EGGN/namen.egg'] elif session == 'session2': return ['/PATH/OF/THE/EGG2/name2.egg', '/PATH/OF/THE/PACKAGE2/', ... '/PATH/OF/THE/EGGN/namem.egg'] else: return ['/PATH/OF/THE/EGG2/name3.egg', '/PATH/OF/THE/PACKAGE3/', ... '/PATH/OF/THE/EGGN/namel.egg']
pep8 <http://pypi.python.org/pypi/pep8>
_ so it must be present in the systempyflakes <http://pypi.python.org/pypi/pyflakes>
_ so it must be present in the systemurls.py <http://docs.djangoproject.com/en/dev/topics/http/urls/#example>
_pyjslint <http://pypi.python.org/pypi/pyjslint>
_ so it must be present in the system (and working!)