unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* guix search: first line not shown
@ 2020-06-30  9:16 Ekaitz Zarraga
  2020-06-30  9:33 ` guix search: first line(s) " Tobias Geerinckx-Rice
  2020-07-03  1:53 ` guix search: first line " Jack Hill
  0 siblings, 2 replies; 5+ messages in thread
From: Ekaitz Zarraga @ 2020-06-30  9:16 UTC (permalink / raw)
  To: guix-devel\@gnu.org

Hi,

With the recent adoption of $PAGER in `guix search` I'm experiencing an issue. The some of the firsts lines are not shown if the output long enough to cover the full screen so I can't see the first package name. It forces me to scroll down and up again.

If I run `guix search | less` works as expected.

Other paged commands like git work as expected too.

Is this happening to others too?

Best,
Ekaitz


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: guix search: first line(s) not shown
  2020-06-30  9:16 guix search: first line not shown Ekaitz Zarraga
@ 2020-06-30  9:33 ` Tobias Geerinckx-Rice
  2020-07-02 22:01   ` Ludovic Courtès
  2020-07-03  1:53 ` guix search: first line " Jack Hill
  1 sibling, 1 reply; 5+ messages in thread
From: Tobias Geerinckx-Rice @ 2020-06-30  9:33 UTC (permalink / raw)
  To: Ekaitz Zarraga; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 1598 bytes --]

Ekaitz,

Ekaitz Zarraga 写道:
> With the recent adoption of $PAGER in `guix search` I'm 
> experiencing an issue. The some of the firsts lines are not 
> shown if the output long enough to cover the full screen so I 
> can't see the first package name. It forces me to scroll down 
> and up again.
[…]
> Is this happening to others too?

Yes!  It looks like (at least) rendering ‘description’ doesn't 
account for the length of the "description: " prefix itself, 
making the first line too long.  That confuses less and/or makes 
it wrap non-deterministically.

After invoking ‘guix search foo’, name and version are missing, 
and:

--8<---------------cut here---------------start------------->8---
description: This package aims to provide a one-stop solution to 
requirements for footnotes.  It offers: Multiple footnote
+ apparatus superior to that of `manyfoot'.  Footnotes can be 
formatted in separate paragraphs, or be run into a
--8<---------------cut here---------------end--------------->8---

After scrolling down and then up:

--8<---------------cut here---------------start------------->8---
description: This package aims to provide a one-stop solution to 
requirements for footnotes.  It offers: Multiple footnoteus 
superior to that of `manyfoot'.  Footnotes can be formatted in 
separate paragraphs, or be run into a
--8<---------------cut here---------------end--------------->8---

(‘footnoteus’).  The description ‘shrinks’ by 2 lines, making room 
for the name and version fields at the top.

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: guix search: first line(s) not shown
  2020-06-30  9:33 ` guix search: first line(s) " Tobias Geerinckx-Rice
@ 2020-07-02 22:01   ` Ludovic Courtès
  0 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2020-07-02 22:01 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: guix-devel

Hi!

Tobias Geerinckx-Rice <me@tobias.gr> skribis:

> Ekaitz Zarraga 写道:
>> With the recent adoption of $PAGER in `guix search` I'm 
>> experiencing an issue. The some of the firsts lines are not 
>> shown if the output long enough to cover the full screen so I 
>> can't see the first package name. It forces me to scroll down 
>> and up again.
> […]
>> Is this happening to others too?
>
> Yes!  It looks like (at least) rendering ‘description’ doesn't 
> account for the length of the "description: " prefix itself, 
> making the first line too long.  That confuses less and/or makes 
> it wrap non-deterministically.

Indeed, that seems to be the case.  Apparently
31522dfa1951c655898afb37eda58c048d1c2338 fixes it.  Lemme know!

Ludo’.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: guix search: first line not shown
  2020-06-30  9:16 guix search: first line not shown Ekaitz Zarraga
  2020-06-30  9:33 ` guix search: first line(s) " Tobias Geerinckx-Rice
@ 2020-07-03  1:53 ` Jack Hill
  2020-07-03  1:56   ` Jack Hill
  1 sibling, 1 reply; 5+ messages in thread
From: Jack Hill @ 2020-07-03  1:53 UTC (permalink / raw)
  To: Ekaitz Zarraga; +Cc: guix-devel\@gnu.org

On Tue, 30 Jun 2020, Ekaitz Zarraga wrote:

> Hi,
>
> With the recent adoption of $PAGER in `guix search` I'm experiencing an issue. The some of the firsts lines are not shown if the output long enough to cover the full screen so I can't see the first package name. It forces me to scroll down and up again.
>
> If I run `guix search | less` works as expected.
>
> Other paged commands like git work as expected too.
>
> Is this happening to others too?
>
> Best,
> Ekaitz

I have been able to reproduce this. If I page down, and then back up, I 
can see the first line. I don't have any ideas at the moment about what 
could be causing this.

I'm using GNOME-terminal.

Best,
Jack



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: guix search: first line not shown
  2020-07-03  1:53 ` guix search: first line " Jack Hill
@ 2020-07-03  1:56   ` Jack Hill
  0 siblings, 0 replies; 5+ messages in thread
From: Jack Hill @ 2020-07-03  1:56 UTC (permalink / raw)
  To: guix-devel\@gnu.org

On Thu, 2 Jul 2020, Jack Hill wrote:

> On Tue, 30 Jun 2020, Ekaitz Zarraga wrote:
>
>> Hi,
>> 
>> With the recent adoption of $PAGER in `guix search` I'm experiencing an 
>> issue. The some of the firsts lines are not shown if the output long enough 
>> to cover the full screen so I can't see the first package name. It forces 
>> me to scroll down and up again.
>> 
>> If I run `guix search | less` works as expected.
>> 
>> Other paged commands like git work as expected too.
>> 
>> Is this happening to others too?
>> 
>> Best,
>> Ekaitz
>
> I have been able to reproduce this.

Oops, I now see* that Tobias already replied with better information. 
Thanks, as always Tobias!

Best,
Jack

* This is a good lesson for me about not reading my mail in threaded mode, 
and expecting people not to change the subject :)


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-07-03  1:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-30  9:16 guix search: first line not shown Ekaitz Zarraga
2020-06-30  9:33 ` guix search: first line(s) " Tobias Geerinckx-Rice
2020-07-02 22:01   ` Ludovic Courtès
2020-07-03  1:53 ` guix search: first line " Jack Hill
2020-07-03  1:56   ` Jack Hill

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).