keep queries when doing lucky, :: or crate-name searches#1830
Conversation
|
I would really like something like In the meantime I think merging the queries like this is good, we could also support it on the crate-name handler so that https://docs.rs/tokio::spawn?go_to_first=true works; but that's unlikely to be something you want to write yourself so having this only for people wrapping the search handler seems fine. |
|
Implemented the proposed functionality! |
|
nevermind, it works, not sure what I did wrong |
:: searches:: or crate-name searches
enables `docs.rs/releases/search?query=tokio::spawn&i-am-feeling-lucky=1&go_to_first=true` and `docs.rs/tokio::spawn?go_to_first=true` to go to first result after redirect
|
In general a deeper integration with rustdoc specifics feels good to me. ( though rust-analyzers |
|
I think I've fixed this by changing the default branch on my fork |
|
@rustbot modify labels: +T-waiting-on-review, -T-waiting-on-author |
|
it's S... @rustbot modify labels: +S-waiting-on-review, -S-waiting-on-author |
syphar
left a comment
There was a problem hiding this comment.
Thank you for pushing this improvement forward!
I had ideas around some improvements, let me know what you think!
|
I've applied the suggestions |
|
@rustbot modify labels: +S-waiting-on-review, -S-waiting-on-author edit: it really doesn't let me, the config file suggests I should be able to |
|
@Emilgardis I'm on my phone so I don't see details |
|
ah great, I only tested locally with |
syphar
left a comment
There was a problem hiding this comment.
I'm sorry about the back & forth, I'll approve & merge.
Manual test is fine, removing the empty ? at the end I'll leave to myself later :)
|
About testing, it could also be added into #1698. |
enables https://docs.rs/releases/search?query=tokio::spawn&i-am-feeling-lucky=1&go_to_first=true
to go to first result after redirect
useful for
%skeyword search