all repos — searchix @ 8ec4832bfece859ba62a4092e074b535601aab18

Search engine for NixOS, nix-darwin, home-manager and NUR users

feat: remove package name from results table since the only use of this that I'm aware of is `nix-env -i <pname>`, which is much slower than `nix-env -iA <attribute>`, I don't see a reason to display this with the results. Every other usage that I'm aware of uses the attribute as well.

Alan Pearce
commit

8ec4832bfece859ba62a4092e074b535601aab18

parent

87fa3c388bec823763ec6e8bad680b024618e3c8

2 files changed, 6 insertions(+), 7 deletions(-)

changed files
M internal/components/packageDetail.gointernal/components/packageDetail.go
@@ -28,6 +28,12 @@ pkg.LongDescription,
P(g.Text(pkg.Description)), ), Dl( + g.If(pkg.Name != "", + g.Group([]g.Node{ + Dt(g.Text("Name")), + Dd(g.Text(pkg.Name)), + }), + ), g.If(pkg.MainProgram != "", g.Group([]g.Node{ Dt(g.Text("Main Program")),
M internal/components/packages.gointernal/components/packages.go
@@ -14,7 +14,6 @@ return Table(
THead( Tr( Th(Scope("col"), g.Text("Attribute")), - Th(Scope("col"), g.Text("Name")), Th(Scope("col"), Class("description"), g.Text("Description")), g.If(config.DevMode, Th(Scope("col"), Class("score"), g.Text("Score")),
@@ -38,9 +37,6 @@ return Tr(
Td( openDialogLink(hit.ID), ), - Td( - g.Text(hit.ID), - ), Td(Class("description"), g.Text("No description available"), ),
@@ -56,9 +52,6 @@ func packageRow(hit index.DocumentMatch, p nix.Package) g.Node {
return Tr( Td( openDialogLink(p.Attribute), - ), - Td( - g.Text(p.Name), ), Td(Class("description"), g.Text(p.Description),