wh0 / nix-cache-view

in-browser .nar explorer
https://wh0.github.io/nix-cache-view/
MIT License
12 stars 1 forks source link

Deep links into specific path in .nar #7

Open wh0 opened 1 year ago

wh0 commented 1 year ago

Have an extra url parameter and, after things load, expand down to that path. Scroll it into view too maybe.

Or it might be easier to know to expand it as we build the tree? We currently have some code to make it lazily fill in a directory's entries when the user first expands it: https://github.com/wh0/nix-cache-view/blob/1a5bba2d55272506ff2f7c6af27cf0bf92d79474/nar.html#L52

wh0 commented 1 year ago

let's have it expand everything right off the bat, how big do nix packages tend to be anyway