Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Identify workdir by searching for project/build files/dirs in the filepath upwards #4

Closed
muhqu opened this issue Jan 20, 2016 · 1 comment

Comments

@muhqu
Copy link
Owner

muhqu commented Jan 20, 2016

When working in projects that have deeply nested directory structures (e.g. Java/Scala projects) it would be great to identify the project's working directory by searching for common top-level project files...

  • Given open file is /Users/leppich/workspace/ProjectA/src/main/java/com/example/Example.java
  • And file exists /Users/leppich/workspace/ProjectA/pom.xml
  • When DTerm gets invoked
  • Then working directory should be /Users/leppich/workspace/ProjectA/

The working directory could be discovered by searching the filepath upwards for entries like:
Makefile, Rakefile, build.xml, pom.xml, .git, .svn, .hg etc..

@muhqu
Copy link
Owner Author

muhqu commented Jan 25, 2016

Implemented with 1.7.73-4a3bc5c

@muhqu muhqu closed this as completed Jan 25, 2016
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant