But that won't automatically bring up the search.
With xdotool and a tiny script can be tied to a keypress:
Code:
nautilus ~ ; sleep 1s; xdotool key --clearmodifiers C-f
this assumes that <cntl>-f will bring up the search dialog and that the window manager sets a new window to have focus. Not the way my setup is, but I suspect most people work that way. IDK.
I did test this with caja. The C-f didn't work even when the window focus was correct. That seems odd, since I use it lots of other places.
I suppose a short cnee script could work. That tool is extremely positionally sensitive, so placement of the nautilus window and the geometry would likely be required. Something like: caja -g 600x400 & OTOH, it sends exact mouse and keyboard inputs, so it will work. The workflows I have it automating are usually 5-10 minutes long. cnee probably doesn't work with Wayland. It is an X/Windows tool, but so is xdotool. But IDK about recent Wayland. Last time I looked was about 2 yrs ago and it didn't work.