[racket] Parens/string quotes automatic behavior

41 views
Skip to first unread message

Laurent

unread,
May 22, 2013, 10:07:35 AM5/22/13
to Racket Mailing List
Hi,

The new behavior of automatic parenthesis matching is really nice, but there is one problem with string quotes.
For example, if the cursor is in the middle of a string and I type the string-quote symbol ", it places a quote which cuts the current string and leaves the right part in a bad syntax.

Most of the time, when I type a quote inside a string, it's because I want to split the string in two parts.
To do that, I have to type string-quote, string-quote, delete (to remove the extra string-quote added by the paren-match behavior), and left to go back between the two strings, which is mildly annoying.

Would it be possible (unless problematic) to have the default paren-match behavior for strings that splits the string instead of inserting a single string-quote, possibly unless the left symbol is a backslash?

Laurent


John Clements

unread,
May 22, 2013, 12:18:23 PM5/22/13
to Laurent, Racket Mailing List
+1. I've developed a reflex to compensate for this, which is double-quote double-quote double-quote delete left-arrow… which is a bit painful.

John


____________________
Racket Users list:
http://lists.racket-lang.org/users

Laurent

unread,
May 22, 2013, 12:28:31 PM5/22/13
to John Clements, Racket Mailing List
(actually double-quote, double-quote, backspace is more efficient, but just typing double-quote would be so much simpler, in particular because when I need this, I need it often, e.g. in slideshow)

Nadeem Abdul Hamid

unread,
May 22, 2013, 5:05:05 PM5/22/13
to Laurent, Racket Mailing List, John Clements
Ok ok. :-) I will try to work on it in the next day or so if no one else gets to it first.
--- nadeem


--
Sent from Gmail Mobile
Nadeem Abdul Hamid
http://cs.berry.edu/nhamid

Laurent

unread,
May 22, 2013, 5:16:52 PM5/22/13
to Nadeem Abdul Hamid, Racket Mailing List, John Clements
Thanks!
Reply all
Reply to author
Forward
0 new messages