Skip to content

New search options to search in text or binary resources#2526

Merged
skylot merged 2 commits intomasterfrom
binary-search
Jun 7, 2025
Merged

New search options to search in text or binary resources#2526
skylot merged 2 commits intomasterfrom
binary-search

Conversation

@skylot
Copy link
Copy Markdown
Owner

@skylot skylot commented Jun 3, 2025

New checkboxes to add a variable into resource file filter field.
$TEXT for text files, $BIN for binary. Content type field added to ResourceType enum.
Filter field can be edited manually, checkboxes will add/remove variables without resetting user values.
$TEXT now a default filter string for resources.

screenshot_2025-06-04-004442

Also, some improvement and fixes done to allow search in binary files:

  • scroll to position in hex viewer
  • using one byte charset for binary files to match offsets in byte array (and hex viewer)

Resolves issues from #2522

@MrIkso
Copy link
Copy Markdown
Contributor

MrIkso commented Jun 3, 2025

@skylot im found bug - scrollToOffset work fine if already opened hexviewer

@skylot
Copy link
Copy Markdown
Owner Author

skylot commented Jun 4, 2025

@MrIkso thanks, added selection of matching tab (by file content type) and data loading before scroll to pos.
Also, I start treating unknown file types as binary in search, so now $TEXT is only for known types (hardcoded in ResourceType class) and $BIN for all others. Previously unknown files were treated like text files.

@MrIkso
Copy link
Copy Markdown
Contributor

MrIkso commented Jun 5, 2025

@skylot nice, bug fixed

@skylot skylot merged commit 8030c2f into master Jun 7, 2025
4 checks passed
@skylot skylot deleted the binary-search branch June 7, 2025 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants