clojure-complete icon indicating copy to clipboard operation
clojure-complete copied to clipboard

textmate-completion style

Open laurentpetit opened this issue 13 years ago • 6 comments

A feature I'd like to have in Counterclockwise is "Textmate-completion" style.

e.g. asking completion for "sbc" would match "set-bundle-classloader!" var.

laurentpetit avatar Jun 15 '12 16:06 laurentpetit

Imported from another issue: ninjudd: Textmate-completion is certainly something I'd like to see!

laurentpetit avatar Jun 15 '12 16:06 laurentpetit

trptcolin: The "sbc"=>"set-bundle-classloader" style of completion sounds cool, but I wonder if all clients would want it. Maybe it could be turned on/off with a setting? Not sure whether that complexity is warranted or not. I can definitely imagine using this in REPLy, either way.

(Imported from another issue)

laurentpetit avatar Jun 15 '12 16:06 laurentpetit

kotarak: There is also split at ./- which might interesting. So s-b-c would complete to set-bundle-classloader, while sbc would not.

(Imported from another issue)

laurentpetit avatar Jun 15 '12 16:06 laurentpetit

@trptcolin : Sure it would add complexity. I'll give it a shot and see how it works, keeping in mind the possibility to make this pluggable.

@kotarak: Sure, but please note that there would already be an implicit split at-like behaviour: type "s-b-c" and the resulting list will be even more accurate towards the expected "set-bundle-classloader", and sbc would not match. Of course, it would be little bit less precise that strict split at ./- since e.g. something like "set-bun-dle-classloader" would match. But my bet is that having s-b-c with just texmate-completion would be sufficient and remove the need for strict split at ./- . Counter-examples ?

laurentpetit avatar Jun 15 '12 16:06 laurentpetit

At least a split at / could be useful to complete the namespace part and then complete the rest based on the namespace/class candidate(s).

-----Ursprüngliche Nachricht----- Von: Laurent Petit [email protected] An: Meikel Brandmeyer [email protected] Gesendet: Fr, 15 Jun 2012, 18:50:47 MESZ Betreff: Re: [clojure-complete] textmate-completion style (#5)

@trptcolin : Sure it would add complexity. I'll give it a shot and see how it works, keeping in mind the possibility to make this pluggable.

@kotarak: Sure, but please note that there would already be an implicit split at-like behaviour: type "s-b-c" and the resulting list will be even more accurate towards the expected "set-bundle-classloader", and sbc would not match. Of course, it would be little bit less precise that strict split at ./- since e.g. something like "set-bun-dle-classloader" would match. But my bet is that having s-b-c with just texmate-completion would be sufficient and remove the need for strict split at ./- . Counter-examples ?


Reply to this email directly or view it on GitHub: https://github.com/ninjudd/clojure-complete/issues/5#issuecomment-6361199

kotarak avatar Jun 16 '12 07:06 kotarak

Oh yes indeed I agree, in fact I was thinking that.

Le 16 juin 2012 à 09:41, Meikel Brandmeyer [email protected] a écrit :

At least a split at / could be useful to complete the namespace part and then complete the rest based on the namespace/class candidate(s).

-----Ursprüngliche Nachricht----- Von: Laurent Petit [email protected] An: Meikel Brandmeyer [email protected] Gesendet: Fr, 15 Jun 2012, 18:50:47 MESZ Betreff: Re: [clojure-complete] textmate-completion style (#5)

@trptcolin : Sure it would add complexity. I'll give it a shot and see how it works, keeping in mind the possibility to make this pluggable.

@kotarak: Sure, but please note that there would already be an implicit split at-like behaviour: type "s-b-c" and the resulting list will be even more accurate towards the expected "set-bundle-classloader", and sbc would not match. Of course, it would be little bit less precise that strict split at ./- since e.g. something like "set-bun-dle-classloader" would match. But my bet is that having s-b-c with just texmate-completion would be sufficient and remove the need for strict split at ./- . Counter-examples ?


Reply to this email directly or view it on GitHub: https://github.com/ninjudd/clojure-complete/issues/5#issuecomment-6361199


Reply to this email directly or view it on GitHub: https://github.com/ninjudd/clojure-complete/issues/5#issuecomment-6371460

laurentpetit avatar Jun 16 '12 08:06 laurentpetit