Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing key:values with switches #19

Open
rnkn opened this issue Nov 6, 2014 · 3 comments
Open

Passing key:values with switches #19

rnkn opened this issue Nov 6, 2014 · 3 comments

Comments

@rnkn
Copy link

rnkn commented Nov 6, 2014

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
@overvale
Copy link
Owner

overvale commented Nov 9, 2014

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

@rnkn
Copy link
Author

rnkn commented Nov 9, 2014

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.

@overvale
Copy link
Owner

overvale commented Jan 9, 2016

bc2a491 provides a command-line switch to toggle wrapping.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants