Textplay icon indicating copy to clipboard operation
Textplay copied to clipboard

Passing key:values with switches

Open rnkn opened this issue 11 years ago • 3 comments

This one's a feature request. I'd like to be able to pass configuration key:values via command switches, e.g.

./textplay input.fountain --goldman_sluglines=false --bold_sluglines=false --slugline_spacing=2

rnkn avatar Nov 06 '14 09:11 rnkn

An interesting idea. I'll consider it. Would need to figure out a logical way to deal with conflicting values (switch vs file metadata).

overvale avatar Nov 09 '14 02:11 overvale

In fountain-mode my intended use case would be programmatic. When exporting, there are a bunch of customizable variables, accessible like this:

Exporting currently looks at these variables to write appropriate CSS for exporting to PDF/HTML. So a command to export via Textplay would ideally just construct a shell command based on these variables. So yeah, purely a selfish request from my perspective.

But, in any case, I think it more likely a writer will set their options in the metadata first, then any attempt to override would happen when exporting, e.g. seeing how many pages are saved with single-spaced scene headings. So my thinking would be that switches ought to override file contents.

rnkn avatar Nov 09 '14 03:11 rnkn

bc2a491 provides a command-line switch to toggle wrapping.

overvale avatar Jan 09 '16 20:01 overvale