Skip to content

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

@zsiegel92

Description

@zsiegel92

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:

  • When dropdown is triggered, user starts typing then uses TAB to cycle through autocompletions in the dropdown
  • ENTER should select the correct one
  • The dropdown disappears, and the cursor is to the right of the closing bracket.
    • Alternatively, the cursor could still be inside the brackets for editing the reference name, but then TAB should exit the brackets.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions