Skip to content

Feature request: command or search argument to quickly expand to the nth occurence of word #12

@certainlyakey

Description

@certainlyakey

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions