Home > Weevil

Weevil

Weevil is a project mainly written in PYTHON and JAVASCRIPT, it's free.

Stupidly simple code browsing for reviewers

================================== On the Care and Feeding of Weevils

Weevil is a minimalistic code navigation tool that permits the searching and viewing of the source code contained in a directory. Weevil is designed around the theory that the primary task of a code reviewer is searching for calls and definitions of terms, and the easiest way to find these definitions is using regular expressions that can scan all files in a tree. By offering this capability in a web browser, we gain the ability to easily maintain multiple tabs, history, and all of the other navigation metaphors that have become a part of daily life in the Internet age.

Weevil is not a code review program intended for mobs of developers, nor is it a complicated workflow religion built around some overgrown development environment. If you like that sort of thing, we recommend "Understand" for C++ or whatever the Mozilla and Google hordes recommend. This tool is intended to be the simplest, fastest thing that satisfies the need of individuals who need to search a foreign source base.


LICENSE

Copyright (C) 2010 Scott W. Dunlop

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2 of the License.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.


INSTALLATION

  1. Copy the entire "weevil" directory somewhere convenient.

  2. Edit the "weevil" script to correspond to the location of your Python interpreter, and the "weevil.py" program.

  3. Optionally, install the "magic" module for Python. (Hides binary files.)


USAGE

To use Weevil, just change your directory to the source code tree you wish to browse, then invoke "weevil." Weevil will then listen on 127.0.0.1:1982 for your web browser. Weevil offers absolutely no security model; it is highly recommended that you refrain from using Weevil on hosts that are shared with other users, as they may also use Weevil for browsing.

Weevil relies on a number of keyboard shortcuts. The most important is the "/" key, which brings up the search dialog. If you have text selected when you press "/", the dialog is bypassed, and the selected text is searched for -- useful when you need to find other mentions of a symbol in the source tree. If you search from a directory listing, you will only search files in that directory and the directories nested below.

The other important key is the "." key, which ascends one level to the enclosing directory.

Previous:Hello-World