Re: hint: Run `guix search ... | less' to view all the results

2020-06-24 Thread Robin Templeton
Marius Bakke writes: > Robin Templeton writes: > >> Seconded! The current behavior seems exactly backwards compared to most >> *nix tools; if I wanted *less* information from "guix search" I'd >> manually pipe the output into head or recsel. Perhaps Git-style >> auto-pagination (i.e. page the

Re: hint: Run `guix search ... | less' to view all the results

2020-06-23 Thread Marius Bakke
Robin Templeton writes: > Seconded! The current behavior seems exactly backwards compared to most > *nix tools; if I wanted *less* information from "guix search" I'd > manually pipe the output into head or recsel. Perhaps Git-style > auto-pagination (i.e. page the results when outputting to a

Re: hint: Run `guix search ... | less' to view all the results

2020-06-23 Thread Robin Templeton
Jan Synacek writes: > Hello, > > I'm going to give honest feedback, since I still care about some things. > > I decided to check the new guix-1.1.0 and one of the first things that I ran > was: > > $ guix package -s firefox > > The resulting message was infuriating to say the least. The code

Re: hint: Run `guix search ... | less' to view all the results

2020-04-27 Thread Vagrant Cascadian
On 2020-04-27, Jan Synacek wrote: > While we're at it, let me also give my opinion about supporting PAGER. If > it means that if PAGER is set, use it, otherwise don't page, then that's > perfectly valid and, in my opinion, how PAGER support is supposed to > work. I don't think PAGER is an

Re: hint: Run `guix search ... | less' to view all the results

2020-04-27 Thread Vincent Legoll
Hello, On Mon, Apr 27, 2020 at 1:59 PM wrote: > imo the best option would be to page, print or truncate depending on > an envvar and/or a commandline flag PAGER="head -20" maybe ? I'm also of the opinion to respect PAGER. Untruncated ouput if unset. -- Vincent Legoll

Re: hint: Run `guix search ... | less' to view all the results

2020-04-27 Thread pinoaffe
On 2020-04-27 08:38, Jan Synacek wrote: While we're at it, let me also give my opinion about supporting PAGER. If it means that if PAGER is set, use it, otherwise don't page, then that's perfectly valid and, in my opinion, how PAGER support is supposed to work. If it means that *unless*

Re: hint: Run `guix search ... | less' to view all the results

2020-04-27 Thread zimoun
Dear On Mon, 27 Apr 2020 at 10:39, Jan Synacek wrote: > Yes, it is truncated in the sense of it doesn't show all the output, unless > you use a pipe, redirect or set the env variable. If I run 'guix package -A', > it outputs all the available packages without truncating anything and without

Re: hint: Run `guix search ... | less' to view all the results

2020-04-27 Thread zimoun
Dear, On Mon, 27 Apr 2020 at 08:12, Jan Synacek wrote: > On Sun, Apr 26, 2020 at 11:38 AM zimoun wrote: >> On Sun, 26 Apr 2020 at 10:35, Jan Synacek wrote: >> > Seriously? Are you seriously forcing your users to either run emacs (or at >> > least >> > to set the env variable) or use pipes to

Re: hint: Run `guix search ... | less' to view all the results

2020-04-27 Thread Jan Synacek
On Mon, Apr 27, 2020 at 4:02 AM Bengt Richter wrote: > Hi zimoun, Jan, > > On +2020-04-26 11:38:01 +0200, zimoun wrote: > > Dear, > > > > On Sun, 26 Apr 2020 at 10:35, Jan Synacek wrote: > > > > > Seriously? Are you seriously forcing your users to either run emacs > (or at least > > > to set

Re: hint: Run `guix search ... | less' to view all the results

2020-04-27 Thread Jan Synacek
On Sun, Apr 26, 2020 at 11:38 AM zimoun wrote: > Dear, > > On Sun, 26 Apr 2020 at 10:35, Jan Synacek wrote: > > > Seriously? Are you seriously forcing your users to either run emacs (or > at least > > to set the env variable) or use pipes to get the entire search result? > > It is "known" that

Re: hint: Run `guix search ... | less' to view all the results

2020-04-26 Thread Bengt Richter
Hi zimoun, Jan, On +2020-04-26 11:38:01 +0200, zimoun wrote: > Dear, > > On Sun, 26 Apr 2020 at 10:35, Jan Synacek wrote: > > > Seriously? Are you seriously forcing your users to either run emacs (or at > > least > > to set the env variable) or use pipes to get the entire search result? > >

Re: hint: Run `guix search ... | less' to view all the results

2020-04-26 Thread zimoun
Dear, On Sun, 26 Apr 2020 at 10:35, Jan Synacek wrote: > Seriously? Are you seriously forcing your users to either run emacs (or at > least > to set the env variable) or use pipes to get the entire search result? It is "known" that Guix should respect the PAGER variable [1,2] and it is

hint: Run `guix search ... | less' to view all the results

2020-04-26 Thread Jan Synacek
Hello, I'm going to give honest feedback, since I still care about some things. I decided to check the new guix-1.1.0 and one of the first things that I ran was: $ guix package -s firefox The resulting message was infuriating to say the least. The code says: (if (and (not (getenv