Re: ANN: paredit-widget, simple swing-based clojure paredit widget

2013-08-09 Thread kovas boguta
Hi Laurent, Thanks for the ideas; I'll think about how to implement them with a sensible API. I have one question which you might have some expertise on: How does eclipse / CCW deal with the alt/option key on the Mac? The issue is that option+key on mac is generally intercepted and turned into

Re: ANN: paredit-widget, simple swing-based clojure paredit widget

2013-08-09 Thread Laurent PETIT
Hello Kovas, I had the chance to quickly play a little bit with the widget as integrated into nightcode, and it's already really enjoyable ! I think that it would indeed be fair to have a way to put it off. As a reminder, find below the possibilities of switching it off, as currently offereded b

Re: ANN: paredit-widget, simple swing-based clojure paredit widget

2013-08-06 Thread kovas boguta
Its just a matter of removing the event handlers that got added in the first place. I'll think about what the best way of exposing those via the api is. In the meantime feel free to look at the source, its not very complicated when it gets down to the paredit-widget function. On Tue, Aug 6, 2

Re: ANN: paredit-widget, simple swing-based clojure paredit widget

2013-08-06 Thread Lee Spector
On Aug 6, 2013, at 3:51 PM, Zach Oakes wrote: > I'll try adding a way to toggle paredit, but it'll be complicated since I > will probably have to re-create and re-load all open files, unless > paredit-widget provides a way to disable paredit from a JTextArea that > previously had it added. Th

Re: ANN: paredit-widget, simple swing-based clojure paredit widget

2013-08-06 Thread Zach Oakes
I'll try adding a way to toggle paredit, but it'll be complicated since I will probably have to re-create and re-load all open files, unless paredit-widget provides a way to disable paredit from a JTextArea that previously had it added. As for evaluating selected expressions, I definitely inten

Re: ANN: paredit-widget, simple swing-based clojure paredit widget

2013-08-06 Thread Lee Spector
On Aug 6, 2013, at 2:15 PM, kovas boguta wrote: > Cool! I just cloned the repo and tried it out. Seems to work pretty well. > I just tried it too, mainly to see if there was a way to turn paredit off... and I don't see one. Is there one? I really dislike paredit. Also, is there not a way to e

Re: ANN: paredit-widget, simple swing-based clojure paredit widget

2013-08-06 Thread kovas boguta
Cool! I just cloned the repo and tried it out. Seems to work pretty well. On Tue, Aug 6, 2013 at 11:05 AM, Zach Oakes wrote: > OK thanks, that makes sense. I just pushed the commit that adds it to > Nightcode so hopefully I'll get some feedback on it for the next release. > Thanks again. > > >

Re: ANN: paredit-widget, simple swing-based clojure paredit widget

2013-08-06 Thread Zach Oakes
OK thanks, that makes sense. I just pushed the commit that adds it to Nightcode so hopefully I'll get some feedback on it for the next release. Thanks again. On Tuesday, August 6, 2013 1:43:57 PM UTC-4, kovasb wrote: > > I got it from > > https://github.com/laurentpetit/ccw/tree/master/paredit.

Re: ANN: paredit-widget, simple swing-based clojure paredit widget

2013-08-06 Thread kovas boguta
On Tue, Aug 6, 2013 at 12:46 AM, Laurent PETIT wrote: > > > Le mardi 6 août 2013, kovas boguta a écrit : > > https://github.com/kovasb/paredit-widget >> >> This is a simple project that does the obvious: provide a simple widget >> that implements paredit. It is intended to be embedded as part of o

Re: ANN: paredit-widget, simple swing-based clojure paredit widget

2013-08-06 Thread kovas boguta
I got it from https://github.com/laurentpetit/ccw/tree/master/paredit.clj I had to make a change to bump the parsley version On Tue, Aug 6, 2013 at 10:14 AM, Zach Oakes wrote: > Yeah that's what it is: > > WARNING!!! version ranges found for: > [org.kovas/paredit-widget "0.1.1-SNAPSHOT"] ->

Re: ANN: paredit-widget, simple swing-based clojure paredit widget

2013-08-06 Thread Zach Oakes
Yeah that's what it is: WARNING!!! version ranges found for: [org.kovas/paredit-widget "0.1.1-SNAPSHOT"] -> [org.kovas/paredit.clj "0.20.1-SNAPSHOT"] -> [net.cgrand/parsley "0.9.2"] -> [net.cgrand/regex "1.1.0"] -> [org.clojure/clojure "[1.2.0,)"] I guess my only remaining question is whether t

Re: ANN: paredit-widget, simple swing-based clojure paredit widget

2013-08-06 Thread Nelson Morris
It might be a version range somewhere. `lein deps :tree` in lein 2.2.0 should show the path to it. If it doesn't please let me know On Tue, Aug 6, 2013 at 11:32 AM, Zach Oakes wrote: > Thanks! It seems to work well so far in Nightcode. I noticed it pulled > down a bunch of older versions of C

Re: ANN: paredit-widget, simple swing-based clojure paredit widget

2013-08-06 Thread Zach Oakes
Thanks! It seems to work well so far in Nightcode. I noticed it pulled down a bunch of older versions of Clojure, but I'm guessing that's because you're using a SNAPSHOT version of seesaw in it? Also, I was wondering if the other library you use (org.kovas/paredit.clj) was available anywhere --

Re: ANN: paredit-widget, simple swing-based clojure paredit widget

2013-08-06 Thread Laurent PETIT
Le mardi 6 août 2013, kovas boguta a écrit : > https://github.com/kovasb/paredit-widget > > This is a simple project that does the obvious: provide a simple widget > that implements paredit. It is intended to be embedded as part of other > applications, and thus is minimal. > > This is a rough cut

Re: ANN: paredit-widget, simple swing-based clojure paredit widget

2013-08-05 Thread kovas boguta
Thanks for the feedback. I just extended the paredit-widget function to be able to consume pre-existing widgets: (p/paredit-widget (javax.swing.JTextArea. "(foo bar)")) fyi right now the implementation isn't taking advantage of parsley's incremental parsing support, and instead is reparsing the t

Re: ANN: paredit-widget, simple swing-based clojure paredit widget

2013-08-05 Thread kovas boguta
On Mon, Aug 5, 2013 at 6:55 PM, John D. Hume wrote: > On Mon, Aug 5, 2013 at 8:37 PM, kovas boguta wrote: > >> https://github.com/kovasb/paredit-widget >> > > >> The bigger idea is that code editing should be available a la carte. >> >> Tying something as fundamental as code editing together with

Re: ANN: paredit-widget, simple swing-based clojure paredit widget

2013-08-05 Thread John D. Hume
On Mon, Aug 5, 2013 at 8:55 PM, John D. Hume wrote: > ICE concerns? > IDE concerns. -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - ple

Re: ANN: paredit-widget, simple swing-based clojure paredit widget

2013-08-05 Thread John D. Hume
On Mon, Aug 5, 2013 at 8:37 PM, kovas boguta wrote: > https://github.com/kovasb/paredit-widget > > The bigger idea is that code editing should be available a la carte. > > Tying something as fundamental as code editing together with IDE concerns > (file & project management, artifact generation