custom compact context menu like Nilesoft Shell (with my notes and context)

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Raf
Posts: 128
Joined: 31 Jul 2024 15:34

custom compact context menu like Nilesoft Shell (with my notes and context)

Post by Raf »

Quick questions
  1. How to make new XY context menu from scratch using scripts?
  2. How to move the toolbar buttons to the menu?
  3. How to clean the windows/xy context menu n delete system items like “copy” and “paste”?
  4. How to make hamburger or other XY menu context-sensitive?
What Im trying to achieve
This is my toolbar. You have to search for the right button each time. All buttons are visible all time and you have to manually switch between sets of buttons all the time
toolbar.png
toolbar.png (59.8 KiB) Viewed 5245 times
I want to use the context menu instead, because only the elements that are needed at the moment are visible in it
custom nenu concept.png
custom nenu concept.png (367.66 KiB) Viewed 5245 times
In Explorer I used the Nilesoft Shell but in XY it is not working properly. I don't know how to create such a compact menu using XY's built-in features. It should have only my items and some application items (like 7-zip, tree size, eset) and no system items like “copy” and “paste”.

By context menu I will mean selecting a file/folder/shortcut/folder or drive backgroundwith left mouse button + pressing an optional key (shift/ctrl) + pressing right mouse button and then opening the pre-defined (described) menu with the items that allow you to interact with the selected object, including sending it to some application. This can be any menu including catalog or hamburgerif it will change automatically depending on these actions (context-sensitive UI).

A clear example is my 7-zip menu from Nilesoft Shell script. Each action in the list has its own menu:
  • open archive with 7z swiches
  • extract files from the archive
  • show 7z documentation
  • archive more 2+ files or 1+ folders
switches.png
switches.png (69.66 KiB) Viewed 5245 times
archive.jpg
archive.jpg (96.42 KiB) Viewed 5245 times
doc.png
doc.png (60.76 KiB) Viewed 5245 times
archive.jpg
archive.jpg (96.42 KiB) Viewed 5245 times
The XY interface is very static. This cannot be changed, because this is the ideology of XYplorer. Сustomizable context menu helps as a tool: you have tools at hand that do not need to be searched in depth, which appear depending on what Im doing.

Here's a thought that describes the ideology of toolbar:
"It goes by itself that this turns a very small part of your screen space into a very powerful area"
https://www.xyplorer.com/release_10.20.php#dub
However, there are a lot of "small parts of your screen". The interface can be more compact if I put everything I need in the context menu.


My thoughts and notes

Shell
I've been using the Nilesoft Shell for a long time. This made it possible to make the built-in context menu of Windows 10 compact, beautiful, and custom.
shell art.jpg
shell art.jpg (83.88 KiB) Viewed 5245 times
For example, I improved the 7-zip context menu. Instead of a series of large out-of-the-box menus, I made several separate small 7-zip menus that depend on the context. I added features that were only available through the terminal (e.g. hiding the headers of an encrypted archive).
7z updates.png
7z updates.png (188.61 KiB) Viewed 5245 times
hidden menu.jpg
hidden menu.jpg (108.05 KiB) Viewed 5245 times
Integration
Compact UI gives me speed in my daily work. The fewer buttons I see, the faster I focus. I tried to bring this idea to XY, however, XY does not allow Nilesoft Shell to work completely. The problem is that ImageShell is designed for Explorer. So it was necessary to somehow implement Shell in XY with the help of their developers. However, the XY developer said that
dev xy.png
dev xy.png (137.2 KiB) Viewed 5245 times
The Shell developer is on vacation
dev shell.png
dev shell.png (163.39 KiB) Viewed 5245 times
As a result, I came to the conclusion that it is necessary to create a new context menu using the scripts and features of XYplorer.

In search of answers
I started to dig very deep into everything related to my goal: to make a compact interface. To do this, I used SearX with a lot of search engines
history.png
history.png (383.2 KiB) Viewed 5245 times
I used a lot of information to set up XY and explore its capabilities, but no one gave an answer to important questions: how do I clear the context menu from "cut", "copy", "paste", "properties" and others?
How do I add my own submenus using scripts?
viewtopic.php?t=5750
Why has no one responded to this post? How do I add icons to the context menu?
viewtopic.php?t=25808
There are different menu options without ID, for example "Flatten folder" (https://www.xyplorer.com/release_15.70.php#FF ).
Why do some commands from the XY context menu not have an ID? How do I add them to the Toolbar if I can't customize the context menu?
The closest and most beautiful thing I found was done with the help of AHK
viewtopic.php?t=26623
I read the FM tools code. Is it possible to make your context menu with different submenus and applications the same script?
viewtopic.php?t=27065
I haven't figured out how to set up a simple and beautiful XY context menu using the built-in features. I need someone's help...

Goal
Context menu is a primitive tool compared to the capabilities of XY. However, menu makes it possible to combine everything in one place and hide the elements that are unnecessary now. I can pin applications, folders, scripts, files, commands – this is the true power of a custom context menu( and hamburger but it is static like catalog, sets of buttons, multi-row toolbar, UI layout, rapid access etc. - all these elements are visible all the time and do not change). Why do we have so many buttons to interact with XYplorer features (I mean whole XY UI) but no way to make them context-sensitive with scripts?

I don't like that I need to search for all the features in different menus, view buttons and settings and memorize keyboard shortcuts. Do you know how I navigate the file system? I use Flow Launcher and drag and drop assets directly into After Effects. I search for the necessary icons, copy their path and paste them into the user button settings window. I use it not to pin, but to search for applications. This is my ideology of working with files and in order to implement it I do not need to change the entire XYplorer and its ideology. It's easy enough to make a fully customizable context menu to which you can add Rapid Access or a directory associated with the current directory, useful applications and file management commands...
Attachments
7z1.png
7z1.png (68.09 KiB) Viewed 5245 times

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

Re: custom compact context menu like Nilesoft Shell (with my notes and context)

Post by admin »

You could have saved time by writing your own file manager instead of writing this post. :)

Check out the scripting commands popupmenu() and popupnested().

Raf
Posts: 128
Joined: 31 Jul 2024 15:34

Re: custom compact context menu like Nilesoft Shell (with my notes and context)

Post by Raf »

1) I like XY and its features. This isnt an answer to my questions.
2) Script func's, hm, ok, but how to make context-sensitive menu with them? This isnt an answer to my questions.

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

Re: custom compact context menu like Nilesoft Shell (with my notes and context)

Post by admin »

You can bind scripts to specific item types using Custom File Associations (menu Tools | Customize File Associations...). In the script, reference to the selected item can be made using the <curitem> variable.

Post Reply