Skip to content

Rustdoc: Add "-" shortcut that does same as "+" #45847

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

Closed
Havvy opened this issue Nov 7, 2017 · 5 comments
Closed

Rustdoc: Add "-" shortcut that does same as "+" #45847

Havvy opened this issue Nov 7, 2017 · 5 comments

Comments

@Havvy
Copy link
Contributor

Havvy commented Nov 7, 2017

"+" on rustdoc expands or collapses all sections on the page. It'd be nice if "-" does too. At least on US keywords, it requires a shift for "+" but not for "-".

@GuillaumeGomez
Copy link
Member

Ok, here you go.

@raggi
Copy link
Contributor

raggi commented Nov 7, 2017

I'd also like a way to make this sticky (e.g. ctrl+- -> writes a local storage / cookie that persists the state)

@GuillaumeGomez
Copy link
Member

Not sure to understand what you're asking.

@raggi
Copy link
Contributor

raggi commented Nov 7, 2017

I'm asking that I can press: CTRL - and then load a new doc page, and the page will load collapsed. If I press - or + it will toggle the collapse state. If I press CTRL - or CTRL + it will toggle the persistent state.

@GuillaumeGomez
Copy link
Member

I see. Hum... Do you mind opening another issue for this please? I think it'll require a bit of discussion before that (because ctrl + / ctrl - are also used to zoom in/out in a browser).

GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this issue Nov 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants