MicahCarrick / gedit-source-code-browser

A source code class and function browser plugin for Gedit 3.
98 stars 49 forks source link

Gedit Source Code Browser

No Longer Maintained

A source code class and function browser plugin for Gedit 3.

This plugin will add a new tab to the side pane in the Gedit text editor which shows symbols (functions, classes, variables, etc.) for the active document. Clicking a symbol in the list wil jump to the line on which that symbol is defined.

See the ctags supported languages for a list of the 41 programming languages supported by this plugin.

Requirements

This plugins is for Gedit 3 and is not compatible with Gedit 2.x.

The Gedit Source Code Browser plugin uses Exuberant Ctags to parse symbols out of source code. Exuberant Ctags is avaialable in the software repository for many distributions. To make sure you have ctags correctly installed, issue the following command:

ctags --version

Make sure that you see Exuberant Ctags in the version output.

Installation

  1. Download this repository by clicking the Downloads button at the top of the github page or issue the following command in a terminal:

    git clone git://github.com/MicahCarrick/gedit-source-code-browser.git

  2. Copy the file sourcecodebrowser.plugin and the folder sourcecodebrowser to ~/.local/share/gedit/plugins/.

  3. Restart Gedit.

  4. Activate the plugin in Gedit by choosing 'Edit > Preferences', the selecting the 'Plugins' tab, and checking the box next to 'Soucre Code Browser'.

  5. (Optional) If you want to enable the configuration dialog you need to compile the settings schema. You must do this as root.

    cd /home/<YOUR USER NAME>/.local/share/gedit/plugins/sourcecodebrowser/data/

    cp org.gnome.gedit.plugins.sourcecodebrowser.gschema.xml /usr/share/glib-2.0/schemas/

    glib-compile-schemas /usr/share/glib-2.0/schemas/

Screenshots

Python code in Source Code Browser

Known Issues

License

Copyright (c) 2011, Micah Carrick All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.