I regularly work with a few sorts of plain text files, some of these are code files that I want to open in a programmer's text editor, others are large (gigabyte or more) data files that I only want to see in gedit. Nautilus' file association system considers all of these to be plain text files though, based on its determination of mime type, and saves only one preferred application for all of them.
Editing code in gedit is not fantastic, but accidentally opening a large data file in my relatively heavyweight code editor brings my system to a crawl for tens of minutes.
Is there any way to set up the file association system to use file extensions rather than mime type? Or some other solution that will let me set different preferences by file extension?
Thanks!