I am trying to do something very similar to Simple Plugin. Namely, I have strings in my DSL that refer to rows in a CSV file, that I need to refer to.
There are some differences.
I could not find any functioning plugin for CSV files (strangely, because there is such an abundance of plugins for everything else!), so my CSV at first was a plain text file. Using plain text files approach, it is my understanding that I would need to fetch all CSV files in the project, then parse all of them manually until I found the file(s) with the key I am looking for.
That sounds inefficient, especially given that I could not find a way to look up files by extension, and my project has >2000 plain text files (with various extensions) and growing. This way, I am not taking advantage of IntelliJ indexing capabilities, right? What do I do if one of these files change?
So in my second attempt, I started writing my own plugin for CSV. Problem is, now that CSV is a file type, it no longer opens in "Table Mode", and I kind of liked the Table Mode. Is there still a way to do it?
While at it, a tangential question: is there an API for Table Mode? I.e. could I open a CSV in table mode programmatically, with specific settings, and programmatically select the row I need?