Page 1 of 1

Quick Select Based on First Letter

Posted: 02 Oct 2022 17:44
by GreetingsFromPoland
Hi!
is there a hotkey or shortcut that would allow me to select everything in the folder based on the first letter of what i already have selected ?

for example, i select my "view.php" file or "vendor" folder and everything else in the folder that begins with "v" is selected. if i had more than 1 selected, the hotkey shouldn't work.

would also be nice if it respected the same selection filtering as "select | select by selected type".

Re: Quick Select Based on First Letter

Posted: 02 Oct 2022 18:04
by highend
Scripting^^

Code: Select all

    $items = listpane(, , 4, <crlf>);
    $sel   = <get SelectedItemsNames>;
    if (!$sel || gettoken($sel, "count", <crlf>) > 1) { end true; }
    selectitems regexmatches($items, "^" . substr($sel, 0, 1) . ".*?(?=\r?\n|$)", <crlf>);
Use a "User defined command" and assign it a hotkey...

Re: Quick Select Based on First Letter

Posted: 02 Oct 2022 18:50
by GreetingsFromPoland
amazing thank you. works perfect.