Say a have the function
foo[x_] := x + 2
Evaluate in place, I would like to have a keyboard shortcut that replaces the current selection with the result of applying
foo to the selection.
For example if I have selected
1+3 in a cell with the following contents:
By pressing a keyboard combination, I want Mathematica to replace it with the result of