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

Using plug-in with Obsidian Sync causes note duplication #80

Open
Mach3Maelstrom opened this issue Sep 20, 2023 · 3 comments
Open

Using plug-in with Obsidian Sync causes note duplication #80

Mach3Maelstrom opened this issue Sep 20, 2023 · 3 comments

Comments

@Mach3Maelstrom
Copy link

When I edit Header 1 of a file and the filename is corrected by the plug-in, Obsidian makes a duplicate of the note using the new title.

This occurs only when Obsidian Sync is activated.

This can be recreated by:

  1. Create a note in any folder.
  2. Allow the plugin to automatically generate the H1 text for the note or manually through commands.
  3. Change H1 on the note.
  4. Allow the plugin to automatically update the H1 text for the note or manually through commands.
  5. Open the folder and see both notes present.
@IAmDarthMole
Copy link

IAmDarthMole commented Oct 29, 2023

I can confirm similar behavior when creating a new note and then adding the H1 line. After the plugin changes the note title to match the H1 line if you look at the notes list there is an Untitled [Possible Number] note and the renamed note. The Untitled note is empty.

I also am using Obsidian Sync. It happens with Use File Open Hook turned On or Off. It also happens using the Flatpak Desktop App and iOS app.

@IAmDarthMole
Copy link

Follow-Up:

In my scenario, I have confirmed the behavior I mention above only occurs if I have the synced vault open on two different devices. The behavior disappears when the vault is opened on only one device. In my case, if it is only open on my laptop I'm good. If I only have it open on my iPhone I'm good. As soon as I have the vault open on the laptop and iPhone at the same time the duplication behavior returns.

@Mach3Maelstrom as soon as I made sure the vault was open on one device only the duplicate behavior disappeared. At least for me.

@dvcrn
Copy link
Owner

dvcrn commented Nov 3, 2023

Hmm maybe we need to change the behavior of how files are getting renamed, or somehow wait until sync does it's thing

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

No branches or pull requests

3 participants