Author Topic: Is it possible to change contect menu order?  (Read 3476 times)

Offline hypo

  • Single posting newcomer
  • *
  • Posts: 2
Is it possible to change contect menu order?
« on: March 17, 2021, 10:00:25 am »
Hello

I recently switched from CB 17.12 to 20.03 (Windows) after replacing my computer, and the only "challenge" I am facing, although quite minor, is the change in context menu order.

I frequently use the "Find occurrences" function, and I often work without a mouse on my laptop (mainly only keyboard).
But in version 20.03, the order of the Context Menu has changed, as least compared to my setup on 3 different computers.
Before, the Find menus were ordered as:
- Declaration
- Implementation
- Occurrences
- Functions called by
- Functions calling
- References

Now it is:
- Declaration
- Implementation
- References
- Functions called by
- Functions calling
- Occurrences

Is it possible to customize this order, or remove some items from this menu (specifically the* Functions*) ?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Is it possible to change contect menu order?
« Reply #1 on: March 17, 2021, 02:48:20 pm »
Nope. At least without re-compiling.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline hypo

  • Single posting newcomer
  • *
  • Posts: 2
Re: Is it possible to change contect menu order?
« Reply #2 on: March 17, 2021, 02:52:26 pm »
Thanks for the answer.

And no possibility with an additional plugin?
I just saw this in the release note:
Quote
sdk: Add API for sorting menu items in the editor’s context menu (modify all plugins to use it)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Is it possible to change contect menu order?
« Reply #3 on: March 17, 2021, 04:43:48 pm »
This API sorts menu items added by plugins, so the order in the menu doesn't depend on the order of initialization of the plugins. It is not an API to allow some plugin to control the order or the availability of the items in the menu.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]