Sublime Forum

Tabkeys precision

#1

I have two similar looking tab shortcuts for snippets. dump dumps a variable in PHP, and s:dump dumps a variable in smarty. However, if I don’t set the scope to PHP and HTML for those snippets, but leave them empty, s:dump always triggers the PHP snippet, leaving behind the “s:” part. It would be nice if Sublime would try to find out if a full match could be found, first, because even though this isn’t the best example, I have a few cases where it does matter that I have the snippet scope set to “all”.

0 Likes