-
Notifications
You must be signed in to change notification settings - Fork 38
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
Resource completion #24
Comments
Can you give more details what should that be? Should it complete paths inside strings or what exactly? |
Yeah, my idea was it should complete paths in strings. Imagine:
You'd get all the resource names starting with prefix. |
Should it complete one directory at a time (like hippie-expand does), or the candidates should be full resource names right from the beginning? |
Hmm, I was thinking about full resource paths (as it's easier to reuse those in ido). |
Wait, is there even a way to get all resources in a classloader? The answers I found so far are very contrived. |
No idea. Haven't really research the matter - I just assumed something like this should be possible. |
Another concern is do we want to show all resources (e.g. in jars), or just the ones that are actually in the current project. |
It it. There seem to be a lot of resources in Java itself, don't know how useful are those. |
Ok, let's just show the ones in the project. |
One more thing: by default AC does not initiate completion if it is started inside a string. What about company-mode? |
company-mode does completions inside strings out of the box. On 20 April 2015 at 12:39, Alexander Yakushev [email protected]
Best Regards, |
Done, please see my comment in clojure-emacs/cider#1062 |
This doesn't look totally right. I can find a file called |
@alexander-yakushev ping |
Still they are considered as project resources by the way they look on the classpath. We can remove them two specifically, but who cares? Besides it is easier to test this functionality when you have them. Otherwise Compliment has no other resources. |
OK On 25 April 2015 at 18:13, Alexander Yakushev [email protected]
Best Regards, |
It'd be nice if there was a source for resource completions. Those completions should be contextual - e.g. triggered only in functions known to accept resource paths.
We can also reuse this functionality to implement
find resource
functionality in CIDER.Related ticket clojure-emacs/cider#1062
The text was updated successfully, but these errors were encountered: