+1 indeed, that way you can follow easily with typing a paren, thus enclosing it again.
Laurent Le 23 mai 2013 17:17, "John Clements" <cleme...@brinckerhoff.org> a écrit : > > On May 23, 2013, at 8:13 AM, Robby Findler wrote: > > > > On Thursday, May 23, 2013, Nadeem Abdul Hamid wrote: > >> Hello Racket devs, >> >> I'm working on tweaking how typing a double quote is handled in strings >> when DrRacket's auto parens mode is on, per recent post on the users list. >> If any of you use the mode and can offer feedback on the following, it'd be >> appreciated: In addition to handling Laurent's initial feature request (see >> message at bottom), I'm setting it up so that if the following string is in >> the DrRacket window: >> "abcdefghi" >> and you select the _def_ and press " (double quote), then it places >> double-quotes around the "def" with additional quotes to ensure that the >> other two portions of the string are still validly delimited, i.e. >> "abc""def""ghi" >> >> One question is where to put the cursor following this operation? Should >> it be right inside the beginning of the lifted string, or in front of its >> double quotes, i.e.: >> "abc""|def""ghi" >> or "abc"|"def""ghi" >> ? >> >> > Oh: another possibility: keep the selection where it is (or, perhaps > better, select the open quote, the def, and the close quote). > > > +1 > > John > > > _________________________ > Racket Developers list: > http://lists.racket-lang.org/dev > >
_________________________ Racket Developers list: http://lists.racket-lang.org/dev