Keyboard short F2 -> either normal rename or multiple

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
roel_v
Posts: 24
Joined: 13 Jul 2014 12:39

Keyboard short F2 -> either normal rename or multiple

Post by roel_v »

Hi,

I'd like to change the way F2 (rename) works - when I have only one item selected, I'd like it to do the normal 'inline' filename rename operation, when I have more than one file selected, I'd like it to pop up the Rename Special / Edit item names dialog. Is that possible somehow? Thanks.

cheers

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Keyboard short F2 -> either normal rename or multiple

Post by highend »

Sure. Unbind F2. Create a user-defined command for "Run Script" or "Load Script File" and assign F2 to it.

Code: Select all

    $cnt = get("CountSelected");
    if     ($cnt == 1) { #172; }
    elseif ($cnt >= 2) { #147; }
    else               { status "No item(s) selected!", "8B4513", "stop"; }
But instead of using #147 I'd take a look at: viewtopic.php?f=7&t=18752
One of my scripts helped you out? Please donate via Paypal

roel_v
Posts: 24
Joined: 13 Jul 2014 12:39

Re: Keyboard short F2 -> either normal rename or multiple

Post by roel_v »

This is great, thanks. I can now edit my batch renames with vim! You have no idea how happy you made me! :biggrin:

Post Reply