[DesktopManager][Question] How do I jump to a particular desktop?

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

[DesktopManager][Question] How do I jump to a particular desktop?

Hannes Hirzel
Hello

I have loaded your DesktopManager package into Pharo 6/6.1. It is
useful as always!

A remark:

If I open a new desktop the desktop is white and not black (New Pharo
'dark' theme). I have to choose the theme manually through the
'Settings' dialog, searching for 'theme' and then reconfirming that I
want the 'dark' theme.


A question:

I Squeak I can jump to a particular 'desktop' (actually 'Project'
there ) with some code [1] in a workspace (playground) like

      (Project named: 'Pillar') enter

Is there a similar construction with the DesktopManager?

To jump to another desktop with a code snipped is useful as the number
of Desktops increases. Currently I have 14 and it may increase up to
50.

This also helps to create buttons to jump to a particular desktop.

Thank you for the answer in advance

Hannes Hirzel


[1] http://wiki.squeak.org/squeak/1013

Reply | Threaded
Open this post in threaded view
|

Re: [DesktopManager][Question] How do I jump to a particular desktop?

Hannes Hirzel
P.S. I just realized that the 'Spotter' opens a desktop if I search for it.

So with some specific naming I can quickly switch desktops this way as well.

On 8/25/17, H. Hirzel <[hidden email]> wrote:

> Hello
>
> I have loaded your DesktopManager package into Pharo 6/6.1. It is
> useful as always!
>
> A remark:
>
> If I open a new desktop the desktop is white and not black (New Pharo
> 'dark' theme). I have to choose the theme manually through the
> 'Settings' dialog, searching for 'theme' and then reconfirming that I
> want the 'dark' theme.
>
>
> A question:
>
> I Squeak I can jump to a particular 'desktop' (actually 'Project'
> there ) with some code [1] in a workspace (playground) like
>
>       (Project named: 'Pillar') enter
>
> Is there a similar construction with the DesktopManager?
>
> To jump to another desktop with a code snipped is useful as the number
> of Desktops increases. Currently I have 14 and it may increase up to
> 50.
>
> This also helps to create buttons to jump to a particular desktop.
>
> Thank you for the answer in advance
>
> Hannes Hirzel
>
>
> [1] http://wiki.squeak.org/squeak/1013
>

Reply | Threaded
Open this post in threaded view
|

Re: [DesktopManager][Question] How do I jump to a particular desktop?

Torsten Bergmann
Hi Hannes,

Code is on http://smalltalkhub.com/#!/~TorstenBergmann/DesktopManager
which points to this article:  https://medium.com/@astares/multiple-desktops-for-pharo-5cbc46f3179f
which should explain the details and that you can access the desktops using:

  Desktop manager desktops

You can also click "CTRL+D" folowed again by another "CTRL+D" (DesktopManager -> Desktops") to have a custom spotter
just for showing/switching the desktops.

There is also

CTRL + D followed by CTRL + A — “Desktop Add”
CTRL + D followed by CTRL + N — “Desktop Next”
CTRL + D followed by CTRL + P — “Desktop Previous”

The only downside is that the global shortcut handler catches the "CTRL+D" for DesktopManager but also
eats the same key event from the Playground which means the "do it" (which is also CTRL+D" is not
working in a Playground anymore when DesktopManager is installed.

Have not yet found a suitable solution for this. Contributions/fixes/ideas to solve this are very
welcome.

Thx
T.

> Gesendet: Freitag, 25. August 2017 um 14:56 Uhr
> Von: "H. Hirzel" <[hidden email]>
> An: [hidden email]
> Cc: "Any question about pharo is welcome" <[hidden email]>
> Betreff: Re: [DesktopManager][Question] How do I jump to a particular desktop?
>
> P.S. I just realized that the 'Spotter' opens a desktop if I search for it.
>
> So with some specific naming I can quickly switch desktops this way as well.
>
> On 8/25/17, H. Hirzel <[hidden email]> wrote:
> > Hello
> >
> > I have loaded your DesktopManager package into Pharo 6/6.1. It is
> > useful as always!
> >
> > A remark:
> >
> > If I open a new desktop the desktop is white and not black (New Pharo
> > 'dark' theme). I have to choose the theme manually through the
> > 'Settings' dialog, searching for 'theme' and then reconfirming that I
> > want the 'dark' theme.
> >
> >
> > A question:
> >
> > I Squeak I can jump to a particular 'desktop' (actually 'Project'
> > there ) with some code [1] in a workspace (playground) like
> >
> >       (Project named: 'Pillar') enter
> >
> > Is there a similar construction with the DesktopManager?
> >
> > To jump to another desktop with a code snipped is useful as the number
> > of Desktops increases. Currently I have 14 and it may increase up to
> > 50.
> >
> > This also helps to create buttons to jump to a particular desktop.
> >
> > Thank you for the answer in advance
> >
> > Hannes Hirzel
> >
> >
> > [1] http://wiki.squeak.org/squeak/1013
> >
>

Reply | Threaded
Open this post in threaded view
|

Re: [DesktopManager][Question] How do I jump to a particular desktop?

Hannes Hirzel
Hello Torsten

Thank you for the links to the DeskTopManager documentation.

I know can use playgrounds with expressions like

     (Desktop manager desktops detect: [ :dt |  dt name = 'Pillar
Morphic Renderer'])  useAsDesktop.

and

     (Desktop manager desktops detect: [ :dt |  dt name =
'PetitParser'])  useAsDesktop.


to quickly move to different desktops.

In my intallation I added a utility method so that I can do

    Desktop manager switchToDesktopNamed: 'TeaLight'



Kind regards
Hannes


[1] DeskTopManager>>switchToDesktopNamed:

switchToDesktopNamed: aString
       
         (Desktop manager desktops detect: [ :dt |  dt name = aString])  useAsDesktop.

On 8/25/17, Torsten Bergmann <[hidden email]> wrote:

> Hi Hannes,
>
> Code is on http://smalltalkhub.com/#!/~TorstenBergmann/DesktopManager
> which points to this article:
> https://medium.com/@astares/multiple-desktops-for-pharo-5cbc46f3179f
> which should explain the details and that you can access the desktops
> using:
>
>   Desktop manager desktops
>
> You can also click "CTRL+D" folowed again by another "CTRL+D"
> (DesktopManager -> Desktops") to have a custom spotter
> just for showing/switching the desktops.
>
> There is also
>
> CTRL + D followed by CTRL + A — “Desktop Add”
> CTRL + D followed by CTRL + N — “Desktop Next”
> CTRL + D followed by CTRL + P — “Desktop Previous”
>
> The only downside is that the global shortcut handler catches the "CTRL+D"
> for DesktopManager but also
> eats the same key event from the Playground which means the "do it" (which
> is also CTRL+D" is not
> working in a Playground anymore when DesktopManager is installed.
>
> Have not yet found a suitable solution for this. Contributions/fixes/ideas
> to solve this are very
> welcome.
>
> Thx
> T.
>
>> Gesendet: Freitag, 25. August 2017 um 14:56 Uhr
>> Von: "H. Hirzel" <[hidden email]>
>> An: [hidden email]
>> Cc: "Any question about pharo is welcome" <[hidden email]>
>> Betreff: Re: [DesktopManager][Question] How do I jump to a particular
>> desktop?
>>
>> P.S. I just realized that the 'Spotter' opens a desktop if I search for
>> it.
>>
>> So with some specific naming I can quickly switch desktops this way as
>> well.
>>
>> On 8/25/17, H. Hirzel <[hidden email]> wrote:
>> > Hello
>> >
>> > I have loaded your DesktopManager package into Pharo 6/6.1. It is
>> > useful as always!
>> >
>> > A remark:
>> >
>> > If I open a new desktop the desktop is white and not black (New Pharo
>> > 'dark' theme). I have to choose the theme manually through the
>> > 'Settings' dialog, searching for 'theme' and then reconfirming that I
>> > want the 'dark' theme.
>> >
>> >
>> > A question:
>> >
>> > I Squeak I can jump to a particular 'desktop' (actually 'Project'
>> > there ) with some code [1] in a workspace (playground) like
>> >
>> >       (Project named: 'Pillar') enter
>> >
>> > Is there a similar construction with the DesktopManager?
>> >
>> > To jump to another desktop with a code snipped is useful as the number
>> > of Desktops increases. Currently I have 14 and it may increase up to
>> > 50.
>> >
>> > This also helps to create buttons to jump to a particular desktop.
>> >
>> > Thank you for the answer in advance
>> >
>> > Hannes Hirzel
>> >
>> >
>> > [1] http://wiki.squeak.org/squeak/1013
>> >
>>
>