Vinzent03 / obsidian-git

Integrate Git version control with automatic backup and other advanced features in Obsidian.md
MIT License
6.83k stars 292 forks source link

[Bug]: In the Source Control panel, the right-click menu cannot be opened for formats other than markdown files. #766

Open tp1415926535 opened 2 months ago

tp1415926535 commented 2 months ago

Describe the bug

I found that only .md files can open the context menu in the “Source Control” panel, but not files with other extensions, such as json. But obsidian's default file list other formats support to open the context menu.

Sometimes some json files have changed and I want to know which file they are in, but the context menu doesn't work.

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

No response

Steps to reproduce

just open obsidian and right click the json file in "Source Control" panel .

Expected Behavior

No response

Addition context

No response

Operating system

Windows

Installation Method

None

Plugin version

2.26.0

Vinzent03 commented 1 month ago

Sorry, but I can't reproduce your issue. Are there any errors in the console (CTRL+SHIFT+I)?

tp1415926535 commented 1 month ago

Sorry, but I can't reproduce your issue. Are there any errors in the console (CTRL+SHIFT+I)?

There are no errors. This GIF will show how my other formats unable to open the context menu PixPin_2024-09-10_09-29-44

Vinzent03 commented 1 month ago

I can reproduce that now. These aren't usual json files, but the internal ones in the .obsidian directory. Obsidian doesn't really support files in hidden directories (starting with a dot). Since most of the entries in the context menu come from Obsidian itself, they don't support these files. So this is actually expected behavior. What exact entry in the context menu do you need?

tp1415926535 commented 1 month ago

I can reproduce that now. These aren't usual json files, but the internal ones in the .obsidian directory. Obsidian doesn't really support files in hidden directories (starting with a dot). Since most of the entries in the context menu come from Obsidian itself, they don't support these files. So this is actually expected behavior. What exact entry in the context menu do you need?

I see, obsidian doesn't even support showing hidden folders. I just wanted to Show in system explorer, but if the software doesn't support it natively, I think no need to be too concerned about the need.