Printing string in Moose

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Printing string in Moose

Andre Hora
Hello,

When we print a string in Moose, we cannot select it because it is printed "like a label", which can be then inspected.
For me it is bit strange because I used to frequently print some string and then do something else such as browser a class, or copy a substring (which is not possible anymore).
So, what is goal of this feature? Maybe I just didn't see it.

thanks!

--
Andre Hora

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Printing string in Moose

Tudor Girba-2
Of course, you can select the text :).

I guess the problem in your case is that in the default Pharo theme, the background of the popup has the same color as the text selection. This is why you do not see the selection.

But, if you do Cmd+a and then Cmd+c, it works fine.

Doru

On Tue, Oct 7, 2014 at 1:39 PM, Andre Hora <[hidden email]> wrote:
Hello,

When we print a string in Moose, we cannot select it because it is printed "like a label", which can be then inspected.
For me it is bit strange because I used to frequently print some string and then do something else such as browser a class, or copy a substring (which is not possible anymore).
So, what is goal of this feature? Maybe I just didn't see it.

thanks!

--
Andre Hora

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev




--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Printing string in Moose

Sven Van Caekenberghe-2

On 07 Oct 2014, at 14:10, Tudor Girba <[hidden email]> wrote:

> Of course, you can select the text :).
>
> I guess the problem in your case is that in the default Pharo theme, the background of the popup has the same color as the text selection. This is why you do not see the selection.
>
> But, if you do Cmd+a and then Cmd+c, it works fine.

It is selected automatically, no ? Just Cmd-c is enough, Esc to close.

> Doru
>
> On Tue, Oct 7, 2014 at 1:39 PM, Andre Hora <[hidden email]> wrote:
> Hello,
>
> When we print a string in Moose, we cannot select it because it is printed "like a label", which can be then inspected.
> For me it is bit strange because I used to frequently print some string and then do something else such as browser a class, or copy a substring (which is not possible anymore).
> So, what is goal of this feature? Maybe I just didn't see it.
>
> thanks!
>
> --
> Andre Hora
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
>
>
> --
> www.tudorgirba.com
>
> "Every thing has its own flow"
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Printing string in Moose

Andre Hora
Yes, it is the the default Pharo theme.
Just changed it and it works fine!

thanks :)

On Tue, Oct 7, 2014 at 2:14 PM, Sven Van Caekenberghe <[hidden email]> wrote:

On 07 Oct 2014, at 14:10, Tudor Girba <[hidden email]> wrote:

> Of course, you can select the text :).
>
> I guess the problem in your case is that in the default Pharo theme, the background of the popup has the same color as the text selection. This is why you do not see the selection.
>
> But, if you do Cmd+a and then Cmd+c, it works fine.

It is selected automatically, no ? Just Cmd-c is enough, Esc to close.

> Doru
>
> On Tue, Oct 7, 2014 at 1:39 PM, Andre Hora <[hidden email]> wrote:
> Hello,
>
> When we print a string in Moose, we cannot select it because it is printed "like a label", which can be then inspected.
> For me it is bit strange because I used to frequently print some string and then do something else such as browser a class, or copy a substring (which is not possible anymore).
> So, what is goal of this feature? Maybe I just didn't see it.
>
> thanks!
>
> --
> Andre Hora
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
>
>
> --
> www.tudorgirba.com
>
> "Every thing has its own flow"
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



--
Andre Hora

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Printing string in Moose

Tudor Girba-2
In reply to this post by Sven Van Caekenberghe-2
No, it's not selected by default. Only when you press Cmd+c and you do not have anything selected, it will select the line :)

For example, if you have a multi-line string, it does not work. If you inspect:
'1
2
3'
and then Cmd+c, you will only get '1'.

One idea was to reimplement Cmd+c to select the whole popper text if nothing is selected, but I did not get around to do it.

Doru




On Tue, Oct 7, 2014 at 2:14 PM, Sven Van Caekenberghe <[hidden email]> wrote:

On 07 Oct 2014, at 14:10, Tudor Girba <[hidden email]> wrote:

> Of course, you can select the text :).
>
> I guess the problem in your case is that in the default Pharo theme, the background of the popup has the same color as the text selection. This is why you do not see the selection.
>
> But, if you do Cmd+a and then Cmd+c, it works fine.

It is selected automatically, no ? Just Cmd-c is enough, Esc to close.

> Doru
>
> On Tue, Oct 7, 2014 at 1:39 PM, Andre Hora <[hidden email]> wrote:
> Hello,
>
> When we print a string in Moose, we cannot select it because it is printed "like a label", which can be then inspected.
> For me it is bit strange because I used to frequently print some string and then do something else such as browser a class, or copy a substring (which is not possible anymore).
> So, what is goal of this feature? Maybe I just didn't see it.
>
> thanks!
>
> --
> Andre Hora
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
>
>
> --
> www.tudorgirba.com
>
> "Every thing has its own flow"
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Printing string in Moose

Sven Van Caekenberghe-2
Hmm, I must have read something wrong, I though we were talking about 'Print It' and the copying of that String output.

- I open a GT-Playground
- I type ZnMimeType default
- Cmd-p (which selects the previous expression)
- Cmd-c (copies from the popper whose text is already selected)
- Esc (close the popper)

Now the output of the 'Print It' is in the clipboard, ready to be pasted somewhere.

On 07 Oct 2014, at 14:25, Tudor Girba <[hidden email]> wrote:

> No, it's not selected by default. Only when you press Cmd+c and you do not have anything selected, it will select the line :)
>
> For example, if you have a multi-line string, it does not work. If you inspect:
> '1
> 2
> 3'
> and then Cmd+c, you will only get '1'.
>
> One idea was to reimplement Cmd+c to select the whole popper text if nothing is selected, but I did not get around to do it.
>
> Doru
>
>
>
>
> On Tue, Oct 7, 2014 at 2:14 PM, Sven Van Caekenberghe <[hidden email]> wrote:
>
> On 07 Oct 2014, at 14:10, Tudor Girba <[hidden email]> wrote:
>
> > Of course, you can select the text :).
> >
> > I guess the problem in your case is that in the default Pharo theme, the background of the popup has the same color as the text selection. This is why you do not see the selection.
> >
> > But, if you do Cmd+a and then Cmd+c, it works fine.
>
> It is selected automatically, no ? Just Cmd-c is enough, Esc to close.
>
> > Doru
> >
> > On Tue, Oct 7, 2014 at 1:39 PM, Andre Hora <[hidden email]> wrote:
> > Hello,
> >
> > When we print a string in Moose, we cannot select it because it is printed "like a label", which can be then inspected.
> > For me it is bit strange because I used to frequently print some string and then do something else such as browser a class, or copy a substring (which is not possible anymore).
> > So, what is goal of this feature? Maybe I just didn't see it.
> >
> > thanks!
> >
> > --
> > Andre Hora
> >
> > _______________________________________________
> > Moose-dev mailing list
> > [hidden email]
> > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >
> >
> >
> >
> > --
> > www.tudorgirba.com
> >
> > "Every thing has its own flow"
> > _______________________________________________
> > Moose-dev mailing list
> > [hidden email]
> > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
>
> --
> www.tudorgirba.com
>
> "Every thing has its own flow"
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Printing string in Moose

Tudor Girba-2
Right.

But, now select and print this string:

'1
2
3'

and then copy. You will only get 1, not the whole string. That is because only the first line gets selected when you press Cmd+c.

Doru

On Tue, Oct 7, 2014 at 2:30 PM, Sven Van Caekenberghe <[hidden email]> wrote:
Hmm, I must have read something wrong, I though we were talking about 'Print It' and the copying of that String output.

- I open a GT-Playground
- I type ZnMimeType default
- Cmd-p (which selects the previous expression)
- Cmd-c (copies from the popper whose text is already selected)
- Esc (close the popper)

Now the output of the 'Print It' is in the clipboard, ready to be pasted somewhere.

On 07 Oct 2014, at 14:25, Tudor Girba <[hidden email]> wrote:

> No, it's not selected by default. Only when you press Cmd+c and you do not have anything selected, it will select the line :)
>
> For example, if you have a multi-line string, it does not work. If you inspect:
> '1
> 2
> 3'
> and then Cmd+c, you will only get '1'.
>
> One idea was to reimplement Cmd+c to select the whole popper text if nothing is selected, but I did not get around to do it.
>
> Doru
>
>
>
>
> On Tue, Oct 7, 2014 at 2:14 PM, Sven Van Caekenberghe <[hidden email]> wrote:
>
> On 07 Oct 2014, at 14:10, Tudor Girba <[hidden email]> wrote:
>
> > Of course, you can select the text :).
> >
> > I guess the problem in your case is that in the default Pharo theme, the background of the popup has the same color as the text selection. This is why you do not see the selection.
> >
> > But, if you do Cmd+a and then Cmd+c, it works fine.
>
> It is selected automatically, no ? Just Cmd-c is enough, Esc to close.
>
> > Doru
> >
> > On Tue, Oct 7, 2014 at 1:39 PM, Andre Hora <[hidden email]> wrote:
> > Hello,
> >
> > When we print a string in Moose, we cannot select it because it is printed "like a label", which can be then inspected.
> > For me it is bit strange because I used to frequently print some string and then do something else such as browser a class, or copy a substring (which is not possible anymore).
> > So, what is goal of this feature? Maybe I just didn't see it.
> >
> > thanks!
> >
> > --
> > Andre Hora
> >
> > _______________________________________________
> > Moose-dev mailing list
> > [hidden email]
> > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >
> >
> >
> >
> > --
> > www.tudorgirba.com
> >
> > "Every thing has its own flow"
> > _______________________________________________
> > Moose-dev mailing list
> > [hidden email]
> > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
>
> --
> www.tudorgirba.com
>
> "Every thing has its own flow"
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev