I often use selectUntil to quickly select foreach blocks, therefore I need to put endforeach (or more concise endf) as a search query. However, foreach blocks may contain other foreach'es inside, and it requires an Enter, ctrl+shift+s, Enter chain of keystrokes to go past inner terms and select to the second or more occurence of word.
Is it possible to make a separate bindable command for expanding the selection to the next occurence (while the panel is open) or introduce a search argument for expanding to the nth occurence at once?
For example, the query endf*2 would allow to quickly expand the selection to the end of the following block ignoring inner endf occurence:
foreach( $events as $post ) : setup_postdata($post);
if ($post->news) {
echo '...';
foreach ( $post->news as $newspiece ) : setup_postdata( $newspiece );
echo '...';
endforeach;
echo '...';
}
endforeach;
Thank you for a great plugin.