Sublime Forum

Behavior when changing a function

#1

Bad behavior of the suggestion list.

<?php $test = serialize(value)( $test ); ?>

If I want to use a different function instead of “serialize”, I mark it and enter the new function, after a few letters I get a suggestion list - usually finds what I search and press Enter. A prefabricated string is added. Can you disable this somewhere, so only the function name changes?

0 Likes

#2

this is possible, albeit not trivially. One would have to clone the entire completions list for PHP and remove the method arguments, and set the scope to apply when there is a open paren immediately to the right of the caret i.e. punctuation.section.group.begin.php (and ensure the existing completions list doesn’t apply in this circumstance.)

1 Like