PHP-Twig.tmbundle icon indicating copy to clipboard operation
PHP-Twig.tmbundle copied to clipboard

Expand conflicts with Emmet

Open tobalsan opened this issue 10 years ago • 8 comments

Hi,

since last update where you replaced blockb with block., ifb with if. for twig multiline blocks, if one has Emmet extension installed, there is a conflict between both plugins in text expansion, and Emmet takes priority, which makes block. expand to <block class=""></block>.

tobalsan avatar Dec 03 '14 10:12 tobalsan

Hello, +1, it's annoying ! Somebody knows if it's possible to disable some emmet's snippets cause I never use the emmet's block and I would prefer to use the twig's snippet for block... If no way, I think I'm going to update twig's snippets with tblock or something like that

or3lie avatar Dec 09 '14 11:12 or3lie

Hrm, that is rather annoying :{ Any suggestions for the trigger syntax for multi-lined versions of snippets? I wasn't very fond of the trailing b, hence why I changed it to the trailing .. Locally I used repeating the last letter (e.g., blockk, iff, etc.) though I'm not sure how I feel about that either.

uhnomoli avatar Dec 09 '14 12:12 uhnomoli

I think the same character each time is better. Instead of a point you can choose a letter and put it at the end of the trigger. Or maybe another character like two points, can it work ? exp : block:, if:...

or3lie avatar Dec 09 '14 15:12 or3lie

+1 i like the colon solution block:, if:, Just tested it right now, no weird text expansion occuring on my side.

tobalsan avatar Dec 09 '14 15:12 tobalsan

Hi @Anomareh ! What do you think about the colon solution ?

or3lie avatar Apr 21 '15 13:04 or3lie

+1 for the colon.

diegocastro avatar Apr 22 '15 17:04 diegocastro

yeah, it would be really cool, but looks like @Anomareh is very busy lately :P

tobalsan avatar Apr 23 '15 10:04 tobalsan

@Anomareh if you're busy I could make the changes. It's something that is annoying me to no end.

diegocastro avatar May 05 '15 21:05 diegocastro