INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: indexing files  (Read 2350 times)

urlwolf

  • Regular Member
  • World Citizen
  • ***
  • Posts: 235
  • building gomotron!
indexing files
« 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
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72380
  • Where did I put my teeth?
Re: indexing files
« Reply #1 on: January 26, 2005, 04:54:15 pm »

It does do some source files -- .c and .h, I think.  Did you try it?
Logged

Alex B

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 10121
  • The Cosmic Bird
Re: indexing files
« Reply #2 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.
Logged
The Cosmic Bird - a triple merger of galaxies: http://eso.org/public/news/eso0755

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72380
  • Where did I put my teeth?
Re: indexing files
« Reply #3 on: January 26, 2005, 07:09:56 pm »

We can probably add the .r file type.  What are they?
Logged

urlwolf

  • Regular Member
  • World Citizen
  • ***
  • Posts: 235
  • building gomotron!
Re: indexing files
« Reply #4 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
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72380
  • Where did I put my teeth?
Re: indexing files
« Reply #5 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
Logged

urlwolf

  • Regular Member
  • World Citizen
  • ***
  • Posts: 235
  • building gomotron!
Re: indexing files
« Reply #6 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?
Logged

Alex B

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 10121
  • The Cosmic Bird
Re: indexing files
« Reply #7 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?
Logged
The Cosmic Bird - a triple merger of galaxies: http://eso.org/public/news/eso0755

urlwolf

  • Regular Member
  • World Citizen
  • ***
  • Posts: 235
  • building gomotron!
Re: indexing files
« Reply #8 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?
Logged

urlwolf

  • Regular Member
  • World Citizen
  • ***
  • Posts: 235
  • building gomotron!
Re: indexing files
« Reply #9 on: January 29, 2005, 12:12:52 pm »

* bump *

for this general regEdit question that could solve the problem
Logged
Pages: [1]   Go Up