For interacting with the Mathematica front-end using the keyboard: shortcut keys, KeyEvents, keyboard navigation, etc.
2
votes
1answer
73 views
3rd derivative keyboard shortcut
For a long time i've evaluated D[f[t],{t,3}] to get this power-like derivative thing:
$$f^{(3)}(x)$$
Is it possible to obtain same through an easier keyboard ...
6
votes
1answer
80 views
Remap Ctrl+Space?
The Ctrl+Space keyboard shortcut is really important in Mathematica for using Placeholder[] boxes in input templates. Unfortunately, Ctrl+Space occupies the ...
1
vote
0answers
67 views
Is there a keyboard shortcut for Centered Math Cell?
I've been typesetting in mathematica and would like to know if it is possible to use a keyboard shortcut to place a centered math cell or equation symbol aligned math cell in my document without ...
1
vote
2answers
44 views
How to delete the current group-cell using the keyboard?
Related to Delete the current notebook cell using the keyboard.
Difference is that here I want to delete the whole group of cells, including the original Input cell and all Print, Output, Message etc. ...
0
votes
0answers
54 views
Autocomplete short symbol names in non-global context
Is it possible in v9 to autocomplete the short symbol names when one is operating in a context other than Global`? I.e. after evaluating the following:
...
2
votes
1answer
70 views
How I get random keys from keyboard for game controls?
I'm trying to make moving object using controls.
I'm trying to do this using Buttons. The code is
...
2
votes
2answers
106 views
Copy last/second last (etc.) input from history into current cell
I like to use terminals (e.g. gnome-terminal) where you can use the up key to copy the last command into the current input 'field'. For example, to repeat the last ...
2
votes
0answers
65 views
Why FrontEnd`KernelExecute doesn't work in KeyEventTranslations.tr?
Which commands can you put in KeyEventTranslations.tr ?
There is an extensive list of FrontEndTokens, but what else can you use? Why something like this doesn't ...
24
votes
2answers
500 views
Template completion
In version 8, if one evaluates
test::usage="test[x,y]";
then types test, then shift-cmd-k (or shift-ctrl-k), a template ...
12
votes
2answers
225 views
How can I make an InputField[] with a proper newline/carriage return?
The return key does not work as expected in an InputField, how can I overcome this?
2
votes
1answer
180 views
An ancient MIDI keyboard?
There is a demostration project
http://demonstrations.wolfram.com/KeyboardAndComposer/
where you can compose Western music using a 97 keys simulated midi keyboard.
I study eastern and ancient music ...
1
vote
1answer
221 views
Shortcuts for integration and differentiation?
I am trying to learn the most useful keyboard shortcuts for doing basic operations such as integration, differentiation etc in standard form. A few questions -
I have checked the documentation and ...
2
votes
1answer
81 views
Can this Part shortcut key be made to work with version 9?
In version 8 I was a frequent user of the "Use shortcut keys to easily type〚 and 〛" trick.
In version 9, when I try to make the necessary change to ...
2
votes
1answer
139 views
Mathematica Mac Keyboard Shortcuts not Working?
Really I'm just trying to use the Ctrl+2 shortcut to make a radical, but for some reason this won't work. What could possibly be going wrong? The exponent shortcut works (i.e. Ctrl+6).
5
votes
1answer
168 views
The shortcut for Subsuperscript doesn't work?
The document for Subsuperscript says that:
To enter a subsuperscript in a notebook, use either Ctrl+_ to begin a
regular subscript or Ctrl+^ to begin a regular superscript. After
typing the ...
12
votes
2answers
332 views
How can I overload autocompletion to work with full contexts?
I would like for the autocomplete feature to search through contexts, for example if I have a symbol named A`B`C`MyFunction, when I type A` and press "cmd + shift + k" it will complete it.
Edit
To ...
12
votes
3answers
390 views
How to make the suggestion box appear?
When you type a function in Matlab, quickly a suggestion box comes up showing functions similar to the one you're typing. I thought that Mathematica didn't have this but one day, I typed half of a ...
13
votes
2answers
366 views
Command Completion
Note: As of version 9, this functionality is available and works out of the box.
I've a few questions about Command Completion in Mathematica. I recently discovered this feature, and it's really ...
14
votes
2answers
300 views
Auto-completion doesn't work as my expectation in version 9.0
When I input the following line in version 8, and press Ctrl+K after Re, I can get a drop-down auto-completion list including ...
9
votes
1answer
208 views
How can I set a keyboard shortcut to run a command?
I want to use this to add a keyboard shortcut to an undo function I wrote. The basic problem is the following:
I have a command, let's say x=1, and I want to run ...
3
votes
1answer
160 views
Quick way to invert a fraction
Over the years of using Mathematica, I find myself doing something along the lines of rewriting this:
$\frac{[A^-_F]}{[A^-_U] + \frac{[H^+][A^-_U]}{\kappa_1}}$
as this:
$\frac{[A^-_U] + ...
2
votes
2answers
131 views
Key to get help about current function
I know you can hit F1 to pop up the documentation center, and then type the name of a function and search for it.
I'd like to know if there's a key that just pops up the help page of the function ...
7
votes
1answer
187 views
How can I add arbitrary code into DefaultKeyTranslations.tr?
The solution to this question on how to get latex code for a text cell (which Mathematica doesn't do correctly) was formulated as a palette but I need it as a keyboard shortcut.
How can I add an ...
10
votes
2answers
476 views
How can I change the keyboard shortcut for switching the active window?
The default keyboard shortcut (on Windows at least) for switching focus to the next window is Ctrl+F6, and for switching to the previous windows it's Shift+Ctrl+F6. How can I change this to Ctrl+Tab ...
13
votes
3answers
413 views
Opening a context menu (with the Menu key)
Is it by any chance possible to make the Menu key work as one would expect in Mathematica: opening a context menu?
The Menu key does nothing in version 7 or 8 on Windows.
5
votes
2answers
149 views
Is it possible to define more than 9 shortcuts for notebook cell styles?
You can define shortcuts for notebook cell styles in the stylesheet editor, by adding MenuCommandKey->"7", etc. to the style definition. That is, you can define ...
6
votes
2answers
148 views
Select Cells to End of Notebook
I'd like to create a keyboard shortcut that will allow me to select all of the cells from the current cell until the end of the notebook, similar to how ShiftCtrlEnd functions when editing text in ...
7
votes
1answer
276 views
Enhanced “Complete Selection” (dynamic autocomplete) for Text input?
The autocomplete ("Complete Selection") feature Ctrl-K (or F2 on Windows) works fine for functions and code input.
Is there a way to enhance it for text input?
Today’s standard (see e.g. OpenOffice ...
3
votes
1answer
122 views
Cursor Position / Insertion Point
Is there a way to access (or even set) the cursor position in a Notebook?
(By Cursor I refer to the keyboard input postion, or "Insertion Point". For the Mouse we have ...
4
votes
1answer
366 views
Windows IME Chinese blocking shortcut for ctrl + space
I currently use the Windows IME on Windows Vista to allow myself to type Chinese characters (not in Mathematica), and by default typing CtrlSpace switches between the English keyboard and the Chinese ...
3
votes
1answer
167 views
Extraneous Keyboard Shortcut for ctrl + '^' in Mathematica 8
I would like to use the keyboard shortcut Ctrl^ to enter a superscript. I have tried to type this two different ways, and each time i have gotten an undesirable result. According to the file ...
8
votes
0answers
335 views
How to copy hyperlink addresses using the keyboard
I would like to copy the address of a hyperlink in Mathematica using the keyboard.
I found code for copying hyperlink addresses in ContextMenus.tr:
...
7
votes
1answer
333 views
Rebinding keys to define new keyboard shortcuts
I've checked Mathematica → Preferences, and poked around the options on the toolbar. However, I don't see a way to define new keyboard shortcuts in Mathematica.
I've used VIM for 10+ years, and I've ...
10
votes
1answer
193 views
Best way to add KeyEvents and faster Quit
Many users have asked how to add KeyEvents to speed/improve keyboard input. This is just a random example. The technique is always the same. It requires that you ...
10
votes
2answers
268 views
Defining symbol shortcuts in the Front End
I was wondering (because I could not find any documentation on this) if it is possible to do shorthand abbreviations for domains or could one define them?
E.g.
In[1]:= Element[p,Complexes]
...
16
votes
2answers
461 views
Automating Esc [[ Esc formatting?
Is it possible to program the Front End to automatically format double square brackets without having to type Esc[[Esc each time? It's awful to have to type Esc ...
12
votes
2answers
269 views
Detecting KeyUp events
Is there a way to detect when a key is released, similar to
EventHandler[InputField[], {"KeyDown", "k"} :> Print["k pressed"]]
It seems such detection isn't ...
1
vote
0answers
105 views
keyboard sequence for Magnify in version 8?
It used to be that you could find a Magnify item in the Format menu of the Mathematica front-end, at the very bottom if I remember correctly. You could get at the item in Windows by a keyboard ...
10
votes
2answers
301 views
How to automate a FrontEnd return?
I use some custom shortcut keys in KeyEventTranslations.tr. One is for the Delete All Output function:
...
3
votes
1answer
360 views
Custom setting of HOME and END keys on mac
Is there a way to set the HOME and END keys on a Mac's keyboard to jump the cursor to the line's beginning and end respectively?
...
7
votes
1answer
500 views
Emacs key bind on Mathematica Linux
This might not be Mathematica specific question but if there is anyone who can use Emacs keybind on Ubuntu Linux, would you share how you realize it?
I'm using Mathematica student edition both on ...
8
votes
3answers
324 views
Ctrl+= opens the alpha input instead of below-script
When trying to type "traditional style" inputs such as integrals or sums, I follow the tutorial and type
Esc sum Esc Ctrl+= n=1 Ctrl+% 10 whatever
However, when I type Ctrl+= it opens ...
8
votes
2answers
267 views
Move the cursor in a notebook using the keyboard
How can I move through a notebook using only the keyboard?
If one tries to use the arrow keys, the cursor tends to get "trapped" in comments and error messages.
8
votes
4answers
511 views
Create shortcut in Mathematica for “Equal Symbol Aligned Math Cell”
How do I create a new shortcut for creating a "Equal Symbol Aligned Math Cell" in Mathematica 8?
Update
I meant a keyboard shortcut. An "Equal Symbol Aligned Math Cell" is exactly what @Heike ...
10
votes
2answers
754 views
Delete the current notebook cell using the keyboard
Is there another way than pressing Ctrl+. until the whole cell is selected and then pressing Del?
If this is not built in, can I create some sort of a global macro to do this and bind it to a ...



