Re: plain text and Spotlight
Re: plain text and Spotlight
- Subject: Re: plain text and Spotlight
- From: The Karl Adam <email@hidden>
- Date: Mon, 9 May 2005 16:56:25 -0400
Okay, I'm confused as to the reasoning behind this, especially
considering the fact that one importer can not call on another
importer. Basically for all web scripting extensions there would be no
spotlight handler unless someone writes one, but all these extensions
are in no way special. Either the SourceCode importer or the plaintext
importer could easily handle these types.
For non-text types it's a bit more obvious that processing a DivX AVI
as a quicktime-movie might not work well, XML would also be
problematic as there is no way to discern which tags hold the actually
important strings of information. Plain-text seems like it should be a
special exception since plain text can never have anything besides
standard text and formatting.
Are we going to just have to write one large web developer importer
for php, cgi, asp, aspx, css, jsp, etc?
-Karl
On 5/9/05, Vince DeMarco <email@hidden> wrote:
>
> On May 9, 2005, at 6:23 AM, The Karl Adam wrote:
>
> > There really is no need for this, as it will automatically happen when
> > a UTI aware text editor is installed. When this new text editor claims
> > the cgi type as a UTI type that inherits from com.public.plain-text
> > for example, Spotlight should read those files with the most specific
> > importer available. So if there is no importer for cgi, it should fall
> > back on the plain text importer.
>
> But Spotlight doesn't work this way, it will only pick the specific
> importer for a file, it does not walk up the tree.
>
> We did this on purpose.
>
> Vince
>
> > -Karl
> >
> > On 5/8/05, Jacob Michaelson <email@hidden> wrote:
> >
> >> Hi All,
> >>
> >> First time poster here.
> >>
> >> I like the idea of Spotlight, but find it a little limiting in its
> >> default configuration. It seems to index the content of plain text
> >> (.txt) files, but not other plain text files (ie ones that don't
> >> have a
> >> .txt extension). Is there a way to coax Spotlight into seeing, for
> >> example, files with a .cgi extension as a plain text file so that its
> >> contents are indexed and included when searching?
> >> This would be very, very helpful to me and I'm sure many others. I
> >> don't think this requires a new importer be written, as Spotlight
> >> already knows how to handle .txt files; it just needs to be "tricked"
> >> into seeing other file types as plain text, too.
> >>
> >> Thanks in advance,
> >>
> >> Jake
> >> _______________________________________________
> >> Do not post admin requests to the list. They will be ignored.
> >> Cocoa-dev mailing list (email@hidden)
> >> Help/Unsubscribe/Update your Subscription:
> >> 40gmail.com
> >>
> >> This email sent to email@hidden
> >>
> >>
> > _______________________________________________
> > Do not post admin requests to the list. They will be ignored.
> > Cocoa-dev mailing list (email@hidden)
> > Help/Unsubscribe/Update your Subscription:
> >
> > This email sent to email@hidden
> >
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden