rojo icon indicating copy to clipboard operation
rojo copied to clipboard

Sync arbitrary file extensions as plaintext

Open OttoHatt opened this issue 2 years ago • 4 comments

Rojo already has a way of syncing plaintext files in as StringValues. A lot of programs (i.e. dialogue files, markdown) export into plaintext formats that could be with interpreted with a parser in-game. It'd be cool to define a list of file extensions that are resolved as if they were plain .txt files.

OttoHatt avatar Jun 28 '22 20:06 OttoHatt

This presents a real forwards compatibility hazard :(

Actually, I guess if it's an explicit list of extensions, then that could take priority.

Kampfkarren avatar Jun 28 '22 22:06 Kampfkarren

I think a whitelist (maybe as an optional array in the top-level of .project.json files) is the only way to go about it? I'm not sure how you'd implement this without it feeling too clunky; it almost crosses into the domain of Remodel as you're effectively processing the contents of files before they're synced in...

For now though, would it be considered adding some files (other than .txt) that are imported like plaintext? I think .yarn and .md would be a good start? I think there is a good use case for external authoring tools, and I imagine as the Luau package ecosystem gets better we'll start seeing more parsing libraries for these formats.

OttoHatt avatar Jun 28 '22 23:06 OttoHatt

Eventually Rojo plugins intend to fill the space you're talking about, but that's a pretty big architecture.

Kampfkarren avatar Jun 29 '22 00:06 Kampfkarren

I feel like LISENCE/LISENCE.md should be sync in as plaintext

sasial-dev avatar Jul 04 '22 02:07 sasial-dev

This is closed by #813, which will be available in Rojo 7.5.

kennethloeffler avatar Feb 15 '24 20:02 kennethloeffler