[squeak-dev] Re: Selection in new file list

Andreas Raab andreas.raab at gmx.de
Wed Oct 7 15:41:37 UTC 2009


 > What do others think.

Two thoughts: First, I would only consider the last portion a pattern if 
it includes a wild card (there is little point in having a wild card 
that matches at most one file I think).

Secondly, I would walk the tree and select the directory "closest to" 
the chosen input. Meaning that if there's a typo you end up as close as 
we can make it to the chosen location.

Cheers,
   - Andreas

Torsten Bergmann wrote:
> The new File list is nice, but it still has a problem
> with the selection in the tree after typing.
> 
> On win32 if one types C:\temp and hits ENTER the folder 
> is not selected in the tree. 
> 
> If one enters C:\temp\ and ENTER it is selected. I think 
> both options should be possible (since this is similar 
> behavior as in Windows Explorer, and yes I'm biased). 
> 
> The reason is that anything after the "pathNameDelimiter"
> is always identified as pattern.
> See implementation in FileList>>pathAndPattern:
> 
> One possible solution could to check first if a subdirectory
> with the extracted pattern exists
> "(FileDirectory on: base) fileOrDirectoryExists: pat"
> and react accordingly (ignore it as pattern and add it to the
> base).
> 
> What do others think. 
> 
> Bye
> T.




More information about the Squeak-dev mailing list