INTERACT FORUM

More => Old Versions => Media Center 11 (Development Ended) => Topic started by: urlwolf on January 26, 2005, 04:21:10 pm

Title: indexing files
Post by: urlwolf on January 26, 2005, 04:21:10 pm
The new document indexing got me thinking.

I have some source code files that I want to index. They are plain text files with extension .R. Can I get MC11 to index these files too? It indexes .txt files... is there any way to tell it to look for .R files too?

Thanks
Title: Re: indexing files
Post by: JimH on January 26, 2005, 04:54:15 pm
It does do some source files -- .c and .h, I think.  Did you try it?
Title: Re: indexing files
Post by: Alex B on January 26, 2005, 06:43:17 pm
MC doesn't import ".R" files.

I don't know if this would work in your case, but you can rename your files temporally to ".txt". After they are imported you can use MC's Find and Replace tool for naming them back. For the first renaming you could use this handy tool: http://www.fauland.com/af5.htm.
Title: Re: indexing files
Post by: JimH on January 26, 2005, 07:09:56 pm
We can probably add the .r file type.  What are they?
Title: Re: indexing files
Post by: urlwolf on January 27, 2005, 09:12:39 am
They are source files (like .c, .k) for a language called R:

www.R-project.org

It is what most statisticians use. Very handy. The thing is that I have files all over the place and sometimes I need to retrieve a particular chunk of code.

Maybe it'd be better to have a way to tell MC "treat the following extensions as .txt". Other people may want to index other source files, and that would do the trick.

Cheers
Title: Re: indexing files
Post by: JimH on January 27, 2005, 09:19:03 am
You might be able to add it to the registry entry:

HKEY_CURRENT_USER\Software\JRiver\Media Center 11\Properties\Import - Selected Types
Title: Re: indexing files
Post by: urlwolf on January 27, 2005, 11:00:34 am
You might be able to add it to the registry entry:

HKEY_CURRENT_USER\Software\JRiver\Media Center 11\Properties\Import - Selected Types

hmm,
Under properties, I only have:
Keywords
Libraries
RC transmitters

Is that normal?
Title: Re: indexing files
Post by: Alex B on January 27, 2005, 11:21:02 am
Did your click the Properties key title?
There should be about 200 values directly under it.
Don't go to subcategories.

Are you using regedit.exe?
Title: Re: indexing files
Post by: urlwolf on January 27, 2005, 11:46:31 am
yes, I'm using regedit.
I add the value to the list of filetypes, but it doesn't stay added.
as soon as I close regEdit, it's gone.
And when opening MC, we have the same extension list.

Why is that?
Title: Re: indexing files
Post by: urlwolf on January 29, 2005, 12:12:52 pm
* bump *

for this general regEdit question that could solve the problem