fountain-atom icon indicating copy to clipboard operation
fountain-atom copied to clipboard

Outline is wrong

Open Oreolek opened this issue 8 years ago • 3 comments

Scenes can be marked by a leading dot: .INT? SCENE but the outline view ignores that.

Oreolek avatar Dec 05 '17 13:12 Oreolek

Are your scenes being highlighted properly in the text editor? If so, it looks like https://github.com/superlou/fountain-atom/blob/master/lib/fountain-outline-view.coffee#L158 needs to be updated to match https://github.com/superlou/fountain-atom/blob/master/grammars/fountain.cson#L227.

superlou avatar Dec 05 '17 16:12 superlou

Is there a way to use the CSON configuration in the view to avoid future duplication?

jrbostic avatar Dec 23 '17 01:12 jrbostic

I think so. This came up back in the legacy preview, since I was duplicating a lot of effort in the CSON and javascript HTML builder. I couldn't find a recommend public API way to get the tokenized text from the editor, but I am confident it has to be there. It's definitely worth some research.

Came across this last time, but it's been a while.

superlou avatar Dec 23 '17 01:12 superlou