Favorites folder with & not showing correctly in menus

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
msorrels
Posts: 10
Joined: 01 May 2011 04:16

Favorites folder with & not showing correctly in menus

Post by msorrels »

So I have a folder with the name "Music & Media" that I've added to my Favorite Folder list. It shows up when I right click in the tree and also under the menu item "Favorites->Favorite Folders" but in those two places the ampersand is left out and what shows up is just "Music Media" The menu item works fine but the menu display isn't correctly handling the ampersand.

klownboy
Posts: 4481
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

Re: Favorites folder with & not showing correctly in menus

Post by klownboy »

The ampersand, "&" is a special character. You need to use two &s (&&) in a menu like Favorite Folders for the "&" to display. :)

msorrels
Posts: 10
Joined: 01 May 2011 04:16

Re: Favorites folder with & not showing correctly in menus

Post by msorrels »

When building the menu, the code should fix up the display string as needed so poor helpless users don't have to. Computers are good at that kind of thing. :D

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Favorites folder with & not showing correctly in menus

Post by bdeshi »

But & IS useful. It's used to define a character in the name as a shortcut key.When you name it Te&st, then opening the favorite menu and pressing S will (eventually) focus that item.
XY does well to not remove them, and you have learned a new trick! This &-hotkeying works :wink: in all menus!
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

klownboy
Posts: 4481
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

Re: Favorites folder with & not showing correctly in menus

Post by klownboy »

Thanks Sammay, I totally forgot to mention the ampersand use as a hotkey.

msorrels
Posts: 10
Joined: 01 May 2011 04:16

Re: Favorites folder with & not showing correctly in menus

Post by msorrels »

When adding a prefix name to a folder path it's a separate quoted bit, and not the file path -- which the user has no control over. They are two separate things really. When using the file path as part of the menu display XYPlorer needs to quote the ampersands, it can leave the user supplied name as is. Giving you both worlds. Though for some reason if I ampersand a quoted friendly name character I'm not getting the standard windows underscore showing you the accelerator exists in the menu. That seems like a second bug, if it's going to support an accelerator it needs to show it.

msorrels
Posts: 10
Joined: 01 May 2011 04:16

Re: Favorites folder with & not showing correctly in menus

Post by msorrels »

I really should add here, this isn't exactly the biggest issue on earth, but it does kind of bug me every time I see it. I think I'm going to add a quoted copy of the full file path with the doubled ampersand sign just so I don't scream with rage every time I look at the favorites menu.

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Favorites folder with & not showing correctly in menus

Post by bdeshi »

msorrels wrote:When adding a prefix name to a folder path it's a separate quoted bit, and not the file path -- which the user has no control over. They are two separate things really. When using the file path as part of the menu display XYPlorer needs to quote the ampersands, it can leave the user supplied name as is. Giving you both worlds.
Indeed, :tup: . [+1]
Though for some reason if I ampersand a quoted friendly name character I'm not getting the standard windows underscore showing you the accelerator exists in the menu. That seems like a second bug, if it's going to support an accelerator it needs to show it.
:? ?
I suppose you can see those underscores in other menus elsewhere. Then is the favfolder definition syntactically correct?
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Favorites folder with & not showing correctly in menus

Post by admin »

msorrels wrote:When building the menu, the code should fix up the display string as needed so poor helpless users don't have to. Computers are good at that kind of thing. :D
Absolutely! This is a clear bug. Thanks!

Post Reply