Skip to content

Line breaks in index file causes longform panel to stop recognizing scenes or entire project #309

@ameinias

Description

@ameinias

Versions
Longform version: 2.1.0
Obsidian version: 1.9.12
OS [e.g. macOS, Windows, iOS, Android]: Windows
Theme: minimal
Other plugins that you think might be relevant here: Sync, Git

Describe the bug
Every day or two (long continuous use) the longform panel stops recognizing the project or its scenes. I've learned that some of my chapter titles of 3+ words are somehow getting linebreaks added in, which breaks the YAML so the index file is no longer recognized or is distorting the chapter order.

At one point to bug fix, I made a renamed duplicate of the index file, and longform switched to recognizing that instead.

To Reproduce
Steps to reproduce the behavior:

  1. Have obsidian open.
  2. Click on longform panel
  3. Project is missing, or longform is asking to re-add all or most chapters.

Expected behavior
I expect the scene order and project to be how I left it.

Screenshots
Will add next time it happens.

Additional context
I have Git and Sync installed, I assume it's due to one of them because it will happen mid session, but it's definitely not happening every time it syncs or backs up.

I've been able to fix the issue by opening the version history of the version file and rolling back to a non-broken version, or editing the index file by hand. But this happens so frequently it is messing up my writing workflow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions