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 Request: Option to apply property to scenes based on order #244

Open
b-camphart opened this issue Feb 14, 2024 · 3 comments
Open
Labels
enhancement New feature or request

Comments

@b-camphart
Copy link
Contributor

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

  • A small, custom plugin that directly interfaces with Longform to read the index file and apply the property. Users would have to hunt for it. (though, the plugin could be listed in longform's README for easier discovery).
  • A compile step that simply applies the property. Possibly in a new workflow that is included by default, but not used unless selected. However, this would mean users would have to remember to "compile" the project every time they change the scene order if they want other plugins to detect the change. But, maybe a small modification to the way longform works could be to ask the user, after the scene order has been changed, if they want to apply it?
@b-camphart b-camphart added the enhancement New feature or request label Feb 14, 2024
@kevboh
Copy link
Owner

kevboh commented Feb 15, 2024

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
Copy link
Contributor Author

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

@kevboh
Copy link
Owner

kevboh commented Feb 19, 2024

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

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

2 participants