Skip to content

Conversation

@b-camphart
Copy link
Contributor

closes #244

Adds an opt-in plugin setting that, when enabled, will write, and maintain, two properties to each scene file:

  • "longform-order": the dev-friendly index of the scene. Will always be sortable, and other plugins (or users using dataview) can easily work with it
  • "longform-number": the user-friendly scene number. Should have the same numbering as appears in the scene tab.

When switched off, the properties are no longer synchronized, but they aren't removed from files.

I didn't include options to use custom property names because I felt it would both be too complex for users, and introduce a lot of edge cases of other plugins modifying properties that we probably just don't want to handle.

@kevboh
Copy link
Owner

kevboh commented Mar 19, 2025

@b-camphart can you rebase this?

not sure how this got removed during the rebase, but this commit adds the check back in so that the scene index is not written to the new file if the user has not opted-in.
it made more sense for the writing of draft information about the scene to be within the "createScene" usecase code than the note utils file.

createNoteWithPotentialTemplate now returns the TFile, if successful.  Updated documentation to reflect this new behavior.
@ameinias
Copy link

How do I opt into this feature? I'd like to try it with bases.

@b-camphart
Copy link
Contributor Author

@ameinias there will be a new setting to toggle on, if/when this is merged and a new version of longform is released. It isn't available yet.

@ameinias
Copy link

Amazing, thank you! I've set up Longform for my master's thesis and I look forward to trying it out

@kevboh kevboh merged commit 64ab6a4 into kevboh:main Sep 23, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Option to apply property to scenes based on order

3 participants