Git Product home page Git Product logo

fountainhead's People

Contributors

derickc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fountainhead's Issues

Autocompletion enters previous selection

I noticed that the built in character and scene list also does not work probably. It shows the characters / scenes, but if I press enter, it puts in the last selected character / scene (or non, if it was opened the first time). This happens in Linux only, like it seems. In windows it works well.

README

Fountainhead

Sublime Text 3 package that provides a screenwriting environment using the Fountain markup syntax.

Inspired by Jonathan Poritsky's Fountain for Sublime Text package.

Installation

Note: Works best with Sublime Text 3.

Using Package Control:

  1. Install Package Control.
  2. Select "Package Control: Install Package" from Tools > Command Palette (⇧⌘P).
  3. Select "Fountainhead".

Quickstart

  1. Open your Fountain file.
  2. Verify that "Fountainhead" appears in the bottom right-hand corner.
    • If it doesn't, you can click on the offending syntax and change it to "Fountainhead", or you can use the menu: View > Syntax > Open all with current extension as >Fountainhead.
  3. Write!

Distracting spell check as you type

Spell checking happens for incomplete words as you type them, thus everything you enter is marked in red until the word is complete. This is very distracting.

In other word processors, spell checking does not occur until the word is actually finished (ie. after you type the word plus a non-alphabetic character.)

Suggest to do the same here.

Shift+Space creates newline

Shift+Space creates a newline with Fountainhead. This happens if you are holding down Shift to write a headline, or if you're simply a bit slow with releasing Shift after writing an uppercase word.

This happens to me all the time and is very annoying. I see no reason why Shift+Space should create a newline, then you can simply press Enter, right? Can this please be changed soon so Shift+Space simply inserts a space like any other mode (or text editor for that matter)?

Transition background

Good evening. Can I set a background only at transitions (text starting with ">")? I tried to change certain values in the color scheme files, but if I change the action centered one, the whole background changes. Thank you.

Base16 color scheme

Lots of sublime users might be using base16 color based themes like spacegray. I hope there will be base16 ocean dark, ocean light, or eighties so fountain syntax highlighting will blend smoothly with the theme.

Can't change colour scheme after upgrading to build 3103

After upgrading to Sublime build 3103, I cannot change colour schemes anymore, neither from the Preferences menu or with the colour cycling plugin "Schemr".

Open tabs with other syntaxes change color just fine, while Fountainhead tabs are locked to blue background, character names in red, and scene headings in red with yellow background.

Autocompletion only appears if there is text after the cursor

Today I found out that there is an
auto-completion feature. That's really great. You will wonder: "Why just
yet and not earlier?" Because: the auto completion window will only pop
up automatically when there is text AFTER the actual cursor. Otherwise I
have to press the combination for bringing up the auto completion list.

.txt files are opened with Fountainhead syntax

I have a .txt file containing some text notes under uppercase headings. This is not a screenplay, still it is opened in Fountainhead mode, though it doesn't have the .fountain extension.

The default settings say "extensions": ["fountain"], thus I would assume that only files with the .fountain extension should be opened with Fountainhead syntax.

Or is there some kind of file content recognition that guesses the file to be a screenplay because of the uppercase headings and other similarities? If so, I would like to turn this off.

It seems best if only files with a .fountain extension are opened in Fountain mode, without any fancy content guessing going on.

Lag when switching between large files

When switching to a .fountain file which has several thousand lines (not uncommon for a screenplay), there is a noticeable delay of about a second when switching to the tab containing the screenplay.

Can performance please be improved so switching is instant for any reasonable screenplay length (up to 10.000 lines which corresponds to 3 hours of film.)

Support Unicode letters in scenes/character lists

In lists:
Character names with accented letters get ignored, but char. list works.
EDIT: If I force a character using @ the char. list will break like the scene list.
Scene names with accented letters stop the script from working, scene list doesn't work at all.
(the generated .sublime-completions files are broken)

Formatting:
Character formatting doesn't work if name contains accented letter, name is ignored, and con't is appended to the previous character when doing dialog. Forcing with @ is a viable workaround.
Scene formatting works with accented letters.

Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 303, in on_activated
callback.on_activated(v)
File ".../Sublime Text 3/Packages/Fountainhead/characters.py", line 179, in on_activated
completions.write('"%s",' % character)
UnicodeEncodeError: 'ascii' codec can't encode character '\xc1' in position 9: ordinal not in range(128)
Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 303, in on_activated
callback.on_activated(v)
File ".../Sublime Text 3/Packages/Fountainhead/scenes.py", line 147, in on_activated
completions.write('"%s",' % scene)
UnicodeEncodeError: 'ascii' codec can't encode character '\xe1' in position 12: ordinal not in range(128)
Error loading completion: Error trying to parse file: Expected character in Packages/User/Fountainhead/Characters.sublime-completions:5:4
Error loading completion: Error trying to parse file: Expected character in Packages/User/Fountainhead/Scenes.sublime-completions:5:4

Possible to add folding?

Truly appreciate you making this. Having used most implementations of Fountain, yours is the one I return to time and again.

So here's the ask, would you consider adding folding by #Heading and Slugline? Not asking simply for aesthetics, although it is pretty. It's provides a very useful overview of a long draft and helps to gauge structure, rhythm, and pace.

Thank you for considering this request.

Plain Text opening with Fountainhead Syntax

Hi,

I recently installed the Fountainhead plugin for Sublime 3 and I love it! I also discovered that whenever I open a text file from Finder, it will open it with Fountainhead encoding.

I checked both default and user settings and under "Extension", it only lists "fountain". I'm not sure why Fountainhead is registering ".txt".

Any help is very appreciated and thank you for the great work!

Best,
-Wey

Frenetic status line as I type

For some .fountain files, the status line updates frenetically every time I type a character. This is very distracting.

Normally, it says something "Line 5, Column 1", then when I type a character, this text is indented maybe 100 pixels, and there is some text in front for a blink of a second, so it's impossible to read.

It does not happen for all .fountain files. I have not been able to see any pattern as to which files that provoke the error. I also think this started happening after the new 3103 release.

Double "Continued"

I copy-pasted material from Final Draft, which uses "(CONT’D)" with a fancy apostrophe:

PERSON (CONT’D)

When editing the line, it ended up like this:

PERSON (CONT’D) (CONT'D)

Should be easily solvable by adding variants of the apostrophe to the pattern matching.

Sublime Text 3 Regex error

With some of the newer builds of ST3 I'm unable to use the Fountainhead syntax as an error comes up saying there's an error in the regex for the Fountainhead tmlangauge file an unclosed ')'. After viewing the file it looks like the SceneHeading might have some error possibly.

capture

Fountainhead stopped working when updating to latest version of Sublime Text

Sublime Text 3 was updated yesterday to build 3103. After this, Fountainhead stopped working. The following error message occur in my console. How can this be fixed?

no such context .lyrics in Packages/Fountainhead/Fountainhead.tmLanguage
error: Error loading syntax file "Packages/Fountainhead/Fountainhead.tmLanguage": Error in regex: unmatched close parenthesis in regex )

Support for character with whitespaces tab key autocompletion

When checking the Ctrl+Space list of autocompletions, characters and scenes are fine; but when autocompleting a character name with Tab key, it only completes the word in question, but not the character's full name.

To reproduce set a character as CAPTAIN AMERICA and write a dialog. Then try to write another dialog by starting with CAPT and press Tab. It will autocomplete CAPTAIN but won't add AMERICA after it (note the space before AMERICA). Pressing Tab again will cycle among words that are similar to the written one that are present in the script (eg: CAPTAINCapablecapybara).

Warning issued in Sublime Text 3 console

I'm getting the following warning in Sublime Text 3 console:

warning: mnemonic f not found in menu caption Fountainhead

I'm not sure if it breaks some functionality of Fountainhead though.

Change color of action/dialogue

Hi there.
First off, thanks for this! I'm monkeying around with sublime and with atom and trying to land on which I'll use most and your package may be swinging things.

I was wondering if there was a way to specify a different color for actions vs dialogue? Thanks very much!

How to render Fountain markup?

First let me say congrats on the great tool! I read through the docs, but didnt see an option to render the fountain markup created? Is a separate processor app of some kind required?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.