Skip to content
Open a jar in an editor easily
Clojure
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src/leiningen
.gitignore
CHANGELOG.md
CONTRIBUTING.md
LICENSE.txt
README.md
project.clj

README.md

Description

Open a jar in an editor easily.

Install

Add [lein-open "0.1.0"] to your ~/.lein/profiles.clj:

{:user {:plugins [[lein-open "0.1.0"]]}}

Usage

Within a lein project, view a jar dependency in an editor:

# View the table jar
$ lein open table

You can also view any jar in your maven repo by specifying it's full name and version:

$ lein open ring/ring-core 1.1.0

Motivation

It's helpful to read dependency code and not have to depend on editor configuration. This is quite similar to bundler open in bundler.

Limitations

This plugin can only open code in a non-console editor e.g. gvim or X-emacs. Attempting to open a console editor will result in the error "emacs: standard input is not a tty\n". To resolve this in mac osx, reinstall emacs with X support: brew install emacs --with-x.

Bugs/Issues

Please report them on github.

Credits

  • sunblaze for a bug fix
  • dcuddeback for editor tweak

TODO

  • Download and open from clojars
  • Download and first clojure project on github

License

See LICENSE.TXT

Something went wrong with that request. Please try again.