Re: [Pharo-dev] Keep print-it output on the same line in GTPlayground

2016-05-04 Thread Peter Uhnák
Since I didn't want to wait, for now I've fixed it (for myself) by changing it to RubTextEditor>>atEndOfLineInsertAndSelect: aString | last lastChar | last := (self encompassParagraph: self selectionInterval) last. (self textArea text at: last) = Character cr ifFalse: [ last := last + 1 ]. self

Re: [Pharo-dev] Keep print-it output on the same line in GTPlayground

2016-05-03 Thread Denis Kudriashov
+1 2016-05-03 14:41 GMT+02:00 Peter Uhnák : > > > On Tue, May 3, 2016 at 1:56 PM, Nicolai Hess > wrote: > >> >> >> 2016-05-03 13:26 GMT+02:00 Andrei Chis : >> >>> >>> >>> On Tue, May 3, 2016 at 10:26 AM, Peter Uhnák

Re: [Pharo-dev] Keep print-it output on the same line in GTPlayground

2016-05-03 Thread Peter Uhnák
On Tue, May 3, 2016 at 1:56 PM, Nicolai Hess wrote: > > > 2016-05-03 13:26 GMT+02:00 Andrei Chis : > >> >> >> On Tue, May 3, 2016 at 10:26 AM, Peter Uhnák wrote: >> >>> the conclusion was to print the result on the next line.

Re: [Pharo-dev] Keep print-it output on the same line in GTPlayground

2016-05-03 Thread Nicolai Hess
2016-05-03 13:26 GMT+02:00 Andrei Chis : > > > On Tue, May 3, 2016 at 10:26 AM, Peter Uhnák wrote: > >> the conclusion was to print the result on the next line. >>> >> >> Well this isn't true for the last line. >> > > Yes, right now it only inserts

Re: [Pharo-dev] Keep print-it output on the same line in GTPlayground

2016-05-03 Thread Andrei Chis
On Tue, May 3, 2016 at 10:26 AM, Peter Uhnák wrote: > the conclusion was to print the result on the next line. >> > > Well this isn't true for the last line. > Yes, right now it only inserts it on the new line if there is a line. > > The problem isn't just that it prints on

Re: [Pharo-dev] Keep print-it output on the same line in GTPlayground

2016-05-03 Thread Peter Uhnák
> > the conclusion was to print the result on the next line. > Well this isn't true for the last line. The problem isn't just that it prints on the next line for the intermediate results, but that it puts it before the next content. Even if it was on a line of it's own it would be much better.

Re: [Pharo-dev] Keep print-it output on the same line in GTPlayground

2016-05-03 Thread Andrei Chis
Hi Pavel, >From what I remember there were some discussions last year when we added this feature and the conclusion was to print the result on the next line. Maybe we can find a better heuristic for placing the result. Cheers, Andrei On Tue, May 3, 2016 at 9:44 AM, Pavel Krivanek

Re: [Pharo-dev] Keep print-it output on the same line in GTPlayground

2016-05-03 Thread Pavel Krivanek
ehm, always 2016-05-03 9:44 GMT+02:00 Pavel Krivanek : > Andrei, > > what is the reason for placing print-it result alway at the end of line? > See atEndOfLineInsertAndSelect:. > > Cheers, > -- Pavel > > > 2016-05-03 9:27 GMT+02:00 Peter Uhnák : > >>

Re: [Pharo-dev] Keep print-it output on the same line in GTPlayground

2016-05-03 Thread Pavel Krivanek
Andrei, what is the reason for placing print-it result alway at the end of line? See atEndOfLineInsertAndSelect:. Cheers, -- Pavel 2016-05-03 9:27 GMT+02:00 Peter Uhnák : > Hi, > > currently when you print the last statement in the playground and press > enter (to insert

[Pharo-dev] Keep print-it output on the same line in GTPlayground

2016-05-03 Thread Peter Uhnák
Hi, currently when you print the last statement in the playground and press enter (to insert the comment into the playground) it outputs it after, which is good. However if I then go back and evaluate a line above, it places the output on the _next_ line, just before the next statement, which is