Page 1 of 1

"New" item missing from context menu for folder backgrounds

Posted: 06 Jun 2019 19:01
by johndk
The "New" item is missing from the context menu when right-clicking the background of a folder view in XYplorer.

It does not matter whether the option is selected to show the 64-bit menu.

I hope this can be fixed, because it's actually something I use quite often. I will tap the context menu key with my right thumb, and then type "w" for the New submenu. I see that there other keyboard shortcuts in XYplorer that can be used, but I'm running out of shortcut options and have years of muscle memory on this. (And also it just seems like standard menu items should not be hidden.)

Re: "New" item missing from context menu for folder backgrounds

Posted: 06 Jun 2019 20:15
by admin
I think that was fixed in v20.10.0005?

Re: "New" item missing from context menu for folder backgrounds

Posted: 06 Jun 2019 21:04
by johndk
I just upgraded to 20.10.0005 but it still happens. I saw that other post about another "New" issue, but that seemed to be related to toolbar buttons or something like that.

Re: "New" item missing from context menu for folder backgrounds

Posted: 06 Jun 2019 21:19
by admin
Not here. Can you show a screenshot, maybe it gives me a hint where to look...

Re: "New" item missing from context menu for folder backgrounds

Posted: 07 Jun 2019 06:35
by johndk
I'm attaching a screenshot (and yes it is Win 10; I just have a classic OS theme to get somewhat less ugly UI):
No 'New' context menu item for folder background.png
But this is really weird. If I rename my XYplorer.ini so I'm back to the defaults, then it works as long as I do a real right-click. If I use the context menu key, the problem still happens. (With my normal XYplorer.ini, it fails either way.)


I then tried it in a Win 10 64-bit VM (v1805, vs v1809 on my real laptop), and it works there with both a real right-click and the contextual menu key. But when I copy in my laptop's XYplorer.ini, it breaks there also. Trying to figure out what part of the config is causing the problem...

Re: "New" item missing from context menu for folder backgrounds

Posted: 07 Jun 2019 06:56
by jupe
You left out some pertinent information in your post, you tweaked your ini file to get the shell folder whitespace menu, because you wanted it, so you are experiencing things that a normal install wouldn't.

viewtopic.php?f=2&t=20512&p=170042#p170041

This isn't a bug, it is hidden on purpose because XY uses its own New Items menu, it has various benefits: https://www.xyplorer.com/highlights.php#newitems

A workaround for you issue would be manually adding a "New" item to the registry, and then launching an XY script via the command line which would somewhat provide what you wanted, although the menu wouldn't be nested.

e.g: c:\tools\XYplorer.exe /feed="::#240;"

You'd need to also re-create the items you wanted in the XY specific menu also, and KB shortcuts would only work in the first menu. not the 2nd popup, only arrow keys.

At some point you may need to re-train you muscle memory instead of trying to make XY adapt to all your old habits, there is more than one way to skin a cat per say, another alternative would be just assigning a direct XY shortcut key to the new items menu.

Re: "New" item missing from context menu for folder backgrounds

Posted: 07 Jun 2019 07:02
by johndk
Yes, I was just about to post a followup that it's because I had CEA_ListRightClickOnWhite=1 instead of =0. But I don't think I set that myself, unless it can be done somewhere in the UI. I have no recollection of seeing that before.

However, I just noticed that no matter which setting I'm using (CEA_ListRightClickOnWhite=0 or =1 or any other value), a whole bunch of my custom folder-background right-click items that I use for my job are missing. They show up when right-clicking on files or folders, but not for a folder background. That's a much bigger issue for me... I guess I should make a separate post for it?

Re: "New" item missing from context menu for folder backgrounds

Posted: 07 Jun 2019 07:09
by jupe
No you shouldn't make another post for it, you already have, I linked to it in my post above, and you confirmed you made that change yourself in it. :veryconfused:

You may want to look at writing your own script for that menu, then you can totally customize it to your hearts content, that'll be your best avenue if you are totally particular about every item, i's a little effort to begin with but the benefit is great in the end.

Re: "New" item missing from context menu for folder backgrounds

Posted: 07 Jun 2019 07:33
by johndk
Oh wow, I think I am seriously sleep deprived! Crazy what that does to one's memory...

And yes, when I originally made the suggested "CEA_ListRightClickOnWhite=1" change, it did fix the problem. Somehow, that broke today.

But this is *really* weird: I just renamed my XYplorer.ini to go back to a clean state. And even with the default CEA_ListRightClickOnWhite=0, I was getting my custom menu items. Then I put back my old INI file with CEA_ListRightClickOnWhite=1, and my custom items are still back!

So there's something odd going on with custom folder background items disappearing. But anyway I'm back to getting my custom items with CEA_ListRightClickOnWhite=1, and the only issue is the missing "New" item, which I now understand can only be shown if I set CEA_ListRightClickOnWhite=0.

Re: "New" item missing from context menu for folder backgrounds

Posted: 07 Jun 2019 08:59
by admin
With CEA_ListRightClickOnWhite=1 you get the same menu as if right-clicking the folder in the tree: Shell context menu plus some custom items at the top. No "New" or "New Items".

Re: "New" item missing from context menu for folder backgrounds

Posted: 07 Jun 2019 18:05
by johndk
Yup. And I'll stick with CEA_ListRightClickOnWhite=1 since the custom menu items are more important to me than the "New" menu. But for some reason at that time yesterday I wasn't getting my custom items with CEA_ListRightClickOnWhite=1. But I am now...