Open beezdiego opened 6 years ago
Hi! It's been a long time since I used this plugin, but I'll take a look when I can. Could you attach a small Fountain file that replicates the problem you're seeing?
Alex,
Thanks for even considering it. If it is too difficult or your change your mind, I completely understand. I used to write in PHP, but script here (Ruby?) is a bit beyond me because so much of the syntax is unfamiliar.
In fountain, a # or multiple (##, ###, ####, ...) can be used to denote acts, sequences, scenes, etc. In BBEdit, folding can be nested. So all of the scenes can be nested inside the sequences, which can be nested inside the acts.
I've sent a fake script in two documents. One written in fountain which does not nest properly and the other in a pseudo html which does. Option click the folding triangles (or arrows) next to the number line in the documents so it collapses all of the 'foldable areas' of the document and then one by one click them to expand and you will see what I mean. The HTML document nesting is what we are looking for.
Thanks so much for all your time on this. BBEdit is one of the most powerful text editors there is. Getting this folding feature to work would be amazing. As I mentioned before, if it has to be hardcoded (and not open ended) having at least four layers of hash nesting (#,##,###,####) would be ideal.
Thanks, Brett
On Jan 31, 2018, at 3:11 PM, Alex Dunn notifications@github.com wrote:
Hi! It's been a long time since I used this plugin, but I'll take a look when I can. Could you attach a small Fountain file that replicates the problem you're seeing?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dunn/fountain-clm/issues/5#issuecomment-362071891, or mute the thread https://github.com/notifications/unsubscribe-auth/AiVsAAB5At58L0Otzi6-ExbDrEbLLigvks5tQNcMgaJpZM4R0Uif.
First of all, let me say thank you. Your code has been in valuable in helping me use BBEdit for script writing. I really appreciate you taking the time to put it together and I completely understand if you are not interested in further refining this script. But if you have time, there is one issue I wish were addressed:
The "hash" marks (that create folds in the document) end their folds prematurely at the beginning of scenes and other markup code. Ideally # would find the next # and fold everything in between, likewise with ## to ##, ### to ###, and #### to ####. I do not think going beyond four is necessary, since these would likely be used to enclose the entire project, act (multiple chapters), chapter (multiple scenes), and events within a scene. The reason for having a tag that encloses the entire project is it is the only way (option clicking) to close all nested folds in a BBEdit document, and that would be really handy. Right now I use an HTML / Fountain hybrid, but would love to be able to ditch the HTML part since all I use it for is folding.
I am happy to help try to fix the issue (to the extent of my abilities). I tried my hand at it once already, but I am not well versed in scripting. If you would like my input, please let me know.