Persistent Workspace
Trygve Reenskaug
trygver at ifi.uio.no
Sat Feb 28 20:34:08 UTC 2004
Thanks Stef,
I'm running Squeak3.6-5429. And you are right! There is a 'file it in'
command towards the top of the second menu, hidden between 'pretty print
with color' and 'tiles from it'. But it seems to take the selected text as
a file name and fileIn that file. Not quite what I need..
There is also a command towards the bottom of the same menu:
'save contents to file...'.
It writes a file with extension '.text', the file seems to contain the
workspace characters, but no emphasis. I like to keep a distinction between
Text and String, they are so often confused in the big world out there. I
am also surprised that the corresponding 'read contents from file...' is
missing. I used the accept and cancel commands, because that simply makes
the Workspace persistent.
The Workspace has a three level menu with an extraordinary set of commands.
So may be the two commands I need are hidden somewhere, but I haven't found
them.
The reason I have used a special extension is that I am used to our OOram
FileList that opens a Workspace automagically (We can say 'open' to
.st-files, .ws-files and quite a few others and get the proper tool).
So the question remains: Is the '.ws'-extension free?
--Trygve
At 28.02.2004 20:18, you wrote:
>Hi trygve
>
>In 5707 the workspace menu proposes save contents to a file or to append
>it. I did not not check in 3.6
>but I remember that I harvested it so this should not be in 3.6 but is in
>3.7alpha
>
>Stef
>
>
>On 28 févr. 04, at 16:39, Trygve Reenskaug wrote:
>
>>I have added/modified two methods to make the Workspace text persistent.
>>'accept' writes the text to a Text file, default name is the name of the
>>window. 'cancel' reads a corresponding file.
>>
>>Now a question before I publish this very small small goodie:
>> I have used '.ws' as file extension. Does that conflict with anything
>> else?
>> If so, what should I use?
>>
>>Regards
>>--Trygve
>>
>>P.S. I use persistent workspaces as notebooks/logs so that I remember how
>>to recreate my working image from scratch.
>>
>>--
>>
>>Trygve Reenskaug mailto: trygver at ifi.uio.no
>>Morgedalsvn. 5A http://heim.ifi.uio.no/~trygver
>>N-0378 Oslo Tel: (+47) 22 49 57 27
>>Norway
>>
>>
>
>
--
Trygve Reenskaug mailto: trygver at ifi.uio.no
Morgedalsvn. 5A http://heim.ifi.uio.no/~trygver
N-0378 Oslo Tel: (+47) 22 49 57 27
Norway
More information about the Squeak-dev
mailing list
|