Skip to content

Case-sensitive sorting #44

@nchilada

Description

@nchilada

LaTeX symbol names are case-sensitive, so ideally this extension would (at least partially) sort search results based on how closely they match the case of the input text. In particular, if I:

  1. Run the Insert Math Symbol (insertMathSymbol) command
  2. Search for a lowercase symbol by typing something like "omega" or "\omega", often from memory
  3. Press enter to insert the first result without having to navigate down to subsequent results

then the command should enter the symbol corresponding to LaTeX's \omega.

Currently, however, the command simply returns whichever symbol appears first in latexSymbols, which is sometimes the uppercase form, in this case \Omega. (latexSymbols does appear to be ordered carefully enough such that, for the example above, \Omega and \omega both appear before derivative symbols that also contain that Greek letter somewhere in their names. Thank goodness!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions