Zettt/km-markdown-library

Language Issue in the macro "New Link"

madnil opened this issue · 4 comments

The macro "Link New" doesn't work correctly, when the system language is not English. It looks for a menu entry named "Copy", but e.g. in German it is "Kopieren".

Then easily change the menu entry it's looking for. These macros only work with English OS's.

I decided to reopen this issue and work on it. It's the next logical step. I backed off from it because the solution is not very "clean".

If you want to fix it for yourself: Check out Peter's Markdown macros. You need to put a string on the clipboard, and check for that string to be there. If it is there, then the Cut command was obviously not available, which means there was no selection.

Just a quick update on this. I've tinkered with this a couple of hours yesterday and found a solution that works internationally. This bug will be resolved with v2 of these macros.

Fixed in v2. Please note that you have to set your languages' "cut" menu item text manually in the "Helper - Is Text Selected?" macro.