mvdkwast / obsidian-copy-as-html

Obsidian plugin: copy document as HTML, including images
MIT License
42 stars 11 forks source link

Copy as HTML button by right clicking doesn't seem to be working? #31

Closed weldcloudnotes closed 9 months ago

weldcloudnotes commented 1 year ago

When I click on the button to Copy to HTML nothing seems to happen

image

But when I try to do it with my hotkey'd command, there is a short progress bar and I do get the document into the clipboard, so when I use the hotkey it works just fine

image

The plugin is working great for me with the hotkey, but in general I don't use hotkeys for tasks like these (that I don't do that often). I wonder if this is a bug or if there's any plugin that this is incompatible with?

Edit: further information on this:

It seems that I can only copy a document to HTML when my text cursor is enabled in a file

image

If I select something from the vault (left click) obsidian will automatically place the cursor at the beginning of the file and like this I can use Copy as HTML through the hotkey shortcut.

If I right click any file on the vault, the cursor will be removed and I no longer can copy to html (I can't copy even when I use the hotkey in this scenario)

mvdkwast commented 11 months ago

Welcome @weldcloudnotes, and thanks for reporting ! The action is indeed applied to the active editor view, so it doesn't work when no editor windows is in focus.

Marking this as "enhancement", not sure when I will have time to look into this.