geany-plugins icon indicating copy to clipboard operation
geany-plugins copied to clipboard

Markdown: Context menu "Reload" does not work

Open mirkoperillo opened this issue 5 years ago • 2 comments

I report this issue after a discussion in the user mailing list. A context menu is shown when you click the right mouse button on the markdown preview panel. It seems that the panel is produced by the libwebkit used by the plugin. This is the piece of discussion on the mailing list

Correct, IIUC webkit is fed the data directly by the plugin, not by saving a file, but having pretensions of being a browser webkit likely still has a "home" location like most browsers do, and it tries to reload that. If webkit allows that menu to be customised then if someone wants to send a pull request to remove the useless menu entry I'm sure it would be welcome.

Screenshot

geany-screen

mirkoperillo avatar Jan 18 '20 16:01 mirkoperillo

Note for future:

https://webkitgtk.org/reference/webkit2gtk/stable/WebKitWebView.html#WebKitWebView-context-menu

It might be possible to actually make the reload option work though.

codebrainz avatar Jan 18 '20 16:01 codebrainz

I have the same problem. I get the error "Error opening file {path-tp-md-file}/index.html: No such file or directory"

Skrrytch avatar Jan 09 '21 16:01 Skrrytch