-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Namespace alias support for spec-list
and spec-form
#42
Conversation
Sorry for the slow turnaround here! (I was away from a computer for quite a while) Can you rebase on The changes look good to me, but before merging this I wanted to ping @alexander-yakushev about this. It might make sense to have similar behavior for keyword in compliment for consistency's sake. |
@bbatsov I honestly didn't quite get what is this all about (I don't use spec much, let alone in CIDER). Could you please describe what sort of behavior would you expect from Compliment regarding this? |
I think the idea is provide completion candidates with non-expanded keywords as well as those with expanded ones, when doing something ::some-keyword and :some.ns/keyword, or ::ns-alias/keyword and :real.ns/keyword. Frankly, I rarely use namespaced keywords, so I'm not 100% certain how useful this would be, but it kind of makes sense to me. |
Yes, the point is to be able to lookup keywords with ns aliases. I use them alot, so that I will have a require like
And later use keywords like |
Well, apart from my small remark about spec2, I'm ready to merge this. |
I'll touch this up this evening and make sure the tests still pass. |
Ah. Compliment already does that, if I remember correctly.
…On Wed, Mar 20, 2019, 09:55 Tatu Tarvainen ***@***.***> wrote:
I'll touch this up this evening and make sure the tests still pass.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#42 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAcl_a5r9Thkm3Z9YVCQ_RhNHSas2egFks5vYemFgaJpZM4aTcsH>
.
|
I think this should be ready for merge. |
Thanks for working on this! |
Added support for resolving namespace aliased keywords for the current namespace.
Changes:
spec-list
will return "::some-ns-alias/some-keyword" completions in addition to the fully qualified names for specs in namespaces that have an alias in the given ns.spec-list
will return "::some-keyword" completions in addition to the fully qualified names for specs in the given ns.spec-form
will expand both ns aliases before resolving the specI will add a separate PR for CIDER to add
(cider-current-ns)
forspec-list
andspec-form
requests incider-client.el
if this is accepted.