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
Keyboard short F2 -> either normal rename or multiple
-
roel_v
- Posts: 24
- Joined: 13 Jul 2014 12:39
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Keyboard short F2 -> either normal rename or multiple
Sure. Unbind F2. Create a user-defined command for "Run Script" or "Load Script File" and assign F2 to it.
But instead of using #147 I'd take a look at: viewtopic.php?f=7&t=18752
Code: Select all
$cnt = get("CountSelected");
if ($cnt == 1) { #172; }
elseif ($cnt >= 2) { #147; }
else { status "No item(s) selected!", "8B4513", "stop"; }
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
This is great, thanks. I can now edit my batch renames with vim! You have no idea how happy you made me! 
XYplorer Beta Club