Hi, in the LaTexTools package, the latextools_jumpto_anywhere
command is extremely useful for productivity. It is triggered by Ctrl + L, Ctrl + J, and it allows for different actions depending on where the caret is. For example:
- If the caret is on a citation, it jumps to the bibliography file.
- If the caret is on a package, it opens the package PDF documentation.
- If the caret is on a file name, it jumps the file.
- If the caret is on a reference, it jumps to the reference’s label.
- If the caret is on a label, it shows a list of all references of that label.
Since V4 of LaTexTools, I have been unsuccessful in making the last two applications work (the first three applications work just fine). I would appreciate any help. Below I provide a minimal non-working example. By that I mean that when I put the cursor on \ref{eq_abc}
and press the key binding, I get an error in the status bar: “No matching label found for ‘eq_abc’.”.
\documentclass{article}
\usepackage{amsmath} % Allows mathematical commands like \begin{align}.
\usepackage{amssymb} % Allows mathematical symbols like \mathbb{N}.
\PassOptionsToPackage{hyphens}{url}\usepackage[pdftex, bookmarksnumbered=true, bookmarksopen=true, bookmarksopenlevel=1, colorlinks=true, allcolors=blue, pdfstartview={FitH}]{hyperref} % Turns references into hyperlinks and allows configuration of the PDF file.
\begin{document}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
\begin{align} \label{eq_abc}
a &= b + c
\end{align}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
As we can see from equation \ref{eq_abc}, ...
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
\end{document}
For reference, this is from the original Default (Windows).sublime-keymap
file:
// Jump to anywhere
// This will select the executed jump according to the context,
// e.g. if the cursor is inside a ref command it will jump to the corresponding label
{
"keys": ["ctrl+l", "ctrl+j"],
"command": "latextools_jumpto_anywhere",
"context": [
{ "key": "selector", "operand": "text.tex.latex" }
]
},