Change MenuEntryName into PluginEntryName and then find the correct name in the Shortcutmapper (the shortcutmapper name is the real name to use, textfx performs some magic inside the menu)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I tried out your advice, and switched my contextMenu.xml file to the following:
<NotepadPlus>
<ScintillaContextMenu>
<Item PluginEntryName="TextFX" pluginCommandItemName="E:Rewrap Text to (Clipboard or 72) width"/>
<Item PluginEntryName="WebEdit" pluginCommandItemName="WebEdit - Italics"/>
</ScintillaContextMenu>
</NotepadPlus>
Now it looks like I'm halfway there -- the WebEdit item shows up correctly, but I still can't get the TextFX plugin to show up. I assume I'm still doing something wrong?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yeah TextFX is quite the nasty plugin when it comes to the menu :)
After some quick debugging, I found it has to be
PluginEntryName="TextFX Characters"
so try that, it should work (but it doesnt look very nice though)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Any advice on how to get TextFX or WebEdit functions into the context menu?
I tried this, and it did not work:
<NotepadPlus>
<ScintillaContextMenu>
<Item MenuEntryName="TextFX" MenuItemName="Wrap"/>
<Item PluginEntryName="WebEdit" pluginCommandItemName="Italics"/>
</ScintillaContextMenu>
</NotepadPlus>
=-p-=
Er... make that "Unwrap Text", not "Wrap". Anyway, it still doesn't work.
Change MenuEntryName into PluginEntryName and then find the correct name in the Shortcutmapper (the shortcutmapper name is the real name to use, textfx performs some magic inside the menu)
Thanks!
I tried out your advice, and switched my contextMenu.xml file to the following:
<NotepadPlus>
<ScintillaContextMenu>
<Item PluginEntryName="TextFX" pluginCommandItemName="E:Rewrap Text to (Clipboard or 72) width"/>
<Item PluginEntryName="WebEdit" pluginCommandItemName="WebEdit - Italics"/>
</ScintillaContextMenu>
</NotepadPlus>
Now it looks like I'm halfway there -- the WebEdit item shows up correctly, but I still can't get the TextFX plugin to show up. I assume I'm still doing something wrong?
aaand done:
https://sourceforge.net/forum/message.php?msg_id=6209362
Yeah TextFX is quite the nasty plugin when it comes to the menu :)
After some quick debugging, I found it has to be
PluginEntryName="TextFX Characters"
so try that, it should work (but it doesnt look very nice though)
Hooray! That worked. Thanks very much.
Now to put in a feature request for setting the visible name of a context-menu item....
aaand done:
https://sourceforge.net/forum/message.php?msg_id=6209362