feat: Arrows to navigate search results while in a document (supersedes #3676) #3807
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Supersedes #3676 with a branch in
c2c_ui
to be able to run the CI and deploy a preview.Copy-pasted first post, but there were some answers on the initial PR that I don't copy paste.
This is an attempt to fix #3612.
When relevant, list of documents are attached a
search_query
field, containing the query that got them, with bounds centered on them.Then, when a document is displayed, we are able to get "previous" and "next" documents and generate arrow buttons. We can also generate a list of results "a search navigation box".
A screenshot:

Questions/warnings/things to improve:
Let me know what you think! In my opinion it is very useful to navigate a set of documents using arrows.