ccw-ide / ccw

Counterclockwise is an Eclipse plugin helping developers write Clojure code
https://github.com/laurentpetit/ccw/wiki/GoogleCodeHome
Eclipse Public License 1.0
219 stars 50 forks source link

Second round on code completion #85

Open laurentpetit opened 9 years ago

laurentpetit commented 9 years ago

Original issue 44 created by laurentpetit on 2009-12-09T15:37:14.000Z:

Make it more performant (no more hangups) and in line with enclojure.

laurentpetit commented 9 years ago

Comment #1 originally posted by laurentpetit on 2010-03-22T12:48:01.000Z:

Please consider sorting of matching results: put the names from current ns first, those from java - later.

laurentpetit commented 9 years ago

Comment #2 originally posted by laurentpetit on 2011-03-02T21:08:15.000Z:

Notes from cgrand (french) on java completion: Sinon pour limiter le scope de la completion.

laurentpetit commented 9 years ago

Comment #3 originally posted by laurentpetit on 2011-03-02T21:09:25.000Z:

More french notes (extracted from private email before their content gets lost): (lpetit): Pourquoi pas. Il faut alors descendre dans le set des classes nommées dans le code des librairies tierces, et s'il y a des endroits où elles sont instanciées par un new, on devrait pouvoir les retrouver effectivement (si c'est du code qui passe par de l'indirection via factory ou autre spring container, moins sûr ...).

Raisonnons également par cas d'utilisation. En voici quelques uns :

laurentpetit commented 9 years ago

Comment #4 originally posted by laurentpetit on 2011-03-02T21:10:46.000Z:

same exchange (french), cgrand's answer: Descendre dans les libs tiereces: oui et non. Oui c'est plus précis. Non, on regarde juste les tags des vars et on proe pour que l'utilsateur mette un type hint dans son code lorsque la var n'est pas assez précise. Oui le typehint est placé trop "tard" pour la 1er complétion.

Idée ! Think different think pepsi !

Et si on attendait avant de faire la complétion. Un fonctionnement un peu façon correcteur orthographique. L'utilisateur tape un bout approx du nom de méthode et une fois que l'on connaît le "this", on corrige ou suggère la complétion.

D'ailleurs le correcteur sur les noms de symboles, je vote pour -- aucune idée de comment l'impélmenter pour pas foutre tt en l'air avec les locales.

laurentpetit commented 9 years ago

Comment #5 originally posted by laurentpetit on 2011-05-05T08:50:37.000Z:

<empty>

laurentpetit commented 9 years ago

Comment #6 originally posted by laurentpetit on 2011-12-30T21:19:49.000Z:

<empty>

laurentpetit commented 9 years ago

Comment #7 originally posted by laurentpetit on 2012-07-05T14:27:10.000Z:

<empty>

laurentpetit commented 9 years ago

Comment #8 originally posted by laurentpetit on 2012-07-26T09:24:26.000Z:

<empty>

laurentpetit commented 9 years ago

Comment #9 originally posted by laurentpetit on 2012-09-06T10:59:15.000Z:

<empty>

laurentpetit commented 9 years ago

Comment #10 originally posted by laurentpetit on 2013-11-11T19:21:09.000Z:

I would appreciate a "Clojure Cheatsheet" +Auto-Completion Feature. with could be based on the clojuredocs-QuickRef or the Cheatsheet or probably for me the most interesting, a map (or a file) which i could manipulate myself, to make it fit my personal needs

For e.g. if I press Ctrl+Space -> get a list with Topics: Like nm - Number Manipulation cc - Collection Creation cm - Collection Manipulation .s - clojure.string ... and so on

then I would type cc ( for Collection Create) I would get the normal AutoCompletion-List (with docs) from the most common functions for creating any kind of collection:

like:

list set sorted-set zipmap hash-map .. and so on