Skip to content
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

Autocomplete ::keywords and ::alias/keywords #224

Closed
danskarda opened this issue Jul 2, 2015 · 6 comments
Closed

Autocomplete ::keywords and ::alias/keywords #224

danskarda opened this issue Jul 2, 2015 · 6 comments

Comments

@danskarda
Copy link
Contributor

Cider autocomples both keywords and namespaced keywords. For example type foo.bar/ba and it will autocomplete to foo.bar/baz.

This feature is works great and even better, it works in both CLJ and CLJS (yeah!). It helps a lot to reduce number of typos during development. Thank you!

What I would like to see is small improvement - to extend autocomplete to work with double colon keywords:

  1. I am in namespace foo.bar, I write ::ba and it will autocomplete to ::baz (because there exists a keyword :foo.bar/baz)
  2. I made a namespace alias - for example (require '[foo.bar :as f]). I write ::f/b and it will autocomplete to ::f/baz, because there exists a keyword :foo.bar/baz.

Where this feature should be implemented? In cider-nrepl or in libraries for autocompletion?

@bbatsov
Copy link
Member

bbatsov commented Jul 2, 2015

Where this feature should be implemented? In cider-nrepl or in libraries for autocompletion?

The libraries. //cc @cichli @alexander-yakushev

@alexander-yakushev
Copy link
Member

@bbatsov
Copy link
Member

bbatsov commented Jul 18, 2015

@alexander-yakushev Now, that you're back maybe you can take a look in this as well? :-)

P.S. Yeah, yeah - I know I'm an evil exploiter. :-)

@alexander-yakushev
Copy link
Member

You won't trick me twice :D. I have plenty of other work to do. Maybe next time.

alexander-yakushev added a commit to alexander-yakushev/compliment that referenced this issue Jul 18, 2015
@alexander-yakushev
Copy link
Member

Damn you, @bbatsov! shakes fist at sky

@danskarda, now implemented, you should be able to use it in the next version of CIDER.

@bbatsov
Copy link
Member

bbatsov commented Jul 18, 2015

Evil me!

Thanks, @alexander-yakushev! I'll bump the dep, so that @danskarda can play with the new functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants