Select folder name when creating a new folder?

Reported bugs that have been closed and/or resolved

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
laurent45654
Posts: 21
Joined: Sat Dec 21, 2024 6:54 pm

Select folder name when creating a new folder?

Post 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)
User avatar
user0
XnThusiast
Posts: 2411
Joined: Sat May 09, 2015 9:37 am

Re: Select folder name when creating a new folder?

Post by user0 »

+1
name of newly created folder should be auto-selected

related
Browser - filelist - rename - incorrect cursor position
laurent45654
Posts: 21
Joined: Sat Dec 21, 2024 6:54 pm

Re: Select folder name when creating a new folder?

Post 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.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Select folder name when creating a new folder?

Post by xnview »

when using shortcut folder name is always selected here
Pierre.
User avatar
user0
XnThusiast
Posts: 2411
Joined: Sat May 09, 2015 9:37 am

Re: Select folder name when creating a new folder?

Post 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
laurent45654
Posts: 21
Joined: Sat Dec 21, 2024 6:54 pm

Re: Select folder name when creating a new folder?

Post 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:

Image
laurent45654
Posts: 21
Joined: Sat Dec 21, 2024 6:54 pm

Re: Select folder name when creating a new folder?

Post 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.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Select folder name when creating a new folder?

Post by xnview »

i'm not able to reproduce on MacOS, please send me me your xnview.ini
Pierre.
laurent45654
Posts: 21
Joined: Sat Dec 21, 2024 6:54 pm

Re: Select folder name when creating a new folder?

Post by laurent45654 »

Sure, I've sent you a PM with the link to it
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Select folder name when creating a new folder?

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.
laurent45654
Posts: 21
Joined: Sat Dec 21, 2024 6:54 pm

Re: Select folder name when creating a new folder?

Post by laurent45654 »

That's brilliant, thanks for looking into it!
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Select folder name when creating a new folder?

Post by xnview »

This problem is supposed to be fixed in XnView MP 1.8.6. Please check and confirm the bug fix here.
Pierre.
laurent45654
Posts: 21
Joined: Sat Dec 21, 2024 6:54 pm

Re: Select folder name when creating a new folder?

Post by laurent45654 »

Looks like it's working well now. Many thanks for fixing this!
Post Reply