I work with multiple projects open, each in a separate tab. When I project search (⌘⇧F) in one project, the search field is updated/shared across all tabs – although the search text itself is not changed in the other projects.
Scenario:
I project-search for “important text” in Project One, producing a scrivening. I then Find Next (⌘G) through the search results and notice something I need to check in another project. I switch to that project and perform a project search for “random text”. I find what I’m looking for and return to Project One. Pressing ⌘G now tries to find “random text” in the original scrivening instead of “important text”, despite the search field containing “important text”, which is clearly my intent.
I hope it’s clear that the behaviour I’d expect is for each tab to retain its own search text.
This is by far the biggest annoyance I have with Scrivener.
I think this is an Apple issue. I presume the Find routine is provided by Apple as part of TextKit, as I have noticed this happening across Apps built on TextKit, eg TextEdit and NWP.
This is considered standard behaviour on a Mac, to share search terms across contexts in parallel uses of the same search system. This isn’t about tabs, or even what happens inside of one program. All native Mac software shares one universal search term used in ⌘F. Try switching over to TextEdit, paste some text from your project into a window, and hit ⌘G after having run a project search in Scrivener. Now hit ⌘F in TextEdit and search for a different word, switch back to Scrivener and press ⌘G.
Knowing this, I soon found a discussion on the DevonThink forums about it. The dev(s) there added an option to disable this feature. Is there any chance this could be added to Scrivener?
An Automator solution was posted in that StackExchange that should work for everything, once you set it up (I haven’t tried it, but the shell commands being invoked by it are all still valid).