GithubHelp home page GithubHelp logo

sanel / lein-codeindex Goto Github PK

View Code? Open in Web Editor NEW
19.0 2.0 1.0 21 KB

Index code using etags, ctags or gtags.

License: Eclipse Public License 1.0

Clojure 90.20% Makefile 9.80%
emacs-tags vim emacs gtags global clojure ctags etags

lein-codeindex's Introduction

lein-codeindex

Index your Clojure and Java project code with all dependencies using etags, ctags or gtags.

In short, this Leiningen plugin allows you to easily index the code and find any function, variable or namespace definition used through the code from editors like Emacs, Vim, Sublime Text and many more.

Prerequisites

Make sure you have installed etags (comes with Emacs), ctags (distributed usually with Vim) or gtags (comes with GNU Global).

Usage

To enable lein-codeindex for your project, put

latest-version

into the :plugins vector of your project.clj. If you'd like to enable it globally for every project, put it in $HOME/.lein/profiles.clj.

To run it, use:

$ lein codeindex

This will generate Emacs compatible tags using etags.

If you'd like to use ctags and generate Vi/Vim compatible tags, use:

$ lein codeindex --vim

or

$ lein codeindex --ctags --vim

To generate Emacs tags using ctags, use:

$ lein codeindex --ctags

To see other options, run:

$ lein help codeindex

License

Copyright © 2018 Sanel Zukan

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

lein-codeindex's People

Contributors

bfontaine avatar sanel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

miner

lein-codeindex's Issues

Support for custom ctags/etags path

Currently lein-codeindex is expecting ctags and etags to be present in $PATH. Add option (via environment variable) to specify full path to tags binary.

Remove unnecessary files from extracted dependencies folder

Right now, folder with external dependencies (.lein-codeindex in project root) will contain anything what is stored inside .jar files. Some of these files aren't necessary for indexing, like .class files, and they are just taking space. Remove them.

Auto-update support

Right now, lein-codeindex has to be run manually to update tags index. Add command line option to monitor for file changes and update index automatically.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.