Re: [fossil-users] [PROPOSED FEATURE] Fossil commands output sent through a pager

2017-03-27 Thread Andy Bradford
Thus said Warren Young on Mon, 27 Mar 2017 10:21:42 -0600: > Explain to me how someone deciding between Fossil and Git gets down to > automatic pagination as the key differentiator, the one that seals > their decision. While it may not be used as a determining factor in deciding between Git

Re: [fossil-users] [PROPOSED FEATURE] Fossil commands output sent through a pager

2017-03-27 Thread Martin S. Weber
On 03/27/17 01:55, Roy Marples wrote: Pager output disappearing with the pager (I assume when asking the pager to exit) is an issue with the pager. I disagree. Disappearing output uses the "alternate screen" of a terminal so that the pager's output does not interfere with your non-reading

Re: [fossil-users] [PROPOSED FEATURE] Fossil commands output sent through a pager

2017-03-27 Thread Warren Young
On Mar 27, 2017, at 10:19 AM, Martin S. Weber wrote: > > On 03/27/17 01:55, Roy Marples wrote: >> Pager output disappearing with the pager (I assume when asking the pager to >> exit) is an issue with the pager. > > I disagree. Disappearing output uses the "alternate screen"

Re: [fossil-users] [PROPOSED FEATURE] Fossil commands output sent through a pager

2017-03-27 Thread Warren Young
On Mar 26, 2017, at 11:49 AM, Tomasz Konojacki wrote: > > On Sun, 26 Mar 2017 19:25:25 +0200 > Christophe Gouiran wrote: > >> I see that most of you complain about this proposed feature. > > TBH, many members of this list live in the UNIX greybeard

Re: [fossil-users] [PROPOSED FEATURE] Fossil commands output sent through a pager

2017-03-26 Thread John P. Rouillard
Hi all: In message <787dd2f8-edf8-4caf-5d8c-b63cac39a...@marples.name>, Roy Marples writes: >On 26/03/2017 22:19, Joerg Sonnenberger wrote: >> On Sun, Mar 26, 2017 at 07:49:30PM +0200, Tomasz Konojacki wrote: >>> For someone with a different background, there is *nothing* nice about >>> fossil

Re: [fossil-users] [PROPOSED FEATURE] Fossil commands output sent through a pager

2017-03-26 Thread Roy Marples
On 26/03/2017 22:19, Joerg Sonnenberger wrote: On Sun, Mar 26, 2017 at 07:49:30PM +0200, Tomasz Konojacki wrote: For someone with a different background, there is *nothing* nice about fossil dumping thousands of lines to the terminal. In fact, I think it scares off newbies who only used git

Re: [fossil-users] [PROPOSED FEATURE] Fossil commands output sent through a pager

2017-03-26 Thread Tomasz Konojacki
On Sun, 26 Mar 2017 19:25:25 +0200 Christophe Gouiran wrote: > I see that most of you complain about this proposed feature. TBH, many members of this list live in the UNIX greybeard bubble, and that's why there is so much opposition to this feature. They're used to the

Re: [fossil-users] [PROPOSED FEATURE] Fossil commands output sent through a pager

2017-03-26 Thread Scott Robison
On Mar 26, 2017 11:25 AM, "Christophe Gouiran" wrote: Please find as attached file another patch which: 1. First test for a real terminal before spawning the pager command. 2. No more paginate json command. I see that most of you complain about this proposed

Re: [fossil-users] [PROPOSED FEATURE] Fossil commands output sent through a pager

2017-03-26 Thread Christophe Gouiran
Please find as attached file another patch which: 1. First test for a real terminal before spawning the pager command. 2. No more paginate json command. I see that most of you complain about this proposed feature. It was only a proposition, if it is not accepted I won't care. However, it

Re: [fossil-users] [PROPOSED FEATURE] Fossil commands output sent through a pager

2017-03-26 Thread Richie Adler
Sergei Gavrikov decĂ­a, en el mensaje "Re: [fossil-users] [PROPOSED FEATURE] Fossil commands output sent through a pager" del 25/3/2017 14:09:57: > My 2 cents. Many of us use f-alias to deal with fossil in a terminal, > right? Then why not f-function? Maybe because not everybod

Re: [fossil-users] [PROPOSED FEATURE] Fossil commands output sent through a pager

2017-03-26 Thread j. van den hoff
On Sun, 26 Mar 2017 16:00:11 +0200, Scott Robison wrote: On Mar 26, 2017 7:13 AM, "Christophe Gouiran" wrote: Hi all, First of all many thanks for all your feedback. I come back to you with an implemented solution. After many thinking,

Re: [fossil-users] [PROPOSED FEATURE] Fossil commands output sent through a pager

2017-03-26 Thread Stephan Beal
On Sun, Mar 26, 2017 at 4:00 PM, Scott Robison wrote: > their amount of output, perhaps based on some extra parameter. DRH > suggested that it should be based on any output, which would avoid the > worry about how fossil changes over time. > corner case: json output

Re: [fossil-users] [PROPOSED FEATURE] Fossil commands output sent through a pager

2017-03-26 Thread Scott Robison
On Mar 26, 2017 7:13 AM, "Christophe Gouiran" wrote: Hi all, First of all many thanks for all your feedback. I come back to you with an implemented solution. After many thinking, for me not all commands need to send their outputs to a pager. Only ones which may output

Re: [fossil-users] [PROPOSED FEATURE] Fossil commands output sent through a pager

2017-03-26 Thread Martin S. Weber
On 2017-03-26 15:13:53, Christophe Gouiran wrote: > I come back to you with an implemented solution. > Your solution doesn't check whether stdout is actually pointing to a terminal. You should never invoke a pager if it's not. I also think this is a horrible idea in general. Regards, -Martin

Re: [fossil-users] [PROPOSED FEATURE] Fossil commands output sent through a pager

2017-03-26 Thread Christophe Gouiran
Hi all, First of all many thanks for all your feedback. I come back to you with an implemented solution. After many thinking, for me not all commands need to send their outputs to a pager. Only ones which may output a big amount of lines in a bunch. Therefore, I selected only some of them to be

Re: [fossil-users] [PROPOSED FEATURE] Fossil commands output sent through a pager

2017-03-26 Thread Stefan Bellon
On Sat, 25 Mar, Andy Bradford wrote: > Thus said Roy Keene on Thu, 23 Mar 2017 17:36:37 -0500: > > > I vote that the pagination be off by default to preserve the > > existing behaviour -- terminals have been able to scroll for > > decades now so I don't know why systemd/git like to do this by

Re: [fossil-users] [PROPOSED FEATURE] Fossil commands output sent through a pager

2017-03-25 Thread Andy Bradford
Thus said Roy Keene on Thu, 23 Mar 2017 17:36:37 -0500: > I vote that the pagination be off by default to preserve the existing > behaviour -- terminals have been able to scroll for decades now so I > don't know why systemd/git like to do this by default but it is REALLY > annoying having to

Re: [fossil-users] [PROPOSED FEATURE] Fossil commands output sent through a pager

2017-03-25 Thread Reimer Behrends
Sergei Gavrikov wrote: My 2 cents. Many of us use f-alias to deal with fossil in a terminal, right? Then why not f-function? That won't work with commands that need to take input from the terminal, especially if an editor is invoked (e.g. "fossil commit"). There's the "fsl" script that

Re: [fossil-users] [PROPOSED FEATURE] Fossil commands output sent through a pager

2017-03-25 Thread Sergei Gavrikov
My 2 cents. Many of us use f-alias to deal with fossil in a terminal, right? Then why not f-function? SYNOPSIS unalias f f(){ fossil "$@" | more ; } or f(){ fossil "$@" | less -FRSXQ ; } if you like more 'less' then 'more' :) Then try f help commit f

Re: [fossil-users] [PROPOSED FEATURE] Fossil commands output sent through a pager

2017-03-24 Thread Tomasz Konojacki
On Thu, 23 Mar 2017 23:08:04 +0100 Christophe Gouiran wrote: > Good morning, > > I would like to implement the feature given in the title. > I'm inspired by what Git (by default ?) and Mercurial (with Pager > extension

Re: [fossil-users] [PROPOSED FEATURE] Fossil commands output sent through a pager

2017-03-23 Thread Roy Keene
I vote that the pagination be off by default to preserve the existing behaviour -- terminals have been able to scroll for decades now so I don't know why systemd/git like to do this by default but it is REALLY annoying having to pipe EVERYTHING through "cat" to defeat it. (Also, even better

Re: [fossil-users] [PROPOSED FEATURE] Fossil commands output sent through a pager

2017-03-23 Thread Richard Hipp
I think there should be a single setting, pager-command, which the pager uses for *all* command-line output if it defined. The setting defaults to an empty string, which means no pagination. I don't think you want to select some subset of commands to be paginated. Do them all, or do none of

Re: [fossil-users] [PROPOSED FEATURE] Fossil commands output sent through a pager

2017-03-23 Thread Scott Robison
I don't know about what commands to paginate by default, but no to versionable settings for this. Don't want to force this on others. On Mar 23, 2017 4:08 PM, "Christophe Gouiran" wrote: > Good morning, > > I would like to implement the feature given in the title. > I'm

[fossil-users] [PROPOSED FEATURE] Fossil commands output sent through a pager

2017-03-23 Thread Christophe Gouiran
Good morning, I would like to implement the feature given in the title. I'm inspired by what Git (by default ?) and Mercurial (with Pager extension activated) do. I'd like to avoid typing "fossil | less" everytime I notice it produces an