Fork me on GitHub
#cursive
<
2015-08-29
>
cfleming07:08:27

@meow: You’re right, the template text is wrong - you can see it in Settings->Editor->Live Templates

rauh13:08:27

Feature suggestion: Scan the doc string of the function for any keyword occurence and suggest/autocomplete them when entering : somewhere when calling the function

cfleming14:08:55

+1 from me too

cfleming14:08:16

@rauh: Can you file an issue for that so it doesn’t get lost?

cfleming14:08:52

Note that Cursive should autocomplete keywords that have been seen anywhere in the project anyway, so most likely you have an example somewhere.

cfleming14:08:11

Although I’ve found that when I first create an example it often takes a while to update the indexes the first time.

rauh14:08:28

Yes the autocomplete is very very useful. I have just noticed it how it magically suggested :hierarchy (which I always misspell)

cfleming14:08:06

It does some nice things with namespaced keywords too

potetm16:08:19

Autocompleting strings in general would be super nice. We do some interop with AWS libs, and they use a lot of maps that are string->string. We decided to use their string->string format when we make our calls (as opposed to mapping keywords to strings in our wrappers), and the only regret I have about it is the fact that I don’t get autocomplete on keys of the map in cursive.

cfleming16:08:09

@potetm: How would Cursive know what the autocompletions of those strings should be?

cfleming16:08:18

From the doc, or something?

potetm16:08:25

Other usages, same as keywords.

potetm16:08:45

We use the same maps over and over pretty much. Just change the right hand side of the map occasionally.

cfleming16:08:49

The problem with that is that there are lots of strings in the project that you might not want that for.

cfleming16:08:17

Perhaps I could index strings which only have a symbol-looking thing inside them.

potetm16:08:37

True story. Maybe just for strings in literals?

potetm16:08:40

Or that, yeah.

cfleming16:08:49

And then only offer completions for strings where that is true.

potetm16:08:58

strings in collection literals, that is

cfleming16:08:34

I think you want the symbol-looking string thing, because then it’ll work for assoc etc

potetm16:08:39

Yeah, that would be perfect. Sounds hard to me, but that’s pretty much what I want.

potetm16:08:46

Good call.

cfleming16:08:47

Issue please simple_smile

cfleming16:08:04

Nice, thanks!

potetm16:08:24

My pleasure. Thank you!