Page 1 of 1
Select folder name when creating a new folder?
Posted: Wed Feb 05, 2025 1:24 pm
by laurent45654
Whenever I create a new folder using a keyboard shortcut (F7), the folder name is not selected. It means I need to press Ctrl+A and then set the name.
I seem to remember it was working differently, and that's definitely different from any other application. Any idea how to make this work?
(note that if I create the folder by clicking on the toolbar button, then it is selected. It's just when using a keyboard shortcut that it's doing this)
Re: Select folder name when creating a new folder?
Posted: Wed Feb 05, 2025 2:32 pm
by user0
+1
name of newly created folder should be auto-selected
related
Browser - filelist - rename - incorrect cursor position
Re: Select folder name when creating a new folder?
Posted: Wed Feb 05, 2025 2:42 pm
by laurent45654
And this issue doesn't seem to be a feature but a bug. Because it works fine when creating via the toolbar button, just not with a shortcut. I think something happens when the folder is created, like it's refreshing something which unselects the text.
On the other hand, it seems you've open that bug report in 2023? I'm wondering how active development is for XnView.
Re: Select folder name when creating a new folder?
Posted: Thu Feb 06, 2025 7:13 am
by xnview
when using shortcut folder name is always selected here
Re: Select folder name when creating a new folder?
Posted: Thu Feb 06, 2025 7:57 am
by user0
xnview wrote: Thu Feb 06, 2025 7:13 am
when using shortcut folder name is always selected here
it seems to only happen under certain conditions
0. have large file in folder, eg 10 000 x 10 000px jpg
1. open folder in Browser
2. select image
3. press Ctrl+Shift+R to rotate it
(any action that keep app busy for some time)
image will be rotated - OK
4. press F7
new folder will be created, but name is not selected
Re: Select folder name when creating a new folder?
Posted: Thu Feb 06, 2025 4:38 pm
by laurent45654
user0 wrote: Thu Feb 06, 2025 7:57 am
it seems to only happen under certain conditions
In my case it always happens, whether it's a folder with many images or no images, or just other folders.
Example video:

Re: Select folder name when creating a new folder?
Posted: Thu Feb 06, 2025 4:56 pm
by laurent45654
It's on macOS by the way. One thing you can briefly see on the video is that the folder icon is initially the default macOS blue one, then it's quickly changed to the yellow one. I wonder if this is part of the issue - maybe initially the text is selected, then the folder display is updated and text gets unselected. Just an idea.
I wish the source code was available so that I can try a pull request.
Re: Select folder name when creating a new folder?
Posted: Fri Feb 07, 2025 1:26 pm
by xnview
i'm not able to reproduce on MacOS, please send me me your xnview.ini
Re: Select folder name when creating a new folder?
Posted: Fri Feb 07, 2025 2:13 pm
by laurent45654
Sure, I've sent you a PM with the link to it
Re: Select folder name when creating a new folder?
Posted: Sat Feb 08, 2025 10:31 am
by xnview

Thanks to your detailed description I can reproduce
the problem.
Re: Select folder name when creating a new folder?
Posted: Sat Feb 08, 2025 12:19 pm
by laurent45654
That's brilliant, thanks for looking into it!
Re: Select folder name when creating a new folder?
Posted: Fri Feb 14, 2025 10:08 am
by xnview
This problem is supposed to be fixed in
XnView MP 1.8.6. Please check and confirm the bug fix here.
Re: Select folder name when creating a new folder?
Posted: Sun Feb 16, 2025 3:57 pm
by laurent45654
Looks like it's working well now. Many thanks for fixing this!