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 by Counterclockwise:

- permanently for all the new editors to be opened : a global switch,
application wide, via the Clojure Editor Preferences Panel
- toggling it on/off for the current editor : Alt + D  ( D as a
reminder of "toggle [D]efault editing mode" )
- block the paredit behavior *just for the next keystroke*, really
useful when you're lost and REAAALLY want this *damn* paren to be
deleted without paredit interfering: It's the Esc Key. It only jumps
out of paredit mode for the next keystroke where paredit would have
been triggered.

Note that those features are not found in paredit.clj, they are in the
Eclipse part of Counterclockwise. They are dependent on the state of
the editor / application.

Note also that the only features that are "disabled" are those that
"override" the meaning of "code letters": adding parens while typing
"(" with a selection, etc.
The features that require an explicit keyboard shortcut such as those
for slurp/barf/select up-right-left-down/raise over/... are not
disabled since they don't interfere with classic coding keys.


Cheers,

-- 
Laurent




2013/8/6 kovas boguta <kovas.bog...@gmail.com>:
> 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, 2013 at 12:51 PM, Zach Oakes <zsoa...@gmail.com> 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. As for evaluating selected expressions, I
>> definitely intend on adding that soon.
>>
>>
>> On Tuesday, August 6, 2013 2:44:51 PM UTC-4, Lee wrote:
>>>
>>> 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 evaluate a selected expression in the edit
>>> window, or am I just missing it? I do think that's an important core feature
>>> of Clooj and of most Clojure/Lisp IDEs.
>>>
>>>  -Lee
>>
>> --
>> --
>> 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 - please be patient with
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to clojure+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>
>
> --
> --
> 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 - please be patient with your
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
-- 
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 - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to