Skip to content

feat: search shortcut for menu and HUD editor - #1211

Open
saadndm wants to merge 1 commit into
Polyfrost:v1from
saadndm:feat/search-shortcut
Open

saadndm wants to merge 1 commit into
Polyfrost:v1from
saadndm:feat/search-shortcut

Conversation

@saadndm

@saadndm saadndm commented Oct 18, 2026

Copy link
Copy Markdown
Member
  • in HUD editor, when a HUD is selected it opens and focuses search in settings panel, with nothing selected, opens hud library/preview and focuses there
  • Moved instant search setting from GUI into search category

@lunaynx
lunaynx force-pushed the feat/search-shortcut branch from a2272f2 to 484c86c Compare October 19, 2026 12:48
Comment on lines +1140 to +1142
} else if (modIds.isNotEmpty()) {
libraryVisible = true
searchFocusTarget = StudioSearch.Library

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 [P2] Read current library availability in the search handler

If all registered HUDs are single-instance and already placed when the editor opens, modIds starts empty. Deleting a HUD then makes the library searchable, but this coroutine still captures the original empty list: its LaunchedEffect only restarts when editorOpenRevision changes. Consequently, Ctrl/Cmd+F does nothing until the editor is reopened. Use rememberUpdatedState or calculate availability when consuming the command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants