I mainly use Google Chrome these days under Ubuntu (18.04) with the MATE desktop manager, but there is one thing I could not figure out yet:
If there is a link on a web site that points to e.g. a "bib" file, i.e. a BibTeX file with extension ".bib" Chrome wants to download it. All bib-files are really text files so I would want chrome to just show the text of the file in a browser window like it would for a text file (with extension .txt). The second best option would be if I could make Chrome to open the file in e.g. gedit based on its extension.
With Firefox it is possible to configure this directly in the browser, but Chrome delegates this, I think, to the OS, so how make sure it works in Ubuntu (at least the second-best option)?
Does this require different solutions depending on the desktop used (Unity, XFCE, MATE)?