kevboh / longform

A plugin for Obsidian that helps you write and edit novels, screenplays, and other long projects.
Other
610 stars 30 forks source link

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

Open b-camphart opened 4 months ago

b-camphart commented 4 months ago

Describe the solution you'd like Longform defines an ordering for the scenes within a project, but this ordering is removed when longform is uninstalled. It's also not readable by other plugins. I'm wondering if there could be a toggle, possibly on a per-project basis in the longform index file, that tells longform to add/modify a property for each scene with the given index as the value. This would allow other plugins in Obsidian to read the ordering, without having to directly interface with longform.

I'd be happy to implement this, but I want to ensure it's inline with your vision @kevboh . Considering some recent issues opened around syncing, I'm not sure how you feel about longform actually modifying the scene files.

Alternative Options

kevboh commented 4 months ago

My preference would be for this to be opt-in at the plugin settings level. When on, it writes a longform-order property or similar to each scene equal to its index. I suppose nested scenes would be something like 1.2 or similar.

b-camphart commented 4 months ago

I think that makes sense. How do you feel about the written property name being customizable, but defaulting to longfrom-order?

kevboh commented 4 months ago

Fine with me as long as all of this is opt-in!