howl
howl copied to clipboard
Quotation marks
If you're writing code and you use a quotation mark (" and '), you probably wants to write a string, which uses those marks, so, it is very helpful to have them inserted twice, left and right of the writing cursor or selection, but, if you're writing a comment (ex: # python comment), you do not need that behavior. Also, inside other strings, that behavior is unnecessary. It would be nice if howl could identify the context and do not insert quotation marks twice in those cases.
You can see the described behavior here: https://youtu.be/ZRraFwlAfXA (this video was made for another issue, but I'm reusing it).
Confirmed?
Within strings I've also found it annoying with string quotes being doubled, but for other pairs I'd say it's still as useful as outside of strings. I see this as potentially similar to the functionality for skipping auto complete within certain styles (see the completion_skip_auto_within
config option), i.e. it could be user configurable.
I'd very much like to hear from some else as well though to get get some input on what people think.
So I see this as a feature request and not a bug.
IMO it would also be nice for it to be configurable, since quoting inside strings is really helpful for when writing code generators/transformers.
I would definitely like to disable auto_pair within strings. I do find it useful in comments though.