Quick Select Based on First Letter

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
GreetingsFromPoland
Posts: 216
Joined: 29 Sep 2022 14:20

Quick Select Based on First Letter

Post 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".

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Quick Select Based on First Letter

Post 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...
One of my scripts helped you out? Please donate via Paypal

GreetingsFromPoland
Posts: 216
Joined: 29 Sep 2022 14:20

Re: Quick Select Based on First Letter

Post by GreetingsFromPoland »

amazing thank you. works perfect.

Post Reply