ColdFusion icon indicating copy to clipboard operation
ColdFusion copied to clipboard

"Expand selection to scope" in cffunction

Open kohowski opened this issue 13 years ago • 3 comments

Hi!

It would be really cool if "Expand selection to scope" can correctly expand selection to a cffunction body. Now it selects the entire cfc body.

Also, "Expand to indentation" malforms if meets a coldfusion comment. No content is selected to the other side of cursor (lower lines is the cursor is above the comment and vice versa).

Thank you

kohowski avatar Jul 20 '12 11:07 kohowski

I don't know if I can fix this. But, I'll look into it when I get back on Monday.

Thanks.

atomi avatar Jul 20 '12 23:07 atomi

So okay, it would be really cool, but it looks like expand_selection command is closed source, so I would have to rewrite the feature and override the default key bindings to make fixes.

I think ctrl+shift+a expand_selection to tag would be better suited to select the contents of a cffunction tag anyway. I'll keep this open. If I can get some feedback on implementation sometime I'll update this. Of course, pull requests are also welcomed. Edit: expand_selection to indentation is working for me. A code example for your problem would be great.

atomi avatar Jul 23 '12 19:07 atomi

Unfortunately, expand to tag also behaves weird. I cannot even descrive what does it do. But definitelly does not select the body.

I think I can use expand to indentation.

Anyway, thanks for your response.

kohowski avatar Jul 23 '12 19:07 kohowski