Adding the functionality of the Algebraic Manipulate palette to the context menu ("right click menu") of Mathematica
The commands of the Algebraic Manipulation palette are converted into MenuItem
s, that will mainly use the FrontEnd
, with
MenuItem[#[[1, 1]], FrontEndExecute[{
FrontEnd`NotebookApply[FrontEnd`InputNotebook[], #, All],
FrontEndToken["Evaluate"]}]] & /@
Import[FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", "Palettes",
"Other", "AlgebraicManipulation.nb"}]][[1, 1, 1, 1, 1, All, 1, 1]] // InputForm
One can switch to Full Screen by pressing F12 and back again with F12, to make sure the output is formated in a way that is convenient for the next steps. If, for example, ones monitor is to small, one can Copy As ► Plain Text the output and add the line breaks manually later.
In both cases any ManuItem
one doesn't want to have in the context menu should be removed from the outputted list.
The content of the context menu is specified in the file
FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", "TextResources",
"ContextMenus.tr"}]
This file can be edited with an editor (e.g. Notepad++), but a backup copy should be created first.
To open this file from within Mathematica
SystemOpen@
FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", "TextResources",
"ContextMenus.tr"}]
can be used.
The context for inputs starts with "Input" -> {
.
To add a new menu entry after the entries related to Evaluate
Menu["&Algebraic Manipulate",
{
}],
Delimiter,
can be copied into a new line created after the Delimiter
of that section.
Now one only has to replace the created empty list with the list of MenuItem
s constructed from the palette entries, save the ContextMenus.tr file and restart Mathematica.

SetOptions[First@Notebooks["AlgebraicManipulation"], WindowFloating -> False]
. $\endgroup$