make code indexing pref more generic (not just for R source files)