Page 1 of 2

CEA_RightClickOnTab

Posted: 20 Oct 2023 20:50
by jupe
I like to customize all my context menus to make them only have frequently used commands in them, so it is quicker to find items, so I think it would be beneficial if it was possible to make a CEA event for the tab context menu.

That menu has grown over time (most recently: Close Tabs to the Right) and now contains a lot of items that I personally never use from that menu, and I don't think I would be alone in wanting to customize it.

Thanks for your consideration.

Re: CEA_RightClickOnTab

Posted: 20 Oct 2023 22:26
by eil
+1 All the more CEAs are good to have.

Re: CEA_RightClickOnTab

Posted: 21 Oct 2023 10:03
by admin
Will do. BTW, which commands will you have in your custom menu?

Re: CEA_RightClickOnTab

Posted: 21 Oct 2023 12:23
by klownboy
Another nice option. Thanks Don. Something to consider, if you set up this CEA for "run script", would it be possible for a user to always access the normal default right click menu by using a modifier key along with right click?

Also, is there a reason why you didn't have all the other drop-down actions available for this CEA as you have for middle click on tab? Thanks.

Re: CEA_RightClickOnTab

Posted: 21 Oct 2023 12:49
by admin
1) Hmm... might be an idea, needs more thinking....

2) I found it too unusual to trigger this stuff via right-click.

Re: CEA_RightClickOnTab

Posted: 21 Oct 2023 14:29
by klownboy
Another possibility would be to have an action for middle click on tab "default right click menu", but middle click is a pain (or at least not as easy) for me and others, so I think I'd still like to see my first suggestion.

Edit: as far as the 2nd suggestion, I don't think "go home" for right click would be out of place or a big stretch especially if you could access the normal right click menu via a modifier key held or middle click.

Re: CEA_RightClickOnTab

Posted: 21 Oct 2023 19:45
by jupe
@Don: Wow thanks for implementing this! :biggrin: :tup:
admin wrote: 21 Oct 2023 10:03 which commands will you have in your custom menu?
I knocked this up yesterday, (in case the CEA was added), I haven't really added any custom commands yet, and it will probably change with use now the CEA is available, but this is what I got so far:

2023-10-22_061303.png
2023-10-22_061303.png (9.38 KiB) Viewed 1268 times

@klownboy: You can use #300 in Run Script with modifier.

Re: CEA_RightClickOnTab

Posted: 21 Oct 2023 20:03
by admin
The v25.00.0204 solution provides an even smaller menu than yours, which can be expanded by holding down CTRL. I assume that's good enough?

Re: CEA_RightClickOnTab

Posted: 21 Oct 2023 20:17
by jupe
Yeah I was using .0203, so have just now noticed the mini menu, which I think is a good option for some people, and contains the basics for everyday use, especially with the invert ability, but for me I will definitely be using my own customization.

Re: CEA_RightClickOnTab

Posted: 21 Oct 2023 20:24
by admin
Yes, you have those nice icons.

Re: CEA_RightClickOnTab

Posted: 21 Oct 2023 20:35
by eil
While new CEA is good addition, the new small menu is a useful extra! For the moment it's basically what i wanted the default menu to be shrunken to via script.
Yet once again it's a pity that XY doesn't allow base64 icons, menus with icons like that one from jupe add comfort.

Re: CEA_RightClickOnTab

Posted: 21 Oct 2023 20:45
by highend
That are standard XY internal icons^^

Re: CEA_RightClickOnTab

Posted: 21 Oct 2023 21:09
by klownboy
Nice new options Don. For testing, I set right click tab with a script to "Go home". Works fine, but would it be possible to have the default Long menu come up whenever a "script" is used for action block and a modifier is held own when right clicking? So, for this situation someone could have an immediate action accomplished (by script) when right clicking the tab but always be able to bring up the default menu when a modifier is held with the right click. Which is in some ways similar to the right clicking a CTB, an immediate action can be assigned to the right click of the CTB, but if you hold down the modifier the "Click, Edit, Customize toolbar menu" is displayed.

Re: CEA_RightClickOnTab

Posted: 21 Oct 2023 21:14
by eil
Surely i know, i used jupe script-menu as example that menus with icons add comfort to use.

Re: CEA_RightClickOnTab

Posted: 21 Oct 2023 21:17
by jupe
jupe wrote: 21 Oct 2023 19:45 @klownboy: You can use #300 in Run Script with modifier.