Page 1 of 1

Browser - filelist - rename - incorrect cursor position

Posted: Fri Jul 14, 2023 6:04 am
by user0
XnViewMP 1.5.0
Windows11 (22H2), display resolution 3840x2160, dpi scale 150%


Browser - filelist - file rename
incorrect cursor position after selection is cancelled

To reproduce:
1. open Browser
2. select image
3. press F2 to rename
whole name will be selected

Issue A
4. press → once
selection will be cancelled
cursor will be positioned one character to the right after selection

cursor_position.png
cursor_position.png (3.04 KiB) Viewed 6081 times
Expected behaviour
arrows in rename mode shall work the same way as in Windows File Explorer:
cursor shall be positioned right after last character of the selection


Issue B
same issue if rename via popup dialog (in Browser/Viewer)
4. manually select few characters in the middle of the name
5. press → (or ←) once
selection will be cancelled
cursor will be positioned to the wrong place that for some reason based on the direction of selection


Expected behaviour
arrows in rename mode shall work the same way as in Windows File Explorer:
→ - cursor shall be positioned right after last character of the selection
← - cursor shall be positioned right before first character of the selection (same as in issue A)


Issue C
4. press ↑ or ↓ once
name edit mode will be cancelled
focus will shift to another file


Expected behaviour
arrows in rename mode shall work the same way as in Windows File Explorer:
↑ equals ←
↓ equals →






Related

Re: Browser - filelist - rename - incorrect cursor position

Posted: Fri Nov 28, 2025 7:42 am
by vertigo
Bumping this as this issues has now gone 2.5 years unresolved and without response since posted, and my post a year ago regarding it also didn't get an admin response. This seems like it should be a relatively minor fix, yet it's a major issue for actual use and is the main reason I've never really switched to using XnView, even though it would be preferable otherwise. I'd appreciate some discussion either regarding the intent to fix this or reasoning to not do so, as I'm hoping it can be done so I can use XnView more, but would really like to at least know if there's no intention of doing so, so I can figure something else out.

Re: Browser - filelist - rename - incorrect cursor position

Posted: Sat Dec 13, 2025 12:43 pm
by xnview
it's not better to go before dot?

Re: Browser - filelist - rename - incorrect cursor position

Posted: Sat Dec 13, 2025 2:06 pm
by user0
xnview wrote: Sat Dec 13, 2025 12:43 pm it's not better to go before dot?
nope
need to mimic exact behavior of win file explorer in basic functionality, as it is practically the standard