Page 1 of 1

Reduce Context Menu clutter!

Posted: 16 Dec 2020 14:34
by sl23
Please, please, please, can we have a way to remove unused Context Menu items?
I find them so overwhelming as there's just too much stuff I will never use!

There's currently 4 ways to add new items from a R-click menu!!!
At the top of this context menu, you have:
New Folder
New Text File

Then you have at the bottom:
New - with a sub-menu of stuff I will never use.
New Items - Just found out what this is and it's exactly what I wanted as my Text files are always created as .INI. I use that format for Note taking and the highlighting is useful.

Personally, I would like to replace the Top - New Text File with the New INI file from the bottom sub-menu. Then remove both the bottom sub-menu's.

I've seen some apps use JSON files for editing context menus in this way. Is that something you think you could do?

I live in hope... :biggrin:

Re: Reduce Context Menu clutter!

Posted: 16 Dec 2020 15:04
by highend
Why don't you make use of the new CEA additions in the latest betas and write your own context menu with the things you really need?

Re: Reduce Context Menu clutter!

Posted: 16 Dec 2020 15:56
by sl23
I'd love to... how do I do that? :whistle: :mrgreen:

Re: Reduce Context Menu clutter!

Posted: 16 Dec 2020 15:58
by highend
Assign e.g. a middle-click for "clicking on white" and use the "run script" action (and write the script that shows all your entries)

Re: Reduce Context Menu clutter!

Posted: 16 Dec 2020 18:35
by sl23
Sounds easy... when you know how to write scripts! :appl: :biggrin:

Re: Reduce Context Menu clutter!

Posted: 16 Dec 2020 18:37
by highend
Most internal commands have ids so e.g.

Code: Select all

"New Folder|:newfolder" #231;
"New Items..." #240;
is too hard to accomplish?

Re: Reduce Context Menu clutter!

Posted: 16 Dec 2020 18:45
by sl23
When you don't know anything about script, yes :oops:
What are the rules for scripting? What other info is required or is that it? Where do you get these ID's from?

I tried learning RegEx but found no resource for beginners that actually start you off with something, same for every language. There's tons of sites claiming to teach but none actually teach those who know nothing about it! :veryconfused: :naughty:

Re: Reduce Context Menu clutter!

Posted: 16 Dec 2020 18:53
by sl23
Thanks for the pointer though :biggrin:

So, if a script doesn't work, how do you remove it?
What actually happens to the text written in the script window?
How do you start with script? Do I have to write script to a file or just enter into the script window and done?

Re: Reduce Context Menu clutter!

Posted: 16 Dec 2020 18:59
by highend
What are the rules for scripting? What other info is required or is that it?
Read the help file about scripting?
Where do you get these ID's from?
Menu - Help - List All Commands...
So, if a script doesn't work, how do you remove it?
From where?
What actually happens to the text written in the script window?
It gets executed by XYplorer, what did you expect?
Do I have to write script to a file or just enter into the script window and done?
I was talking about custom event actions and their script executing capabilities, not the normal XY script window
and if you enter your scripts there or use a load command to load a script file where the commands are stored is totally up to you and your personal preferences

Re: Reduce Context Menu clutter!

Posted: 17 Dec 2020 14:39
by sl23
highend wrote: ↑16 Dec 2020 18:59 Read the help file about scripting?
Help files are rarely sufficient to learn how to start out, they only help those that know some basics. Look at Rainmeter's help/manual for an example. They don't teach beginners, only those that have prior knowledge.
Menu - Help - List All Commands...
Thanks
From where?
My point exactly! You have little understanding of my question as you fully understand how XY and scripts work. If you can't answer a question, don't answer it. I didn't know if once you run/load a script, it remains 'loaded' in XYplorer, sort of like a plugin. I thought maybe the script code was saved somewhere and would need removing if unwanted.
highend wrote: ↑16 Dec 2020 15:04 Why don't you make use of the new CEA additions in the latest betas and write your own context menu with the things you really need?
I mean, there seems to be scripts for customising Context Menu's, which means no user input is required to run that script when starting XYplorer. Or, you'd have to execute that script every startup! Which indicated that this script is stored somewhere and autorun on startup. So the question remains... How would it be removed? It must be loaded at startup, so if you decide you don't want it or it's faulty, how do you edit it once loaded? Is it saved in a file? Do you enter it in the Run/Load script window? What happens to it once you do, apart from the totally obvious fact that XYplorer runs the script, what happens to it? Is it saved in a file or in some config file, where does the code go as it is obviously reused without user intervention? Hopefully that's clear enough now.
It gets executed by XYplorer, what did you expect?
I don't know, that's why I asked a question! Otherwise I wouldn't be asking. Judging from your sarcastic responses, I presume that scripts aren't saved anywhere except in buttons or a user text file that only get used when clicking buttons or using the run/load script options?
I was talking about custom event actions and their script executing capabilities, not the normal XY script window
and if you enter your scripts there or use a load command to load a script file where the commands are stored is totally up to you and your personal preferences
Sorry, but I didn't understand any of that! What is a Custom Event Action? A button? I've had XYplorer on my hard drive for years, but never used it due to all the superfluous stuff it contains. I don't need about 80% of it's functions. Due to this, I have very rarely used it, just loaded and dabbled a little. I don't know about all the terms used in this app so it doesn't help to lay them out as if I do. I am not a programmer. I don't know script. I am a new user and am asking for help and you seem to be ignorant to that fact! Maybe I'm wrong and that's just how you are, but that's how it comes across.

Re: Reduce Context Menu clutter!

Posted: 17 Dec 2020 15:42
by RalphM
While I understand your frustration somehow, highend gave you a few keywords to look up in the help file and by doing so, make sense of a few general things before you might be able to try (and probably fail) with your first script but if you come back later with more specific questions, he's the one who most likely will have the answers for you.
In general you get better responses here by showing that you tried but got stuck along the way rather than asking a general question expecting to get presented with the perfect solution on a plate.

Reading up on scripting in XY's help file is certainly a good start.

Re: Reduce Context Menu clutter!

Posted: 17 Dec 2020 15:51
by sl23
I agree, but first, perhaps he should have pointed me to WHERE the help file IS, instead of having a bad attitude!

After all, that is exactly how I learned how to use Rainmeter. Which is fine. But when you get attitude for asking a question, in my book that just makes you a prick! Sorry, but there's no call for that sort of attitude, it's highly egotistical and down right rude!

But thanks for pointing that out, I'll look into it. I didn't even know there was a help file/page/site!

Re: Reduce Context Menu clutter!

Posted: 17 Dec 2020 16:16
by highend
I'm a prick! I've assumed you are able to find the help (file) alone
Hint: F1 is the standard key for opening a help (file) in at least 95% of all applications under Windows.

Good luck with your feature request

Reduce Context Menu clutter!

Posted: 17 Dec 2020 17:49
by sl23
And for your information, no, I didn't know that F1 opened a help file in almost every application on windows cos I never use keyboard for any shortcuts apart from copy/paste. And I've never even touched the F# keys for anything other than booting into BIOS when needed to fix a PC.
o more.

---
Content edited by highend