I'm finding myself writing a lot of selective imports nowaday, while
also browsing the documentation (sometimes even using dman).

I though it might be a nice to have a "copy-as-selective-import" button
next to the anchor link.
Then once you find what you've been looking for, e.g.
http://dlang.org/phobos/std_math.html#.approxEqual, you can click on it
and paste

    import std.math : approxEqual;

into your code (and edit it accordingly).

Useful? What do you think? Anyone volunteering?

-Martin

NB: We use clipboard.js on the dub registry, a JS only clipboard solution.

Reply via email to