miniblog.

← Back to all posts
23
I'm playing with Zeal/Dash so I can view stdlib docs offline. (I've been coding on public transport recently, without a reliable data connection.) Anyone have tips for making the most of this setup? AFAICT docsets are basically HTML underneath.

3 Comments

@wilfredh It’s particularly handy when you pull not only standard library/core docs but also from things like docs.rs or hex.pm. I have the docsets for all of the Rust libraries I most often use, and it’s invaluable. Yes, I could get those via `cargo doc`, but having them at a shortcut away is great. I also make a point to map all of them to specific prefixes, e.g. `serde` for Serde and `tokio` for Tokio and so on, as well as `rs` for Rust core docs, etc.
@wilfredh dasht to browse docsets from the CLI. vim-dasht to browse them without having to tab away from your editor, can probably find plugins for other editors too. rtfm app if you want a GUI and prefer the gnome ecosystem. also cargo-docset makes it super easy to build docsets for any library in the rust ecosystem; doc2dash is OK for the python ecosystem, but not nearly so effortless.
@wilfredh I also use Alfred on a Mac, and there’s a nice integration there to search by language/library keyword.