xpgo / obsidian-folder-note-plugin

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

[Bug] collapsed/expanded state desyncing issue for folder in files sidebar #69

Open vburzynski opened 1 year ago

vburzynski commented 1 year ago

Description

When you are viewing a note that is not the folder note, and you click on the folder title of a folder that is in an open (or expanded) state, things get weird:

Prerequisites

Steps to reproduce

  1. In the Files sidebar, toggle open any folder containing a folder note
  2. Open any other markdown file that is not the folder note for that folder.
  3. Click on the folder's title in the sidebar
    • the folder note will open in the center view
    • the folder toggle arrow will be pointing down (open state)
    • the folder's contents will be hidden (closed state)
  4. Click on the folder's title again to force the toggle arrow and folder content visibility to re-sync; they'll be in a closed state.
  5. Click on the folder's title a third time to arrive in the expected open state (arrow pointing down, contents visible, and folder note visible)
TheChilliPL commented 1 year ago

For me, the plugin does not hide the folder note file until I click on the title of the folder, it may be a related issue. Current setting: image File explorer before clicking on the folder title: image File explorer after clicking on the folder title (twice, to reexpand the folder) image

Testing showed that changing the setting to Folder Name Outside does not fix the issue either