From: Robin Templeton <robin@terpri.org>
To: guix-devel@gnu.org
Subject: Re: hint: Run `guix search ... | less' to view all the results
Date: Tue, 23 Jun 2020 12:05:26 -0400 [thread overview]
Message-ID: <87sgelydh5.fsf@terpri.org> (raw)
In-Reply-To: m6feesahe3e.fsf@jsynacek-ntb.brq.redhat.com
Jan Synacek <jsynacek@redhat.com> 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 says:
>
> (if (and (not (getenv "INSIDE_EMACS"))
> ...
> ...
> (display-hint (format #f (G_ "Run @code{~a ... | less} \
> to view all the results.")
> command)))
>
> 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?
> That's just... backwards. Also, it feels like as if the author of that code sort
> of assumed that whoever runs the command is stupid enough not to be able to deal
> with long output. I'm sure that it wasn't meant like that.
>
> Pretty please, fix this. Don't force your users into usage patterns that might
> be completely foreign to them. Don't truncate output from programs by default.
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 terminal)
would be a good compromise as a default.
next prev parent reply other threads:[~2020-06-23 16:40 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-26 7:59 hint: Run `guix search ... | less' to view all the results Jan Synacek
2020-04-26 9:38 ` zimoun
2020-04-27 1:26 ` Bengt Richter
2020-04-27 8:38 ` Jan Synacek
2020-04-27 9:44 ` zimoun
2020-04-27 11:58 ` pinoaffe
2020-04-27 17:21 ` Vincent Legoll
2020-04-27 18:36 ` Vagrant Cascadian
2020-04-27 6:12 ` Jan Synacek
2020-04-27 9:29 ` zimoun
2020-06-23 16:05 ` Robin Templeton [this message]
2020-06-23 21:06 ` Marius Bakke
2020-06-24 5:30 ` Robin Templeton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sgelydh5.fsf@terpri.org \
--to=robin@terpri.org \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).