FileList "Workspace from Foo.txt" is a redundant OCD nightmare

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

FileList "Workspace from Foo.txt" is a redundant OCD nightmare

Squeak - Dev mailing list
Ignore as fitting



FileList >>viewContentsInWorkspace
"View the contents of my selected file in a new workspace"

| aString aFileStream aName |
aString := (aFileStream := directory readOnlyFileNamed: self fullName) setConverterForCode contentsOfEntireFile.
aName := aFileStream localName.
aFileStream close.
UIManager default edit: aString withSqueakLineEndings label: 'Workspace from ', aName

maybe its the OCD in me, but that verbiage preceding the file name at the top of a workspace is redundant and annoying.

1. redundant--it is at the top of a Workspace.
2. the infinitely expanding title ala Worspace from Workspace from Worspace from Workspace from Foo.txt
3. I have to edit each title upon file in. see OCD above.


A simple change to the method:
FileList >> viewContentsInWorkspace
"View the contents of my selected file in a new workspace"

| aString aFileStream aName |
aString := (aFileStream := directory readOnlyFileNamed: self fullName) setConverterForCode contentsOfEntireFile.
aName := aFileStream localName.
aFileStream close.
UIManager default edit: aString withSqueakLineEndings label: aName



eradicates the OCD nightmare  



cheers,

tty



Reply | Threaded
Open this post in threaded view
|

Re: FileList "Workspace from Foo.txt" is a redundant OCD nightmare

Eliot Miranda-2
Hi Tim,


On Oct 18, 2020, at 3:57 AM, gettimothy via Squeak-dev <[hidden email]> wrote:


Ignore as fitting

I can join you; this gets on my tits.




FileList >>viewContentsInWorkspace
"View the contents of my selected file in a new workspace"

| aString aFileStream aName |
aString := (aFileStream := directory readOnlyFileNamed: self fullName) setConverterForCode contentsOfEntireFile.
aName := aFileStream localName.
aFileStream close.
UIManager default edit: aString withSqueakLineEndings label: 'Workspace from ', aName

maybe its the OCD in me, but that verbiage preceding the file name at the top of a workspace is redundant and annoying.

1. redundant--it is at the top of a Workspace.
2. the infinitely expanding title ala Worspace from Workspace from Worspace from Workspace from Foo.txt
3. I have to edit each title upon file in. see OCD above.


A simple change to the method:
FileList >> viewContentsInWorkspace
"View the contents of my selected file in a new workspace"

| aString aFileStream aName |
aString := (aFileStream := directory readOnlyFileNamed: self fullName) setConverterForCode contentsOfEntireFile.
aName := aFileStream localName.
aFileStream close.
UIManager default edit: aString withSqueakLineEndings label: aName



eradicates the OCD nightmare  

The only thing I’d suggest differently is that it check if the file name contains “Workspace’ and if not, still adds the ‘Workspace from ’ prefix.

cheers,

tty


Reply | Threaded
Open this post in threaded view
|

Re: FileList "Workspace from Foo.txt" is a redundant OCD nightmare

Squeak - Dev mailing list
I send the list a change set years ago and was ignored, the current version I use also preserve the lineConversion and remember the name for save:



On 18 Oct 2020, at 07:41, Eliot Miranda <[hidden email]> wrote:

Hi Tim,


On Oct 18, 2020, at 3:57 AM, gettimothy via Squeak-dev <[hidden email]> wrote:


Ignore as fitting

I can join you; this gets on my tits.




FileList >>viewContentsInWorkspace
"View the contents of my selected file in a new workspace"

| aString aFileStream aName |
aString := (aFileStream := directory readOnlyFileNamed: self fullName) setConverterForCode contentsOfEntireFile.
aName := aFileStream localName.
aFileStream close.
UIManager default edit: aString withSqueakLineEndings label: 'Workspace from ',aName

maybe its the OCD in me, but that verbiage preceding the file name at the top of a workspace is redundant and annoying.

1. redundant--it is at the top of a Workspace.
2. the infinitely expanding title ala Worspace from Workspace from Worspace from Workspace from Foo.txt
3. I have to edit each title upon file in. see OCD above.


A simple change to the method:
FileList >> viewContentsInWorkspace
"View the contents of my selected file in a new workspace"

| aString aFileStream aName |
aString := (aFileStream := directory readOnlyFileNamed: self fullName) setConverterForCode contentsOfEntireFile.
aName := aFileStream localName.
aFileStream close.
UIManager default edit: aString withSqueakLineEndings label: aName



eradicates the OCD nightmare  

The only thing I’d suggest differently is that it check if the file name contains “Workspace’ and if not, still adds the ‘Workspace from ’ prefix.

cheers,

tty




BetterSaveWorkspace.5.cs (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: FileList "Workspace from Foo.txt" is a redundant OCD nightmare

Eliot Miranda-2
Thanks Javier, I integrated it today.  Finally :-)

On Sun, Oct 18, 2020 at 8:59 AM Javier Diaz-Reinoso via Squeak-dev <[hidden email]> wrote:
I send the list a change set years ago and was ignored, the current version I use also preserve the lineConversion and remember the name for save:


On 18 Oct 2020, at 07:41, Eliot Miranda <[hidden email]> wrote:

Hi Tim,


On Oct 18, 2020, at 3:57 AM, gettimothy via Squeak-dev <[hidden email]> wrote:


Ignore as fitting

I can join you; this gets on my tits.




FileList >>viewContentsInWorkspace
"View the contents of my selected file in a new workspace"

| aString aFileStream aName |
aString := (aFileStream := directory readOnlyFileNamed: self fullName) setConverterForCode contentsOfEntireFile.
aName := aFileStream localName.
aFileStream close.
UIManager default edit: aString withSqueakLineEndings label: 'Workspace from ',aName

maybe its the OCD in me, but that verbiage preceding the file name at the top of a workspace is redundant and annoying.

1. redundant--it is at the top of a Workspace.
2. the infinitely expanding title ala Worspace from Workspace from Worspace from Workspace from Foo.txt
3. I have to edit each title upon file in. see OCD above.


A simple change to the method:
FileList >> viewContentsInWorkspace
"View the contents of my selected file in a new workspace"

| aString aFileStream aName |
aString := (aFileStream := directory readOnlyFileNamed: self fullName) setConverterForCode contentsOfEntireFile.
aName := aFileStream localName.
aFileStream close.
UIManager default edit: aString withSqueakLineEndings label: aName



eradicates the OCD nightmare  

The only thing I’d suggest differently is that it check if the file name contains “Workspace’ and if not, still adds the ‘Workspace from ’ prefix.

cheers,

tty




--
_,,,^..^,,,_
best, Eliot


Reply | Threaded
Open this post in threaded view
|

Re: FileList "Workspace from Foo.txt" is a redundant&nbsp; &nbsp; &nbsp; &nbsp; OCD nightmare

Squeak - Dev mailing list
Thabk you.


I am not sure if this other OCD nightmare has been addressed in this discusion, bot the tail end of the title suffers from a similar issue.

Workspace titled OCD.txt, save workspace contents to file->  OCD.txt.txt
File in contents to Workspace...
Workspace titled OCD.txt.txt  save workspace contents to file->  OCD.txt.txt.txt
.....

Cheers


---- On Mon, 19 Oct 2020 20:19:19 -0400 [hidden email] wrote ----

Thanks Javier, I integrated it today.  Finally :-)

On Sun, Oct 18, 2020 at 8:59 AM Javier Diaz-Reinoso via Squeak-dev <[hidden email]> wrote:
I send the list a change set years ago and was ignored, the current version I use also preserve the lineConversion and remember the name for save:


On 18 Oct 2020, at 07:41, Eliot Miranda <[hidden email]> wrote:

Hi Tim,


On Oct 18, 2020, at 3:57 AM, gettimothy via Squeak-dev <[hidden email]> wrote:


Ignore as fitting

I can join you; this gets on my tits.




FileList >>viewContentsInWorkspace
"View the contents of my selected file in a new workspace"

| aString aFileStream aName |
aString := (aFileStream := directory readOnlyFileNamed: self fullName) setConverterForCode contentsOfEntireFile.
aName := aFileStream localName.
aFileStream close.
UIManager default edit: aString withSqueakLineEndings label: 'Workspace from ',aName

maybe its the OCD in me, but that verbiage preceding the file name at the top of a workspace is redundant and annoying.

1. redundant--it is at the top of a Workspace.
2. the infinitely expanding title ala Worspace from Workspace from Worspace from Workspace from Foo.txt
3. I have to edit each title upon file in. see OCD above.


A simple change to the method:
FileList >> viewContentsInWorkspace
"View the contents of my selected file in a new workspace"

| aString aFileStream aName |
aString := (aFileStream := directory readOnlyFileNamed: self fullName) setConverterForCode contentsOfEntireFile.
aName := aFileStream localName.
aFileStream close.
UIManager default edit: aString withSqueakLineEndings label: aName



eradicates the OCD nightmare  

The only thing I’d suggest differently is that it check if the file name contains “Workspace’ and if not, still adds the ‘Workspace from ’ prefix.

cheers,

tty




--
_,,,^..^,,,_
best, Eliot




Reply | Threaded
Open this post in threaded view
|

Re: FileList "Workspace from Foo.txt" is a redundant&nbsp; &nbsp; &nbsp; &nbsp; OCD nightmare

Squeak - Dev mailing list
Not with this change.

On 19 Oct 2020, at 20:29, gettimothy via Squeak-dev <[hidden email]> wrote:

Thabk you.


I am not sure if this other OCD nightmare has been addressed in this discusion, bot the tail end of the title suffers from a similar issue.

Workspace titled OCD.txt, save workspace contents to file->  OCD.txt.txt
File in contents to Workspace...
Workspace titled OCD.txt.txt  save workspace contents to file->  OCD.txt.txt.txt
.....

Cheers


---- On Mon, 19 Oct 2020 20:19:19 -0400 [hidden email] wrote ----

Thanks Javier, I integrated it today.  Finally :-)

On Sun, Oct 18, 2020 at 8:59 AM Javier Diaz-Reinoso via Squeak-dev <[hidden email]> wrote:
I send the list a change set years ago and was ignored, the current version I use also preserve the lineConversion and remember the name for save:


On 18 Oct 2020, at 07:41, Eliot Miranda <[hidden email]> wrote:

Hi Tim,


On Oct 18, 2020, at 3:57 AM, gettimothy via Squeak-dev <[hidden email]> wrote:


Ignore as fitting

I can join you; this gets on my tits.




FileList >>viewContentsInWorkspace
"View the contents of my selected file in a new workspace"

| aString aFileStream aName |
aString := (aFileStream := directory readOnlyFileNamed: self fullName) setConverterForCode contentsOfEntireFile.
aName := aFileStream localName.
aFileStream close.
UIManager default edit: aString withSqueakLineEndings label: 'Workspace from ',aName

maybe its the OCD in me, but that verbiage preceding the file name at the top of a workspace is redundant and annoying.

1. redundant--it is at the top of a Workspace.
2. the infinitely expanding title ala Worspace from Workspace from Worspace from Workspace from Foo.txt
3. I have to edit each title upon file in. see OCD above.


A simple change to the method:
FileList >> viewContentsInWorkspace
"View the contents of my selected file in a new workspace"

| aString aFileStream aName |
aString := (aFileStream := directory readOnlyFileNamed: self fullName) setConverterForCode contentsOfEntireFile.
aName := aFileStream localName.
aFileStream close.
UIManager default edit: aString withSqueakLineEndings label: aName



eradicates the OCD nightmare  

The only thing I’d suggest differently is that it check if the file name contains “Workspace’ and if not, still adds the ‘Workspace from ’ prefix.

cheers,

tty




--
_,,,^..^,,,_
best, Eliot






Reply | Threaded
Open this post in threaded view
|

Re: FileList "Workspace from Foo.txt" is a redundant&nbsp; &nbsp; &nbsp; &nbsp; OCD nightmare

Eliot Miranda-2


On Tue, Oct 20, 2020 at 10:26 AM Javier Diaz-Reinoso via Squeak-dev <[hidden email]> wrote:
Not with this change.

I tweaked it a bit.  It should be ok now.  If you'd like to review my massage of your code I'd appreciate it.

On 19 Oct 2020, at 20:29, gettimothy via Squeak-dev <[hidden email]> wrote:

Thabk you.


I am not sure if this other OCD nightmare has been addressed in this discusion, bot the tail end of the title suffers from a similar issue.

Workspace titled OCD.txt, save workspace contents to file->  OCD.txt.txt
File in contents to Workspace...
Workspace titled OCD.txt.txt  save workspace contents to file->  OCD.txt.txt.txt
.....

Cheers


---- On Mon, 19 Oct 2020 20:19:19 -0400 [hidden email] wrote ----

Thanks Javier, I integrated it today.  Finally :-)

On Sun, Oct 18, 2020 at 8:59 AM Javier Diaz-Reinoso via Squeak-dev <[hidden email]> wrote:
I send the list a change set years ago and was ignored, the current version I use also preserve the lineConversion and remember the name for save:


On 18 Oct 2020, at 07:41, Eliot Miranda <[hidden email]> wrote:

Hi Tim,


On Oct 18, 2020, at 3:57 AM, gettimothy via Squeak-dev <[hidden email]> wrote:


Ignore as fitting

I can join you; this gets on my tits.




FileList >>viewContentsInWorkspace
"View the contents of my selected file in a new workspace"

| aString aFileStream aName |
aString := (aFileStream := directory readOnlyFileNamed: self fullName) setConverterForCode contentsOfEntireFile.
aName := aFileStream localName.
aFileStream close.
UIManager default edit: aString withSqueakLineEndings label: 'Workspace from ',aName

maybe its the OCD in me, but that verbiage preceding the file name at the top of a workspace is redundant and annoying.

1. redundant--it is at the top of a Workspace.
2. the infinitely expanding title ala Worspace from Workspace from Worspace from Workspace from Foo.txt
3. I have to edit each title upon file in. see OCD above.


A simple change to the method:
FileList >> viewContentsInWorkspace
"View the contents of my selected file in a new workspace"

| aString aFileStream aName |
aString := (aFileStream := directory readOnlyFileNamed: self fullName) setConverterForCode contentsOfEntireFile.
aName := aFileStream localName.
aFileStream close.
UIManager default edit: aString withSqueakLineEndings label: aName



eradicates the OCD nightmare  

The only thing I’d suggest differently is that it check if the file name contains “Workspace’ and if not, still adds the ‘Workspace from ’ prefix.

cheers,

tty




--
_,,,^..^,,,_
best, Eliot







--
_,,,^..^,,,_
best, Eliot


Reply | Threaded
Open this post in threaded view
|

Re: FileList "Workspace from Foo.txt" is a redundant&nbsp; &nbsp; &nbsp; &nbsp; OCD nightmare

Squeak - Dev mailing list
I find you like the 'Workspace from ', I think at first I conserve that but then I discard as redundant, but if you need that the change is OK with me.

By the way I also have a hack for your PluggableSystemWindowWithLabelButton, I don't like the hidden (magic?) button, I always try to move the window and instead the menu pop up, so I modify the button as a visible and with '<=>' as the label, remind me of the Previous, Next arrows in other text editors like XCode:

I think you probably don't like that also, but I always have the 'extra st' folder for my modifications, thats is the things I like in Squeak.

On 20 Oct 2020, at 12:31, Eliot Miranda <[hidden email]> wrote:



On Tue, Oct 20, 2020 at 10:26 AM Javier Diaz-Reinoso via Squeak-dev <[hidden email]> wrote:
Not with this change.

I tweaked it a bit.  It should be ok now.  If you'd like to review my massage of your code I'd appreciate it.

On 19 Oct 2020, at 20:29, gettimothy via Squeak-dev <[hidden email]> wrote:

Thabk you.


I am not sure if this other OCD nightmare has been addressed in this discusion, bot the tail end of the title suffers from a similar issue.

Workspace titled OCD.txt, save workspace contents to file->  OCD.txt.txt
File in contents to Workspace...
Workspace titled OCD.txt.txt  save workspace contents to file->  OCD.txt.txt.txt
.....

Cheers


---- On Mon, 19 Oct 2020 20:19:19 -0400 [hidden email] wrote ----

Thanks Javier, I integrated it today.  Finally :-)

On Sun, Oct 18, 2020 at 8:59 AM Javier Diaz-Reinoso via Squeak-dev <[hidden email]> wrote:
I send the list a change set years ago and was ignored, the current version I use also preserve the lineConversion and remember the name for save:


On 18 Oct 2020, at 07:41, Eliot Miranda <[hidden email]> wrote:

Hi Tim,


On Oct 18, 2020, at 3:57 AM, gettimothy via Squeak-dev <[hidden email]> wrote:


Ignore as fitting

I can join you; this gets on my tits.




FileList >>viewContentsInWorkspace
"View the contents of my selected file in a new workspace"

| aString aFileStream aName |
aString := (aFileStream := directory readOnlyFileNamed: self fullName) setConverterForCode contentsOfEntireFile.
aName := aFileStream localName.
aFileStream close.
UIManager default edit: aString withSqueakLineEndings label: 'Workspace from ',aName

maybe its the OCD in me, but that verbiage preceding the file name at the top of a workspace is redundant and annoying.

1. redundant--it is at the top of a Workspace.
2. the infinitely expanding title ala Worspace from Workspace from Worspace from Workspace from Foo.txt
3. I have to edit each title upon file in. see OCD above.


A simple change to the method:
FileList >> viewContentsInWorkspace
"View the contents of my selected file in a new workspace"

| aString aFileStream aName |
aString := (aFileStream := directory readOnlyFileNamed: self fullName) setConverterForCode contentsOfEntireFile.
aName := aFileStream localName.
aFileStream close.
UIManager default edit: aString withSqueakLineEndings label: aName



eradicates the OCD nightmare  

The only thing I’d suggest differently is that it check if the file name contains “Workspace’ and if not, still adds the ‘Workspace from ’ prefix.

cheers,

tty




-- 
_,,,^..^,,,_
best, Eliot







-- 
_,,,^..^,,,_
best, Eliot



Reply | Threaded
Open this post in threaded view
|

Re: FileList "Workspace from Foo.txt" is a redundant&nbsp; &nbsp; &nbsp; &nbsp; OCD nightmare

Eliot Miranda-2
Hi Javier,

On Tue, Oct 20, 2020 at 12:27 PM Javier Diaz-Reinoso via Squeak-dev <[hidden email]> wrote:
I find you like the 'Workspace from ', I think at first I conserve that but then I discard as redundant, but if you need that the change is OK with me.

It's not that I like it or don't.  It's the way the system worked and one shouldn't break things like that just for personal preference.  So in integrating your code I had two criteria
- fix the bugs (your code to track the directory and line ending, and to get the title and save name right, is clearly an improvement)
- don't change the observable behaviour except in eliminating bugs

I'm happy not to have "Workspace from ..." in the title but I don't get to just do that on a whim.  That would need to be discussed and something close to consensus reached before it could be changed.


By the way I also have a hack for your PluggableSystemWindowWithLabelButton, I don't like the hidden (magic?) button, I always try to move the window and instead the menu pop up, so I modify the button as a visible and with '<=>' as the label, remind me of the Previous, Next arrows in other text editors like XCode:

I think you probably don't like that also, but I always have the 'extra st' folder for my modifications, thats is the things I like in Squeak.

On 20 Oct 2020, at 12:31, Eliot Miranda <[hidden email]> wrote:



On Tue, Oct 20, 2020 at 10:26 AM Javier Diaz-Reinoso via Squeak-dev <[hidden email]> wrote:
Not with this change.

I tweaked it a bit.  It should be ok now.  If you'd like to review my massage of your code I'd appreciate it.

On 19 Oct 2020, at 20:29, gettimothy via Squeak-dev <[hidden email]> wrote:

Thabk you.


I am not sure if this other OCD nightmare has been addressed in this discusion, bot the tail end of the title suffers from a similar issue.

Workspace titled OCD.txt, save workspace contents to file->  OCD.txt.txt
File in contents to Workspace...
Workspace titled OCD.txt.txt  save workspace contents to file->  OCD.txt.txt.txt
.....

Cheers


---- On Mon, 19 Oct 2020 20:19:19 -0400 [hidden email] wrote ----

Thanks Javier, I integrated it today.  Finally :-)

On Sun, Oct 18, 2020 at 8:59 AM Javier Diaz-Reinoso via Squeak-dev <[hidden email]> wrote:
I send the list a change set years ago and was ignored, the current version I use also preserve the lineConversion and remember the name for save:


On 18 Oct 2020, at 07:41, Eliot Miranda <[hidden email]> wrote:

Hi Tim,


On Oct 18, 2020, at 3:57 AM, gettimothy via Squeak-dev <[hidden email]> wrote:


Ignore as fitting

I can join you; this gets on my tits.




FileList >>viewContentsInWorkspace
"View the contents of my selected file in a new workspace"

| aString aFileStream aName |
aString := (aFileStream := directory readOnlyFileNamed: self fullName) setConverterForCode contentsOfEntireFile.
aName := aFileStream localName.
aFileStream close.
UIManager default edit: aString withSqueakLineEndings label: 'Workspace from ',aName

maybe its the OCD in me, but that verbiage preceding the file name at the top of a workspace is redundant and annoying.

1. redundant--it is at the top of a Workspace.
2. the infinitely expanding title ala Worspace from Workspace from Worspace from Workspace from Foo.txt
3. I have to edit each title upon file in. see OCD above.


A simple change to the method:
FileList >> viewContentsInWorkspace
"View the contents of my selected file in a new workspace"

| aString aFileStream aName |
aString := (aFileStream := directory readOnlyFileNamed: self fullName) setConverterForCode contentsOfEntireFile.
aName := aFileStream localName.
aFileStream close.
UIManager default edit: aString withSqueakLineEndings label: aName



eradicates the OCD nightmare  

The only thing I’d suggest differently is that it check if the file name contains “Workspace’ and if not, still adds the ‘Workspace from ’ prefix.

cheers,

tty




-- 
_,,,^..^,,,_
best, Eliot







-- 
_,,,^..^,,,_
best, Eliot




--
_,,,^..^,,,_
best, Eliot