Page 1 of 1

Keyboard short F2 -> either normal rename or multiple

Posted: 06 May 2020 07:28
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

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

Posted: 06 May 2020 07:58
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

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

Posted: 06 May 2020 09:23
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: