Reputation: 3244
How can I bind a keyboard shortcut (e.g. F2) to α-rename in DrRacket, available as rename foobar
in the context menu brought up by right-clicking on a variable name?
The documentation boils down to "call a magic function name from the API", but I'm having a hard time finding that operation in said API.
Upvotes: 2
Views: 218
Reputation: 31145
From the History file for DrRacket version 6.0
Added keybindings for the items in the Check Syntax popup menu,
notably c:x;m to rename a variable, c:x;d to just to the
definition of an imported variable, c:x;n to go to the next
occurence of a variable, and c:x;b to go to the binding occurrence
of a variable.
So ctrl-x, m ought to do the trick.
Upvotes: 2