lix/src/nix
Maximilian Bosch 6b74fdac27
search.cc: improve UX for nix search
As proposed in #1634 the `nix search` command could use some
improvements. Initially 0413aeb35d 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.
2018-07-02 11:05:59 +02:00
..
add-to-store.cc Add "nix add-to-store" command 2017-09-14 13:29:33 +02:00
build.cc Merge branch 'fix/dry-run-partially' of https://github.com/dtzWill/nix 2018-02-22 12:18:20 +01:00
cat.cc Replace Unicode quotes in user-facing strings by ASCII 2017-07-30 12:32:45 +01:00
command.cc Remove reference to non-existent manpages 2018-03-29 12:29:10 +02:00
command.hh toBuildables -> build 2018-02-12 17:06:06 +01:00
copy.cc nix copy: add an example with S3 2018-03-30 02:31:14 +01:00
dump-path.cc Fix #1762 2018-02-13 14:26:19 +00:00
edit.cc Handle arguments in $EDITOR 2018-04-17 12:16:04 +02:00
eval.cc nix eval: Stop progress bar before printing the result 2018-01-17 12:04:44 +01:00
hash.cc nix: Respect -I, --arg, --argstr 2017-10-24 12:58:34 +02:00
installables.cc toBuildables -> build 2018-02-12 17:06:06 +01:00
legacy.cc Start of new Nix command-line interface 2016-02-09 21:28:29 +01:00
legacy.hh Fix Darwin build 2016-03-15 12:11:27 +01:00
local.mk Update the progress bar at most 20 times per second 2018-02-06 20:51:37 +01:00
log.cc nix log: use pager 2018-01-12 15:05:26 -06:00
ls.cc Update release notes 2018-02-19 20:38:53 +01:00
main.cc Add plugins to make Nix more extensible. 2018-02-08 12:44:37 -05:00
optimise-store.cc nix optimise-store: Add 2017-08-16 20:56:03 +02:00
path-info.cc Don't indent JSON output 2017-11-14 14:28:03 +01:00
ping-store.cc Manual: Update chapter on remote builds 2018-02-21 16:24:26 +01:00
progress-bar.cc Filter ANSI colors when not writing to a terminal 2018-03-15 16:08:07 +01:00
progress-bar.hh nix run: Flush the progress bar before starting the command 2017-08-29 15:13:30 +02:00
repl.cc nix repl: Fix multiline SIGINT handling. 2018-04-16 16:09:30 +02:00
run.cc nix run: Fix segfault on macOS 2018-02-26 18:29:40 +01:00
search.cc search.cc: improve UX for nix search 2018-07-02 11:05:59 +02:00
show-config.cc Don't indent JSON output 2017-11-14 14:28:03 +01:00
show-derivation.cc Add "nix show-derivation" 2017-09-25 13:43:35 +02:00
sigs.cc nix: Respect -I, --arg, --argstr 2017-10-24 12:58:34 +02:00
upgrade-nix.cc Add 'nix upgrade-nix' command 2018-01-31 16:24:43 +01:00
verify.cc nix: Respect -I, --arg, --argstr 2017-10-24 12:58:34 +02:00
why-depends.cc nix why-depends: Write to stdout 2017-09-25 16:59:16 +02:00