On Sep 10, 8:36 am, "Edward K. Ream" <[email protected]> wrote:

> Later posts will discuss the following:
>
> - Setting up to use ctags/codewise completion.

This section describes how to use Ville's codewise.py module in leo
\external folder.

**Note**: I've recently made a few changes to codewise.py. The
following discussion reflects the following changes:

- Changed docstring.

- The setup command does not crash if the ~/.ctags file already exist.

- The setup command does not call the init command, and thus does
  not delete ~/.codewise.db.

- Revised various print statements so they look better with Python
3.x.

**Important**: Leo's core contains all necessary autocompletion
code. In particular, enable *neither* the ctagscompleter.py
plugin *nor* the codewisecompleter.py plugin. I plan to remove
these plugins immediately, unless someone gives a good reason not
to do so.

**Important**: I've taken care to with the following instructions, but
there could be oversights or misunderstandings.  I would appreciate
any
corrections or additions.

Creating codewise/ctags data
============================

1. Make sure you have exuberant ctags (not just regular ctags)
   installed. It's an Ubuntu package, so its easy to install if
   you're using Ubuntu.

2. Execute the following commands from Leo's external/codewise.py
   module. **Note**: On Windows, you can use codewise.bat to
   execute these commands. For example::

        python <<path to leo>>\leo\external\codewise.py %*

A. [Optional] Create a custom ~/.ctags file containing default
    configuration settings for ctags::

        codewise setup

    This command will leave the ~/.ctags file unchanged if it
    exists.  Othewise, the ``codewise setup`` command will
    create a ~/.ctags file containing the following defaults::

        --exclude=*.html
        --exclude=*.css

    See: http://ctags.sourceforge.net/ctags.html#FILES for more
    details about the .ctags file.

B. [Optional] Delete the existing ctags database in
   ~/.codewise.db::

        codewise init

C. Add ctags data to the existing ctags database::

        codewise parse <path to directory>

   You can add data from multiple sources by running
   the ``codewise parse`` command on multiple directories.

To repeat, all comments and corrections are welcome.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to