Skip to content

Conversation

@kitbdev
Copy link
Contributor

@kitbdev kitbdev commented Nov 4, 2025

There does not need to be new Edit, Search, and Go to menus for every single open script and text file.
There only needs to be one for ScriptTextEditor and one for TextEditor, because ScriptTextEditor has some extra options.

The syntax highlighters in (Script)TextEditor now use a LocalVector instead of a Hashmap, since the order matters and it doesn't need to be a Hashmap. The highlighter menu is now created on about_to_popup instead of add/set, since there is only one.

The TextEditor menus are now organized in sub menus, like in ScriptTextEditor.
Most of the code for the menus is now the same, I plan to combine them later.

TextEditor bookmarks go to list now use backticks ` like ScriptTextEditor
TextEditor bookmarks go to list now replaces tabs with spaces for display like ScriptTextEditor (the missing character from #34091 is not rendered anyway due to other changes, but this change was missed back then).

This makes the menus static in their respective classes, but I may move it in a future PR.

This is about ~28% faster, when opening 100 scripts and 100 text files (9177ms to 7169ms avg, on a debug build). I'm using se-slow-200-misc.zip (Open all by dropping them all in the script list).

@kitbdev kitbdev added this to the 4.x milestone Nov 4, 2025
@kitbdev kitbdev requested a review from a team as a code owner November 4, 2025 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant