Heads-up: the keybindings for the LaTeXTools plugin have changed. Make sure to read the README file for details: go to https://github.com/SublimeText/LaTeXTools and scroll down (or click the “Read More” link near the project description).
Why change things? When I started working on this plugin, my objective was to emulate the functionality of the LaTeX bundle for TextMate. In particular, I tried to use the same keyboard shortcuts. However, this slowly led to an accumulation of problems. One was that, as I added features to the plugin, it became harder and harder to assign them to shortcuts that were not already used by Sublime Text 2 itself. The other problem is actually due to ST2’s greatest feature: it’s a cross-platform editor, and the plugin must also work equally well on Windows and Mac, with full Linux support also coming soon (yes!). However, different OS’s have slightly different conventions and expectations about what certain keys do. Bottom line: things were getting unmanageable.
Enter the new keyboard shortcut scheme. It’s actually very simple:
buildcommand is still bound to
ctrl-bon Windows and Linux, and
cmd-bon OS X. For the time being, the Goto Anything functionality is also still bound to
- All other plugin commands use
cmd-lfollowed by another key or key combination. That’s “ell” for LaTeX.
Example: to do a forward search (i.e. jump to the point int he PDF file corresponding to the current cursor position) on Windows, enter
Ctrl-l followed by
j. This is abbreviated as
ctrl-l,j (the same convention used by Sublime Text). On OS X, this is
cmd-l,j. In fact, from now on, I shall write
C-l to mean either
cmd-l, depending on the platform.
I have tried to use mostly
C-l plus a single keystroke, with reasonable mnemonics. For instance: “j” for jump to PDF, “c” for LaTeX command based on the current word, etc. Wrapping commands use the
C- key twice: so, wrap in bold is
C-l,C-b, etc. Reference and cite completion uses
C-l,Ctrl-space (yes, even on OS X, that’s Command-ell, Control-space), but you can also use
C-l,x (for cross-reference). Finally, to toggle the focus from/to the PDF upon compilation, there is a three-key sequence:
C-l,t,f. I’ll try to reserve these for toggles and other less frequently used stuff.
Now, on ST2, the
C-l shortcut is bound to “Extend selection to line”. That’s reassigned to
C-l,C-l. The nice thing is that no other standard ST2 keyboard shortcut is affected.
As an additional benefit, these bindings are consistent with the “nice” (or “compact”) on-screen keyboard in Windows 8, which only has a Ctrl key (no Windows key, no Alt key).