SublimeText / LaTeXTools

LaTeX plugin for Sublime Text
https://latextools.readthedocs.io/
2k stars 364 forks source link

Key interface in `ref` (or `\eqref`) inconsistent with other environments #1464

Open zsiegel92 opened 4 years ago

zsiegel92 commented 4 years ago

Hi,

When you type \ref{ or \eqref{, a dropdown menu comes down giving all valid completions. This is a great feature. You can select an option with ENTER, then you have to press the right arrow to exit the completion environment. If you have escaped the dropdown, TAB cycles through completions within the file.

I propose that TAB should autocomplete options in the dropdown (as it does throughout Sublime Text, including in the dropdown menu). I also propose that once an option has been selected from the dropdown, the cursor should be move TO THE RIGHT of the closing bracket so that the user does not have to type a right arrow. Ideally, it would work like this:

This also applies to \includegraphics and other commands that trigger a dropdown menu.