RickStrahl / MarkdownMonster

An extensible Markdown Editor, Viewer and Weblog Publisher for Windows
https://markdownmonster.west-wind.com
Other
1.59k stars 235 forks source link

Default Keybinding for `Paste HTML as Markdown` not working #1147

Closed pa-0 closed 2 weeks ago

pa-0 commented 2 weeks ago

Ctrl+Shift+V is not working to paste HTML as Markdown. Selecting the entry from the Edit works exactly as expected. It is just the keyboard shortcut that returns nothing.

pa-0 commented 2 weeks ago

Windows 11 Enterprise 64-bit, OS Build: 22631.4317

Keybinding.json unmodified, keyboard combination at issue not mapped as custom hotkey anywhere else. Tested with all third-party apps closed.

pa-0 commented 2 weeks ago

So just following up. After restarting the app, it began to work once more. However, after some time, it once again ceased to function. Seems the workaround is restarting app.

RickStrahl commented 2 weeks ago

You may have a double mapping or the mapping is no longer valid? Perhaps Vim mode?

Ctrl-Shift-V works for me and my instance has been running for most of the day (many hours of active work).

Section should look like this:

  {
    "Id": "PasteMarkdownFromHtml",
    "Key": "Ctrl+Shift+V",
    "CommandName": "PasteMarkdownFromHtml",
    "CommandParameter": null
  },

Couple of things to check:

It could also be that the HTML to markdown conversion is failing although that is pretty unlikely. It might produce garbage if the HTML has a bunch of formatting in it, but it tends to work. If it happens again see if you can load something simple that you know works to paste as HTML or has worked previously.

pa-0 commented 2 weeks ago

You are correct. I realized today this was occurring not because of the keybinding, but because I was copying only portions of webpages (resulting in malformed HTML). If I CTRL+A and copy the entire page, it works as expected. The inconsistent behavior was a result of my selections changing in between pastes before. Closing this.