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

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Wed Oct 7 16:56:48 UTC 2009


In st80, there was also a nice feature: * and ? would also apply to any part
of the hierarchy
like: /home/nice/squeak/*/*.cs

Nicolas

2009/10/7 Bert Freudenberg <bert at freudenbergs.de>

>
> On 07.10.2009, at 17:41, Andreas Raab wrote:
>
>  > 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).
>>
>
> IMHO if there is neither a directory given nor a wild card, a substring
> search should be performed.
>
> - Bert -
>
>
>  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.
>>>
>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20091007/936abfda/attachment.htm


More information about the Squeak-dev mailing list