aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2018-05-12 20:00:59 +0200
committerMaximilian Bosch <maximilian@mbosch.me>2018-07-02 11:05:59 +0200
commit6b74fdac271cb12f1e9a56b13c77c027404b9a00 (patch)
tree85736eeb4f52dafcc8b5f0e4f3c2a2db7f7ca743 /src/libexpr
parenta91c4ca01f720711d80a6f7d16ead70ce8f5f741 (diff)
search.cc: improve UX for `nix search`
As proposed in #1634 the `nix search` command could use some improvements. Initially 0413aeb35d6ee869a98b6565781c1cf47dc80080 added some basic sorting behavior using `std::map`, a next step would be an improvement of the output. This patch includes the following changes: * Use `$PAGER` for outputs with `RunPager` from `shared.hh`: The same behavior is defined for `nix-env --query`, furthermore it makes searching huge results way easier. * Simplified result blocks: The new output is heavily inspired by the output from `nox`, the first line shows the attribute path and the derivaiton name (`attribute path (derivation name)`) and the description in the second line.
Diffstat (limited to 'src/libexpr')
0 files changed, 0 insertions, 0 deletions