mvdkwast / obsidian-copy-as-html

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

Plugin has no behavior #6

Closed micseydel closed 1 year ago

micseydel commented 1 year ago

Describe the bug Right-clicking shows no option to copy as HTML. Using Cmd+P to use the command results in nothing on my clipboard.

To Reproduce Steps to reproduce the behavior:

  1. Attempt to copy
  2. Attempt to paste

Expected behavior Pasting would show what was supposedly copied.

Desktop (please complete the following information):

mvdkwast commented 1 year ago

Hi @micseydel, thanks for taking the time to leave feedback.

I haven't been able to test this with OS X unfortunately, so I will to find someone to help me reproducing / analysing this one.

mvdkwast commented 1 year ago

Tested on OS X 10.15, couldn't reproduce, so I will need more information :

Thank you

micseydel commented 1 year ago

Just now I created a "Blank" note and put "t" in it and this is what I get when I paste it into Sublime text:

<!-- directives:[] -->
            <div id="content"></div>

I'm a SWE with little experience working with browsers or copy/paste from code. I don't know TS and hadn't used the Electron developer tools specifically before but you're welcome to give me a branch to look at even if you just want to pack it full of debug stuff. I definitely want to get into Obsidian plugins before long.

mvdkwast commented 1 year ago

Hi @micseydel ,

Would you mind trying the latest version ? I updated the way the copy is triggered, so the command should not appear anymore if you are not in an editor.

The title of the document is not copied, so you need to have something in the document to check it out.

If that doesn't work for you, I'll be glad to accept your offer to test an instrumented version !

micseydel commented 1 year ago

Thanks for looping back around! I get "Copy as HTML: styles.css not found" on app.js:1 from that.

mvdkwast commented 1 year ago

Something seems wrong : this plugin doesn't require a styles.css file, and the label should say 'Copy document as HTML', not 'Copy as HTML'. There is another plugin that is called 'Copy as HTML', maybe you're looking at that one ?

Could you try installing it using BRAT in a clean vault ?

luckman212 commented 1 year ago

Just adding a data point: I tested this plugin (v0.2.3) on macOS 13.0.1 / Obsidian 1.0.3 and it's working fine for me! No errors in the console.

micseydel commented 1 year ago

You're right, wrong repo, sorry about that!