Page 1 of 1
Favorites folder with & not showing correctly in menus
Posted: 04 Apr 2015 21:14
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.
Re: Favorites folder with & not showing correctly in menus
Posted: 05 Apr 2015 01:19
by klownboy
The ampersand, "&" is a special character. You need to use two &s (&&) in a menu like Favorite Folders for the "&" to display.

Re: Favorites folder with & not showing correctly in menus
Posted: 05 Apr 2015 09:35
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.

Re: Favorites folder with & not showing correctly in menus
Posted: 05 Apr 2015 09:58
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

in all menus!
Re: Favorites folder with & not showing correctly in menus
Posted: 05 Apr 2015 13:54
by klownboy
Thanks Sammay, I totally forgot to mention the ampersand use as a hotkey.
Re: Favorites folder with & not showing correctly in menus
Posted: 06 Apr 2015 00:44
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.
Re: Favorites folder with & not showing correctly in menus
Posted: 06 Apr 2015 01:08
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.
Re: Favorites folder with & not showing correctly in menus
Posted: 06 Apr 2015 06:41
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,

. [+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?
Re: Favorites folder with & not showing correctly in menus
Posted: 08 Apr 2015 14:28
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.

Absolutely! This is a clear bug. Thanks!