New issue

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

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

Already on GitHub? Sign in to your account

clojure-jump-to-test should use the same dir/name structure as Lein. #101

Merged
merged 1 commit into from Nov 3, 2012
Jump to file or symbol
Failed to load files and symbols.
+2 −2
Diff settings

Always

Just for now

clojure-jump-to-test should use the same dir/name structure as Lein.

Eg. project/test/namespace/test/core
  • Loading branch information...
bonega committed Oct 27, 2012
commit e7533129e57f233a8cd4710693d99b042c745ddf
View
@@ -1201,9 +1201,9 @@ The arguments are dir, hostname, and port. The return value should be an `alist
(segments (split-string namespace "\\."))
(before (subseq segments 0 clojure-test-ns-segment-position))
(after (subseq segments clojure-test-ns-segment-position))
(newfile (format "%s_test" (car after)))
(newfile (car after))
(test-segments (append before (list newfile))))
(mapconcat 'identity test-segments "/")))
(mapconcat 'identity test-segments "/test/")))
(defun clojure-jump-to-test ()
"Jump from implementation file to test."
ProTip! Use n and p to navigate between commits in a pull request.