obsidian-git icon indicating copy to clipboard operation
obsidian-git copied to clipboard

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

Open tp1415926535 opened this issue 1 year ago • 4 comments

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

tp1415926535 avatar Sep 06 '24 14:09 tp1415926535

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

Vinzent03 avatar Sep 09 '24 09:09 Vinzent03

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

tp1415926535 avatar Sep 10 '24 01:09 tp1415926535

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?

Vinzent03 avatar Sep 11 '24 13:09 Vinzent03

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.

tp1415926535 avatar Sep 11 '24 15:09 tp1415926535