From mboxrd@z Thu Jan 1 00:00:00 1970 From: zimoun Subject: Re: hint: Run `guix search ... | less' to view all the results Date: Mon, 27 Apr 2020 11:44:27 +0200 Message-ID: References: <20200427012635.GA4379@LionPure> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:35966) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jT0Jc-0004P8-Mn for guix-devel@gnu.org; Mon, 27 Apr 2020 05:44:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jT0Jc-0007aF-95 for guix-devel@gnu.org; Mon, 27 Apr 2020 05:44:40 -0400 Received: from mail-qk1-x730.google.com ([2607:f8b0:4864:20::730]:39813) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jT0Jb-0007UQ-QV for guix-devel@gnu.org; Mon, 27 Apr 2020 05:44:39 -0400 Received: by mail-qk1-x730.google.com with SMTP id o135so4909725qke.6 for ; Mon, 27 Apr 2020 02:44:39 -0700 (PDT) In-Reply-To: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane-mx.org@gnu.org Sender: "Guix-devel" To: Jan Synacek Cc: Guix Devel 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, unle= ss 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 giving me "helpful" hints. And that's currently 13201 lines on my = system. That's how I expect commands to behave and that has been pretty muc= h the normal thing to do since forever. There is a difference: "guix search" computes a relevance score depending on the query and the result is sorted by relevance. Therefore, the few first items should be the most relevant with the query and page the result should not be "useful" (yes it is debatable! :-)) There is room of improvement! For example, 'aptitutde search ' returns (by default): name TAB synopsis. I find that really handy. Even if it would not be the default, it should be possible to display differently the result of "guix search". Another example, it should be possible to sort the result by another key than the relevance, e.g., to group them by file origin or license or your-name-it. Patches welcome. :-) > 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 p= erfectly valid and, in my opinion, how PAGER support is supposed to work. I= f it means that *unless* something is set *not to use* a pager as some tool= s currently do (I can only think of some of the systemd tools off top of my= head), use pager by default, then that's also backwards. But it's still mu= ch better than truncating output by default. Does Git work the way you suggest all the tools are working? All the best, simon