phptools-docs icon indicating copy to clipboard operation
phptools-docs copied to clipboard

Smart Select needs improvement

Open kanlukasz opened this issue 3 years ago • 2 comments

Describe the bug Smart Select sometimes have wrong selecting. Details below:


Code snippets for test

<ul>
  <li>Text: <?php echo $note['created'] ?></li>
</ul>
echo 'this is simple string';

Expected behavior It should select more precisely step by step


My suggestion of what the selection extending steps should look like (more or less) obraz

Another example: image image

kanlukasz avatar Oct 16 '22 15:10 kanlukasz

Thank you for the suggestion!

Actually, we don't provide "Smart Select" functionality at all, but it's on our to-do list.

jakubmisek avatar Oct 17 '22 12:10 jakubmisek

we're adding selection ranges into the next update;

For now, it will select statements (larger syntactic elements), but it'll be still in progress. Also we'll be adding smart select of HTML elements into the future release as well.

jakubmisek avatar Feb 11 '23 16:02 jakubmisek

The latest update ads smart select for doc comments and HTML elements. It also improves smart select for PHP syntax tree.

jakubmisek avatar Jun 14 '24 12:06 jakubmisek