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

[Bug]: Folding in "source control view" collapses wrong directory in tree view #680

Closed
ThelloD opened this issue Jan 25, 2024 · 0 comments
Closed

Comments

@ThelloD
Copy link

ThelloD commented Jan 25, 2024

Describe the bug

Folding in "source control view" does not behave as expected, if layout is changed to tree view, and the arrow for folding is clicked on a directory at a low level. Instead of collapsing the expected directory, always the (grand-)parent directory on the 2nd level is collapsed instead.

Tested on various platforms and a fresh Obsidian vault. (Only obsidian-git installed, no other community plugins or custom themes enabled)

Example:
I'm trying to fold the directory D:
image

Instead of actually folding the directory D, and therefore hiding the files file-in-D.md and Welcome.md, the directory A is folded instead:
image

Relevant errors (if available) from notifications or console (CTRL+SHIFT+I)

No errors in console.

Steps to reproduce

  1. Open Source Control View
  2. Change layout to tree view (directory icon)
  3. Try to fold a folder at a lower level

Result: (Grand-)parent folder on 2nd level will be folded instead

Expected Behavior

Only fold the directory that is being clicked on.

Addition context

No response

Operating system

Windows

Installation Method

None

Plugin version

2.22.1

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

1 participant