Hacker News new | ask | show | jobs
by tinix 999 days ago
extensions are configurable or truly hard coded?
2 comments

it is hardcoded at the moment, but I am willing to merge code that adds the option to override.

Also probably a flag would solve it for some users, the best way would be to add a configuration option. At the moment there are no config file/.rc file support in SeaGOAT though, but there is an issue to add it and I'm happy to merge pull requests: https://github.com/kantord/SeaGOAT/issues/180

update: I changed the hardcoded set of languages to support the following:

Text Files (.txt) Markdown (.md) Python (.py) C (.c, ``.h`) C++ (.cpp, .hpp) TypeScript (.ts, .tsx) JavaScript (.js, .jsx) HTML (.html) Go (.go) Java (.java) PHP (.php) Ruby (.rb)

https://github.com/kantord/SeaGOAT#what-programming-langauge...

Based on the code, they're hardcoded. It seems like it'd be pretty straightforward to add an override flag though.