GithubHelp home page GithubHelp logo

Comments (12)

segreeeen avatar segreeeen commented on August 30, 2024

Couldn't you do that by adding tabs instead of the original margins? If it's just a preview, it doesn't really matter if the margins are correct, right? I mean, there already is a really nice preview in the preview window. I'm thinking something like: 3 tabs Character, 2 tabs parentethical, 1 tab dialog, 0 tab instruction. Or such? Just a little input :)...

from betterfountain.

piersdeseilligny avatar piersdeseilligny commented on August 30, 2024

@segreeeen yeah I was actually just looking at doing that, but the issue is that I can't seem to find a way to add margins on the right-hand side, so it would all look quite weird. But I'm going to keep on digging into this API, and if I find out it's possible i'il definitely be adding that as an optional feature.

from betterfountain.

segreeeen avatar segreeeen commented on August 30, 2024

Ah, got it, its about the right side. True, I didn't think of that.

from betterfountain.

osomfinch avatar osomfinch commented on August 30, 2024

A picture speaks a thousand words...

That would be nice! I would like for this link to be reopen and get enough people for the vote.

BTW. Have you looke into Theia? It's a text editor that is supposed to be like VSCode but with more possibilities for the extension creators.

Thank you for your work!

from betterfountain.

daryluren avatar daryluren commented on August 30, 2024

So this would be non-editable spacing like what was done with the dialogue numbers? As for the right-margins, I imagine this setting would require/imply the setting "editor.wordWrapColumn": 57 so that you can insert the spacing in the right places.

from betterfountain.

piersdeseilligny avatar piersdeseilligny commented on August 30, 2024

So this would be non-editable spacing like what was done with the dialogue numbers? As for the right-margins, I imagine this setting would require/imply the setting "editor.wordWrapColumn": 57 so that you can insert the spacing in the right places.

Yep probably, but the issue is that, even with editor.wordWrapColumn set, I don't think it's actually possible to add spacing to the right without actually inserting new lines in the text itself. And modifying the text as such is obviously extremely inconvenient and hacky, so not something I think we should do.

from betterfountain.

viegasfh avatar viegasfh commented on August 30, 2024

This would be a really nice feature.

from betterfountain.

piersdeseilligny avatar piersdeseilligny commented on August 30, 2024

It turns out the core issue preventing this from working is a bug in vscode, as it doesn't take into account decorations when calculating the word wrapping positions: microsoft/vscode#32856

Until that bug is fixed in vscode, there's no way of getting this behaviour without some very hacky and unreliable new line insertions :/

from betterfountain.

therealminzii avatar therealminzii commented on August 30, 2024

Hey there, just started using this extension and wanted to pick up on this. Granted that right hand margins are a problem, is there a way to automatically add tab/some sort of centering to the dialogue and parenthesis elements? As per previous comments, it doesn’t have to be to exact formatting, but so long as it breaks the dialogue out of action, it’s still a handy way to use it.

from betterfountain.

daryluren avatar daryluren commented on August 30, 2024

Hi @therealminzii

There was more to this discussion on discord, where Piers decided that modifying the author's text would be too messy.

I gave the text-decoration method a go, which was how we discovered the word-wrap issue.
This is the closest I got. ( '~' used instead of spaces for debugging purposes)
image

Personally, I'd be happy to ignore centering the dialogue (because that's the troublesome part) - and shifting Parentheticals and Character names left to compensate, which would look like this. Piers wasn't too keen on this either though IIRC.
image

from betterfountain.

therealminzii avatar therealminzii commented on August 30, 2024

Thanks for your response. I agree that even having the character names/parenthesis tabbed in would result in a more helpful way to navigate the text. If you have any hints as to how to do that, I’d be happy to give it a try.

from betterfountain.

daryluren avatar daryluren commented on August 30, 2024

That's from my own branch which would need Piers' approval and some polish.

from betterfountain.

Related Issues (20)

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.