[Qt-creator] It's time to fix double redundant quotes
André Pönitz
apoenitz at t-online.de
Wed Mar 9 21:27:54 CET 2016
On Wed, Mar 09, 2016 at 10:49:27AM -0800, Coda Highland wrote:
> I think one thing that would make a big difference is if the behavior
> were keyed off of more than JUST the current state of the document and
> the position of the caret.
>
> As I alluded to upthread, the other editors I've used that have
> automatic brace/quote insertion only do magic on
> automatically-inserted brace/quote characters, and they highlight that
> character differently to indicate that its behavior is in fact magical
> -- if you type that character, it'll be overwritten, and if you
> backspace its mate, it'll be deleted.
>
> In all such cases, the magic goes away once you've navigated away from
> it. (The definition of "navigated away from" isn't precisely clear,
> but the visual highlighting at least makes the behavior obvious.)
>
> If you position your cursor next to a quote or brace that was already
> in the document, no magic should occur whatsoever. You should be able
> to edit the document without unexpected behaviors.
Now that you spell it out I think that "losing magic after navigation"
is indeed the important difference between current and desirable
behaviour.
Andre'
More information about the Qt-creator
mailing list