obsidian-reveal-active-file icon indicating copy to clipboard operation
obsidian-reveal-active-file copied to clipboard

fix: fix for obsidian v0.15.6. focus on editor after revealing file.

Open anselmwang opened this issue 2 years ago • 2 comments

In the past, after revealing a file, the editor still has focus. But since obsidian v0.15.6, the editor loses focus.

The PR fix this bug.

anselmwang avatar Jul 23 '22 04:07 anselmwang

If I understand this patch correctly, this won't work for image files, PDFs, Kanbans, Excalidraw, media files, or really anything except markdown files. If you click on or open a non-markdown file, it would cause the focus to go to the file explorer, and then to any other open markdown file (even one in another window). Or if there aren't any markdown files open, it would stay focused on the file explorer.

Have you tested whether it works with non-markdown files or views? (e.g. Kanban)

pjeby avatar Jul 29 '22 22:07 pjeby

I think you are right. The solution doesn't work for non-markdown files.

I am fine to discard this PR.

anselmwang avatar Jul 31 '22 22:07 anselmwang