diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2018-05-12T18·00+0200 |
---|---|---|
committer | Maximilian Bosch <maximilian@mbosch.me> | 2018-07-02T09·05+0200 |
commit | 6b74fdac271cb12f1e9a56b13c77c027404b9a00 (patch) | |
tree | 85736eeb4f52dafcc8b5f0e4f3c2a2db7f7ca743 /shell.nix | |
parent | a91c4ca01f720711d80a6f7d16ead70ce8f5f741 (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 'shell.nix')
0 files changed, 0 insertions, 0 deletions