-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
%s
keyword search