Skip to content

kortina/fountain-differ

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fountain Differ

Live demo here.

Share a nicely formatted diff of 2 fountain files.

image

Why?

Some apps (like Highland 2) will allow you to track changes and compare differences between versions, but I wanted a way to generate a diff that I could send to any reader and allow them to view with just a web browser.

I considered just using GitHub gists, but they don't wrap and indent text of fountain files in a very readable way.

I also added a few bells and whistles like printing line numbers (so reviewers could comment to the effect of "(123) this line is awkward") and linking to line numbers with #anchors.

TODO
  • handle boneyard and bracket comments
  • upload and generate URL with diff script
  • add scene numbers
  • goto next / prev change shortcuts

Usage

(1) Generate the diff:

lines=50000
git --no-pager diff --no-index "-U$lines" \
older.fountain \
newer.fountain \
| pbcopy
# OR, use `fountain-diff.sh`

(2) Paste into a GitHub gist.

(3) Get the raw URL for the gist and load it into the form.

Development

./serve_dev.py # python3 script to serve index.html

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published