Skip to content
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

Feature: Preview line editing #56

Open
desplesda opened this issue Sep 10, 2024 · 0 comments
Open

Feature: Preview line editing #56

desplesda opened this issue Sep 10, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@desplesda
Copy link
Contributor

The preview interface lets you play a Yarn project from within the editor. However, when you make a change to the source code of any of the Yarn files, the project must recompile, and because the compiled byte code has changed, the preview must reset.

One of the most common reasons for using the preview feature is to try out the dialogue and see what works, narratively speaking. It's quite often the case that a writer will spot a change in a line's phrasing, and will want to make the change in-place.

The editor should allow the following flow:

  • Lines and options in the preview view should be able to enter an 'editing' state.
  • In this editing state, the text of the line is editable.
  • When the user commits the change, the Yarn file that that line or option came from is modified to incorporate the change, and the preview view updates to show the modified text.

In addition to making textual changes, this flow could also be used to add 'to-do' markers and other metadata, inserting #todo hashtags or similar on a line while doing a proofreading pass.

@desplesda desplesda added the enhancement New feature or request label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant