This is probably old news to everyone, but the scope of the quote toggle did not include source. [...] I added 'source' to the scope list and this fixed the "problem". I figure toggling quotes is useful in any source location.
The command is intended to be used without a selection, as it will work on the current scope, which is string.quoted.*.
By adding ?source? to the scope selector you break it for when there is no selection (as it will then receive the entire source as stdin).
That will make my life loads easier. Now it works. I swear I tried that before. Now that I see SOURCE in the source area of the bundle item. Everything is clear. The Key Equivalent won't work if you have the quotes selected though, or anything selected. It will work if you have the quote selected and you select the bundle item from the menu. This is what sent me down the wrong path.
Thank you.
On 8 Jul 2009, at 22:22, brad tittle wrote:
[...] The Key Equivalent won't work if you have the quotes selected though, or anything selected.
Yeah, 1.x uses the intersection of the scope to the left/right of the selection, it’s non-trivial exactly what the scope should be.
For example you may also fully select the double-quoted string and hit ' to wrap it in single quotes. We disable the ' character as a paired character inside strings (for writing contractions) so had string.* been in the scope, this wouldn’t work.