Since the workspace is hidden (*)... what's the recommended procedure
to open a smalltalk script file (.st or .ws) without having to open the FileBrowser?(**) Regards, Esteban A. Maringolo (*) I had to run "Workspace open" in a playground. (**) Which in fact doesn't open the file, but a workspace with its contents. |
2015-04-30 20:36 GMT+02:00 Esteban A. Maringolo <[hidden email]>: Since the workspace is hidden (*)... what's the recommended procedure you can use inspector to open the directory. 'directory_with_your_st_file' asFileReference inspect. in the inspector you can navigate through the directory or select a file and for example for a .st file the menu offers a "do it and open" entry, this will execute the selected code and open an inspector tab on the result. |
2015-04-30 16:14 GMT-03:00 Nicolai Hess <[hidden email]>:
> 2015-04-30 20:36 GMT+02:00 Esteban A. Maringolo <[hidden email]>: >> >> Since the workspace is hidden (*)... what's the recommended procedure >> to open a smalltalk script file (.st or .ws) without having to open >> the FileBrowser?(**) > you can use inspector to open the directory. > 'directory_with_your_st_file' asFileReference inspect. > > in the inspector you can navigate through the directory > or select a file and for example for a .st file the menu offers a > "do it and open" entry, this will execute the selected code and open > an inspector tab on the result. So basically there is no way to "File -> Open" from the Playground. :) (nor a a way "File -> Save" its contents either [1]) I guess I'll keep opening a Workspace and continue the old way from there. Regards! Esteban A. Maringolo [1]: IMO this is taking the "no-files based" concept to the extreme. A step back if I could add. |
Just for info: you can get back the workspace into the settings (uncheck the playground button)
Le jeudi 30 avril 2015, Esteban A. Maringolo <[hidden email]> a écrit : 2015-04-30 16:14 GMT-03:00 Nicolai Hess <<a href="javascript:;" onclick="_e(event, 'cvml', 'nicolaihess@web.de')">nicolaihess@...>: -- Cheers Cyril Ferlicot |
2015-04-30 16:29 GMT-03:00 Cyril Ferlicot <[hidden email]>:
> Just for info: you can get back the workspace into the settings (uncheck the > playground button) Thanks, but that is an either-or choice. I do love Playground, but for exploratory coding and or interactions. If it is meant to replace the Workspace I want to preserve its basic features (open/save at least). Regards, Esteban. |
There is a way to have both I think but I don't have my laptop now to check
Le jeudi 30 avril 2015, Esteban A. Maringolo <[hidden email]> a écrit : 2015-04-30 16:29 GMT-03:00 Cyril Ferlicot <<a href="javascript:;" onclick="_e(event, 'cvml', 'cyril.ferlicot@gmail.com')">cyril.ferlicot@...>: -- Cheers Cyril Ferlicot |
Depending on what you want to do playground has a way to manage external files with smalltalk scripts. If you double click in the Page tab in the playground you will be able to rename it. If you rename it to 'customScript' and hit enter a file is created in the folder play-stash from the current image directory. Then whatever you type in the playground is saved in that file. If you then open spotter and search for 'customScript' you will see the file. Select the file and hit enter and then a playground is opened linked again with that file. Cheers, Andrei On Thu, Apr 30, 2015 at 9:49 PM, Cyril Ferlicot <[hidden email]> wrote: There is a way to have both I think but I don't have my laptop now to check |
Oh, I didn't knew that. Is there other features like this ?
Le jeudi 30 avril 2015, Andrei Chis <[hidden email]> a écrit :
-- Cheers Cyril Ferlicot |
In reply to this post by Andrei Chis
Exactly. There are two ways to discover a past workspace: - If you simply search in Spotter for contents, you will get a category with Playground pages in there. - If you want to label your page, you can give it a name by double clicking on the "Page" tab and entering your name (like Andrei said). Afterwards, you can search in Spotter by that name and you will get a Named playground pages category. We want to move away from managing files because the information should be where you need it without requiring you to deal with low level details such as managing a script on the disk. Cheers, Doru On Thu, Apr 30, 2015 at 9:57 PM, Andrei Chis <[hidden email]> wrote:
|
Administrator
|
In reply to this post by Esteban A. Maringolo
If you just want it for your own personal use, why not just add it back to the world menu via a startup script?
Cheers,
Sean |
2015-04-30 19:08 GMT-03:00 Sean P. DeNigris <[hidden email]>:
> Esteban A. Maringolo wrote >> Since the workspace is hidden (*) > > If you just want it for your own personal use, why not just add it back to > the world menu via a startup script? Truth is because I don't know how. I could look, but I know myself, and I'll type "Workspace open" a thousand times before doing it. There are 978 to go... :P However now it is confirmed that this omission was "by design", I think it was a bad decision, whatever is the rationale behind it. I'll get used to it, but I can bet really hard that newcomers won't. Regards! Esteban A. Maringolo |
In reply to this post by Esteban A. Maringolo
I used to think like you (same names think alike ;) )
But Doru and Andrei convinced me that this way is better: 1) you actually have a save of everything you do in your Playground in play-cache subdirectory. You can even change the place your play-cache is, then you can share scripts between your images. You access them with the elipsis button (super cool, I never wrote an external file again after learning this). 2) you can name your playgrounds by double clicking the “Page” tab. Then they can be found with spotter easily. Some observations here: - would be cool if this named page appears also in the elipsis list (it doesn’t) - as I said to Doru, the fact that you can double click and change name is not obvious and I do not thing anyone has realised they can. Adding an edit icon or something that indicates the field is editable would be cool. please, before rejecting it and came back to older ways, give this a try… I thought as you (Doru can testify how strong I was on it) and now I’m convinced this is a lot better and GTools team has a point here :) cheers, Esteban > On 30 Apr 2015, at 21:24, Esteban A. Maringolo <[hidden email]> wrote: > > 2015-04-30 16:14 GMT-03:00 Nicolai Hess <[hidden email]>: >> 2015-04-30 20:36 GMT+02:00 Esteban A. Maringolo <[hidden email]>: >>> >>> Since the workspace is hidden (*)... what's the recommended procedure >>> to open a smalltalk script file (.st or .ws) without having to open >>> the FileBrowser?(**) > >> you can use inspector to open the directory. >> 'directory_with_your_st_file' asFileReference inspect. >> >> in the inspector you can navigate through the directory >> or select a file and for example for a .st file the menu offers a >> "do it and open" entry, this will execute the selected code and open >> an inspector tab on the result. > > So basically there is no way to "File -> Open" from the Playground. :) > (nor a a way "File -> Save" its contents either [1]) > > I guess I'll keep opening a Workspace and continue the old way from there. > > > Regards! > > Esteban A. Maringolo > > [1]: IMO this is taking the "no-files based" concept to the extreme. A > step back if I could add. > |
As a new user of Pharo, I can say that the use of Playground is not obvious at all (among other tools).
Things that should be more clear: Why there's not a Workspace? -> Playground replaces it What usual practices with old Workspaces have been changed/improved on Playground and how What new practices does Playground support I could provide the text and program the help if someone points me to where to do the changes (i.e. which methods/files/settings to modify or which functionality to implement or change). |
Administrator
|
I find this intriguing. I would think that Playground would only be confusing to longtime Smalltalkers, not new users who haven't gotten used to workspaces. Where does your workspace info come from - are you coming from another Smalltalk? Or is it because the documentation is out of date?
Cheers,
Sean |
Yes, I am a longtime smalltalker (since 2001) but new to Pharo On Fri, May 1, 2015 at 10:53 PM, Sean P. DeNigris <[hidden email]> wrote: Sergio Fedi wrote |
My previous smalltalks are Express, VisualAge and Pharo 1.2 but most of all Dolphin,
|
Administrator
|
Cool! From that unique perspective, how do you think we can balance prodding users to evolve without confusing users from other Smalltalks? The theory goes that if we just put Workspace back in the world menu, we will all stay happy and safe in 1980 instead of using the revolutionary GT tools. Would an explanation in the Welcome window help? Do people actually read those? If so, what would you write there to explain the situation?
Cheers,
Sean |
Administrator
|
And maybe after that snippet we can put the link to http://www.humane-assessment.com/blog/introducing-the-gtplayground/
Cheers,
Sean |
Oh! That link gives a GREAT explanation! Thanks.
On the subject of how to show it better, I'm not a graphic designer (although I'm working with one) so I'll ask him for some insights on the matter. and some other details. |
playground cache is actually not nice when scripts are to be part of a project with a name etc. And I have a ton of files in it. I can't remember which is which. I have scripts to do lots of cli things and I like the save as of the workspace. But I have done extra key bindings for getting the ws or the playground. Phil Le 2 mai 2015 06:49, "Sergio Fedi" <[hidden email]> a écrit :
|
Free forum by Nabble | Edit this page |