-
-
Notifications
You must be signed in to change notification settings - Fork 645
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
Create jump-to-resource function #22
Comments
I like this idea, I've already written some code to try and determine if a string's a file path or a classpath resource for the 'info' op. This is used to provide file-and-line information either within jars or on the FS. https://github.com/gtrak/cider-nrepl/blob/master/src/cider/nrepl/middleware/info.clj#L48 I could pull it out into an nrepl op, what do you think a good name would be? My vote's on 'resource'. I'm not sure how to retrofit the elisp to handle this case, but I'll be thinking about it. M-. seems natural. |
Yeah, a |
@jeffvalk What are your thoughts about this? |
I like the idea. Regarding |
Yeah, I think we should have separate functions. Perhaps we should rename |
Nope, calling |
The idea here is that if you have a resource being loaded off the classpath (say by
clojure.java.io/resource
, but it could also be by something like enlive'sdeftemplate
) that you should be able to jump to it with a single keystroke.It's possible that the existing
M-.
functionality could be enhanced to do this as long as there's no ambiguity. Perhaps ifM-.
is invoked when the point is on a string, it could be interpreted as a classpath lookup? We'd also want it to work on namespaces I think, which would be on symbols, but maybe that's separate.The text was updated successfully, but these errors were encountered: