-
-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Live preview" in the editor itself #59
Comments
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 :)... |
@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. |
Ah, got it, its about the right side. True, I didn't think of that. |
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! |
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 |
This would be a really nice feature. |
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 :/ |
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. |
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. |
That's from my own branch which would need Piers' approval and some polish. |
A picture speaks a thousand words:
![image](https://user-images.githubusercontent.com/42496508/81207212-20cf3080-8fc5-11ea-9e89-72c4e7fcc502.png)
What if, while you were typing, it were possible to see the screenplay as such, without the need for a live preview?
Unfortunately this feature is currently impossible because the vscode extension API doesn't support extensions setting margins themselves, but if you're interested, I would highly recommend upvoting this issue in the vscode repo.
The text was updated successfully, but these errors were encountered: