Scene Code Search
Makes every scene search box (Scenes page, and the scene picker on groups/markers/filters) also match the scene's Studio Code, not just title, details and path.
No reviewer has approved this plugin yet. Read the source before installing, or review it for the community.
sha256 885828c34061c33bf2c785a95a53c124aae7c1b9e4adca84ee50f2a69fe917dd
- Last updated
Oct 8, 2026- First created
- Version
1.0.0- Package id
sceneCodeSearch- Commits
- 1
- Repo stars
- 0
Settings
- Minimum search length (characters)
number
README
Scene Code Search
Extends every scene search/autocomplete in the Stash UI to also match the
scene's Studio Code. Stash's plain search box only looks at title, details,
path and similar fields, so searching for e.g. JUX-441 won't find a scene
whose only link to that text is its Studio Code.
Covers:
- The search box on the Scenes page.
- The scene picker used on groups, markers and filter criteria - they share
the
FindScenesForSelectquery.
How it works
The plain search sends a filter.q term, and Stash has no way to OR a q
with a scene_filter such as code INCLUDES .... So this plugin wraps
window.fetch and, for FindScenes / FindScenesForSelect requests carrying
a q:
- Runs a cheap probe asking which scenes (within the page's active filters) have a Studio Code containing the term. If none do, the original request is sent completely untouched.
- Otherwise it resolves the normal
qmatches, adds the code matches, applies the requested sort order, takes the requested page, and sends the request with those scene ids instead ofq. Stash ignores sorting/paging when given explicit ids, so the plugin does that itself and then restores the correct total count / size / duration in the response.
Other active filters (tags, performers, organized, ...) still apply to both the normal matches and the code matches. No backend or database changes are made.
Settings
- Minimum search length (characters) - search terms shorter than this are left as a plain search (default: 2 if unset/0).
To turn the feature off, use the plugin's own "Disable" button in Settings > Plugins.
Known limitations
- Code matching is a case-insensitive substring match (
INCLUDES) on the whole search term, so a multi-word search only matches codes containing that exact text. - When a code matches, an extra few small id-only queries are made per search.
More from AnonTester/stash-plugin-repo
- Performer RefreshAdds a refresh button next to the stash-box ID on performer pages, replicating the Update Performer modal from the Performer Tagger interface.
- Performer Disambiguation SearchMakes every performer search box (Performers page, and the performer picker on scenes/galleries/images/groups/markers/filters) also match the Disambiguation field, not just name and aliases.
- Scene URL EnhancementsAdds an "Open URL in new tab" button to scene URL rows, fixes the URLs field width to match other fields, and can relocate scene URLs from the File Info tab to the Details tab.
- Stash Sense 2ML-powered performer identification and library curation -- detects faces in scenes/images/galleries, matches them against a published performer database, and surfaces library recommendations. Requires the companion Stash Sense sidecar container (github.com/AnonTester/stash-sense2).