https://github.com/cldwalker/lein-open
Open a jar in an editor easily
https://github.com/cldwalker/lein-open
Last synced: about 1 year ago
JSON representation
Open a jar in an editor easily
- Host: GitHub
- URL: https://github.com/cldwalker/lein-open
- Owner: cldwalker
- License: mit
- Created: 2013-02-03T19:53:14.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2014-02-08T19:12:32.000Z (over 12 years ago)
- Last Synced: 2025-04-06T18:53:02.548Z (about 1 year ago)
- Language: Clojure
- Homepage:
- Size: 155 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
Awesome Lists containing this project
README
## 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:
```sh
# 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:
```sh
$ 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](http://gembundler.com/).
## 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](http://github.com/cldwalker/lein-open/issues).
## 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