xpgo / obsidian-folder-note-plugin

Plugin to add description note to a folder for Obsidian.
385 stars 27 forks source link

Switching from Folder Name Outside to Folder Name Inside with Hide Folder Note enabled does not reveal the notes back #98

Open hsandt opened 4 months ago

hsandt commented 4 months ago

Repro steps

  1. Set Note File Method to Folder Name Outside
  2. Enable Hide Folder Note to hide those associated folders
  3. Create note folders outside with Ctrl+Click if needed
  4. Note: if you did step 3 after step 2, the new folders are not hidden yet, and you need to click on the note folders again to hide them
  5. Set Note File Method to Folder Name Inside and Disable Hide Folder Note
  6. The folder note files are now still hidden inside of revealing themselves. If you had selected a folder note last, it is still open, but others are inaccessible until you Ctrl+O open the note by name, or close and reopen the Vault to force file tree refresh.

I suspect the same happens when switching from Inside to Outside, Index, etc. but I haven't tested myself.

mbbroberg commented 3 months ago

@hsandt I just ran into this and found the .obsidian/plugins/folder-note-plugin/data.json contained both types:

{
  "folderNoteHide": true,
  "folderNoteType": "inside",
  "folderNoteName": "_about_",
  "folderNoteKey": "alt",
  "folderNoteAutoRename": true,
  "folderDelete2Note": false,
  "folderNoteStrInit": "\n {{FOLDER_BRIEF_LIVE}} \n"
}

I deleted the folderNoteKey line and it made the folder notes disappear as expected.