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
Support for include workflow #92
Comments
It doesn't seem to be part of the official spec but I like it! I think everything that makes writer's life easier is worth adding :) Thanks! |
Great! Yeah I'm not really sure what's happening with the official spec, John has been adding things to Highland 2 for the past couple of years without any additions to fountain.io so I'm not sure if he intends these to be just for a .highland format or not. |
Dear Piotr, I'm considering removing a bunch of features in the next major version of Fountain Mode, chief among these being the Emacs-based export functionality, and relying only on external tools (e.g. your lovely CLI program). I'd want to strip any writing feature not supported by exporting. This include workflow would be one of them. Personally I never use an include workflow, and tend to this this could be better achieved by e.g. concatenating the Fountain source file within Emacs and feeding that to the export CLI. I also think this feature would be cumbersome in the afterwriting web UI. But I wanted to get your opinion — do you think this feature is vital for working in Fountain, or better to leave it to history? |
I think "include" could be useful for some writers. The feature probably makes sense only on desktop though so it doesn't need to be supported by all tools (e.g. web based). How about handling it as a special comment/boneyard for example: |
I ended up removing support for This was more of an issue when I was parsing the buffer into an AST for export, but anyway, Emacs already has a builtin command I think Mountain had the right idea from the start: just make these notes: # ACT I
= Meet the **Hero**.
[[include: intro.fountain]]
# ACT II
# ACT III
## Finale
[[include: the-end.fountain]] AFAIK no export tools currently have the option to print notes in the PDF, but some are considering this, so not exactly the same as comments, but at least going with notes allows people to keep using Mountain if they like, and currently won't cause any problems with export tools. |
I actually use Makefiles for this kind of workflow these days, so for the sake of housekeeping if I was the only person wanting this you can safely close if you like. |
Hi Piotr,
There's an addition to the Fountain spec for including external files, similar to a LaTeX compile. I'm not sure that it has become official yet, but is part of Highland, and I've added it to Fountain Mode. The syntax is a modified version of Mountain:
where
FILENAME
is relative to the current file, and recursive, so that a master file could have:And then
Act 1.fountain
could have:where
Prison Break.fountain
is within theAct 1
folder.Sound like something you'd like to implement in afterwriting CLI?
The text was updated successfully, but these errors were encountered: