The Ctrl+Space keyboard shortcut is really important in Mathematica for using Placeholder[] boxes in input templates. Unfortunately, Ctrl+Space occupies the significantly more important role of the system-wide Quicksilver shortcut that I'm not really willing to part with, not even while Mathematica is running. Can I change this shortcut in Mathematica to some other key sequence?
Asked
Active
Viewed 664 times
7
J. M.'s missing motivation
- 124,525
- 11
- 401
- 574
Daisy Sophia Hollman
- 423
- 2
- 8
-
2Seen this? – J. M.'s missing motivation May 06 '13 at 14:40
-
1I'm not sure what you mean by "important for using Placeholder[] boxes". Control-Space is the shortcut for "End Subexpression", e.g. exiting the superscript after pressing Control-6. You can do fine without it. Just use the arrows to exit the superscript. Can you explain what you're doing with Control-Space exactly? I don't understand how it's related to Placeholder[]. – Szabolcs May 06 '13 at 14:40
-
@Szabolcs: I should clarify: Yes, you can use the arrow keys, but moving out of subexpressions (containing placeholders, hence the reference) using the arrow keys while typing long expressions begins to hurt your wrists after 8+ hours straight or so. – Daisy Sophia Hollman May 06 '13 at 14:44
-
Well, you can always edit KeyEventTranslations.tr and add a different alternate than right-arrow. For my wrists I prefer a single key rather than a combination though. – Szabolcs May 06 '13 at 14:48
-
3I use Windows and use Ctrl+tab to exit subexpressions – Rojo May 06 '13 at 15:08
1 Answers
13
Thanks to everyone for the helpful comments. Here's the exact procedure I used to fix this (specific to Mac OS X, version 10.8 if that matters, and Mathematica 8, but it should be analogously applicable to other versions and operating systems):
- Close Mathematica
- Delete the keymap cache. For me this was in
~/Library/Mathematica/FrontEnd/8.0 Caches/MacOSX-x86/SystemFiles/FrontEnd/TextResources/Macintosh - Edit the
KeyEventTranslations.trfile. For me this was in/Applications/Mathematica.app/SystemFiles/FrontEnd/TextResources/Macintosh. For me, the relevant line was 120, readingItem[KeyEvent[" ", Modifiers -> {Control}], "MoveExpressionEnd"], - Reopen Mathematica. The new keyboard shortcut is in place.
Daisy Sophia Hollman
- 423
- 2
- 8
-
2+1 for coming back and describing the solution in detail for everyone's benefit – Szabolcs May 06 '13 at 15:21