Use the shared ArchiveBox search editor on Android

Merged
PI
13h ago
+359-190

In a library view, Android’s Search tab focuses that page’s own search field. The page retains its folder, tag, domain, sort, and filters when the query runs. The Archive home screen and pages without a search field open the signed-in server’s standalone editor. The server supplies operator suggestions, badge editing, and streamed results. The authenticated WebView preserves the submitted Snapshot results URL through activity recreation. The shared field and interpreter are in ArchiveBox/ArchiveBox#1993.

The Pixel 6 screenshots below show the previous native mode picker, a collection tag suggested below a wrapped query with Gboard open, and the two snapshots returned by tags:solar AND (title:"Solar Panel" OR title:Atlas).

Previous Search on mainShared editor and tag suggestionsSubmitted search and matching snapshots
Previous Android search with the mode picker openAndroid editing a quoted title and a tag with scoped suggestionsAndroid Snapshot admin showing results for the grouped search

On Android API 37, title:"a & b/日本語" survived submission and Activity recreation. Switching between two independent collections opened a fresh search with the selected server’s credentials. The same device test passed on released ArchiveBox 0.9.78rc419, where the missing editor endpoint falls back to the existing Snapshot search. Search deep links continue to open results directly.

Search within an active library view

On the Pixel, the selected tag remained in the results URL through submission and activity recreation. Searching title:solar within the *.example.org domain kept the domain filter. In the Smart Folder shown below, the same search returned only Solar Panel Field Guide.

Android searching title:solar in a Smart Folder with one matching snapshot