Event editor: add button "jump to label" (for search purposes)

Description of the Feature:
In the event editor (and preferably in the common event list as well) have a new button open a window with a drop-down selection of all labels currently placed in that specific event only.
Upon selecting one of those labels, the event editor scrolls the content/commands to the line that has this label command.

Code for Implementation:
Editor only, this is NOT for the game engine
Also, this will not add functions to the label command itself, that command is just used for convenience of identifying jump-points (the comments command can't be used for this as comments could be too long and have other functions as well)


Why is this feature good?
In longer events, the eventer can now place label commands to enable a quick jump to that place of the event.
This will improve usability, especially for complex events that need to be edited a lot.


Possible issues with this feature?
There should be no issues as this should not change anything in the game engine or the data structure itself.



Comment:
This is a cleaned-up variant of a suggestion done by another user who unfortunately didn't return to edit his post himself
It's a bit confusing since we already have a button called Jump to Label on the event commands.

Anyway, so basically this is a Event UI version of Jump to Label that can be used for navigation purposes? Sounds nice.
yes, it basically has the same function for the user in the editor instead of the processor while working on the code.
Could this "jump to label" be used in conjunction with the comments so you can jump to comments as well?
no - as I said already in the original description, that would not be usable because comments are larger and sometimes have additional functions (they are used by some plugins for page-based data control).
I picked the labels exactly because they have no other function in the engine or in the editor than being jump-to points
(the original proposal from someone else was to create a new construct for this, which would also have been a bad idea because it would require several new buttons and changes to the data structure)
This is just a curious question since the reason for this idea being unusable for comments is because plugins can (and some already are) using comments for custom things, thus people making comments for jump points might interfere with those plugins.

Are labels totally unusable for customized things?
@Engr. Adiktuzmiko
no, theoretically they could be checked in the same way as comments.
However, because they have only small windows inputs that is more unlikely (and as said, because the comments are already used in that way).

Even if someone writes a plugin where labels are used for something else, the fact that they're small one liners and that the search will be editor UI only will prevent such a function from interfeering with any plugin.

However, an additional reason for using labels is the size - you need a list to to click on where to jump to, and that is easier to display if each point is only a small label instead of a multiline comment. Especially since several developer are using comments with a blankstarting line to make them stand out in the content flow - but that would result in a list "do you want to jump to blank line seven or blank line eight", because there is no way this editor function can display more than the first line anyway.
I think your wording might confuse people. It sounds like this has nothing to do with the same-named event command, but you just want a search feature in the event editor, where you can type in the name of a label, and it will take you to the line where that label is defined.

I would suggest opening it up for ANY kind of search within the current event/page, rather than specifically a label - the thought of using up screen real estate for something that might be used very rarely (I like using labels, but they're only in a very small number of my events) seems a bit wasteful, but if we could search for any event command and add a filter to narrow it down, I think it'd be really useful for a lot of other things as well.

Original thread: https://forums.rpgmakerweb.com/threads/event-editor-add-button-jump-to-label-for-search-purposes.77544/