xpgo / obsidian-folder-note-plugin

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

Clicking on note folder always toggles folding, add option for click behavior #97

Open hsandt opened 4 months ago

hsandt commented 4 months ago

I noticed that the Obsidian native behavior of toggling fold/unfold when clicking a note folder is preserved.

That can be disturbing when the folder is already unfolded, you click to check the note folder description then want to look at sub-files and attached pictures inside the folder, but it has just been folded by the click.

The behavior may however be wanted by some people since it's easier to click on a big folder name than on a small arrow to fold/unfold a folder.

So maybe adding an option to choose click on note folder name behavior would be good: a. always toggle folding (current behavior) b. unfold if folded, do nothing if already unfolded (Zim-style) => you must click arrow to fold back. Maybe map middle-click to force unfold for people who prefer clicking on the big folder name?

hsandt commented 4 months ago

Another folding issue is: https://github.com/xpgo/obsidian-folder-note-plugin/issues/69 but mine is not about sync nor switching across folders.