howl icon indicating copy to clipboard operation
howl copied to clipboard

Quotation marks

Open italomaia opened this issue 6 years ago • 4 comments

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).

italomaia avatar Feb 23 '18 12:02 italomaia

Confirmed?

italomaia avatar Mar 28 '18 12:03 italomaia

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.

nilnor avatar Mar 28 '18 14:03 nilnor

IMO it would also be nice for it to be configurable, since quoting inside strings is really helpful for when writing code generators/transformers.

refi64 avatar Mar 28 '18 16:03 refi64

I would definitely like to disable auto_pair within strings. I do find it useful in comments though.

shalabhc avatar Mar 13 '19 18:03 shalabhc