senny / emacs-eclim

This project brings some of the great eclipse features to emacs developers. It is based on the eclim project, which provides eclipse features for vim.
http://www.emacswiki.org/emacs/EmacsEclim
587 stars 102 forks source link

Suggestion: Integration with Projectile? #255

Open ProjectMoon opened 9 years ago

ProjectMoon commented 9 years ago

It would be cool if emacs-eclim had integration with projectile. You can define completion functions for projectile to get it to list files. A workspace-scope search would work fine for this.

Eclim itself does have the ability to search files, although it only seems to list 100 at a time. I was playing around with it yesterday:

eclim -command locate_file -i -p '.*\.java' -s 'workspace' | jq -r '.[] | .path'

Using the jq command-line JSON parser returns a list of files that projectile can read.

nloyola commented 9 years ago

Projectile already works with git, mercurial, darcs and bazaar repositories. How would your suggestion work if the project you are working with is already in one of these types of repositories?

ProjectMoon commented 9 years ago

Probably just override it, instead of using the repo. The specific use case I have for this is one workspace with projects spread across directories that are not in the same hierarchy. Yes, it's a bit contrived...

kleewho commented 9 years ago

I have similar situation. Several git repos in one workspace