Ah, now I understand what you’re after. Yes, I was indeed looking at the wrong menu.
After some digging, unfortunately I cannot see any way to target these items individually with css, as they all have the same class of menu-item with no additional attributes.
Looks like a job for a plugin. I can’t recall seeing any that looked to this particular menu, but perhaps someone out there knows of one, or could look into making one. That’s above my skillset.
If you don’t get any other answers here, I’d suggest opening a plugin request that looks to remove unwanted elements from this menu. It’s possible there are others who wish for the same amount of control.
Lastly, I am able to hide the ‘Settings’, ‘Help’, and ‘Open another vault’ icons with the following. Note this will not remove the whole left sidebar, just the icons.
I came here looking for the exact same solution; specifically to hide the “Set as attachment folder” context menu, which I have accidentally selected several times because it’s right next to the New Folder menu item.
Why does it even need to be visible when the option to save in a sub-folder has already been set? It makes sense if you have specified one folder location for attachments (because you may want to change it) but if you have selected to always put attachments in the current folder location (or into a sub-folder of the current location) then the ‘Set as attachment folder’ menu is redundant because all it does is mess up your settings if it’s accidentally clicked.
I am surprised to hear that there is not even any way to hide it using css. I was trying various things for at least an hour, and wondering why nothing worked.
OK, I looked at the markup and I don’t see any way to distinguish one context menu from another, so my suggestion won’t work. Whether you right-click on a file in the file manager or a heading in a note, you get the same markup.
It might be worth filing a feature request for better markup.