Your suggestion will only work if the icon image well is visible, so I've opted for selecting the current macro in the groups list and then tabbing. Here's a new version with that included:
The user can now use the arrow keys in the Icon Chooser to select an Icon and hit ↵ to submit.
Icons resized to 64x64 pixels.
One thing I couldn't figure out was why I couldn't use KM's Set System Clipboard to Image action and had to resort to AS. If I do use the native action, I can display the image (Display System Clipboard) so it is on there; it just won't paste.
What happens if you click one of the black icon squares? Does it still paste the icon? If so, then it's just an issue with the HTML prompt not displaying the images.
(I say "just" but I'm not sure how I'd investigate it!)
Hi @noisneil, this is great! Thanks for creating and sharing.
I added an icon with .svg extension and the macro stopped working. To fix this, I deleted the .svg icon. Then use KM native way of selecting an icon to the macro image well. After that, the Custom Macro Icons started working again.
Here's a site to download almost any icon possible.
Hopefully, this should convert any .svg, .ico or .icns files you might manually place in the Icons Folder to .png. It may not work for all files, as I'm using limited built-in macOS tools (for compatibility).
My intention was to stick with .png files, but this is probably a worthwhile addition that shouldn't slow things down too much.
I found what's causing the problem for me and it's spelled out in this thread:
Basically I'm stuffed because all my user files are on a removable external SSD and the Custom HTML Prompt can't load/display such files as WebKit won't allow it and there doesn't seem to be a way around it.
If I'd been aware of this limitation maybe I wouldn't have moved my user files in the first place!