cvfosammmm / Setzer

LaTeX editor written in Python with Gtk
https://www.cvfosammmm.org/setzer/
Other
390 stars 34 forks source link

Autocompletion Heuristics #276

Open maymage opened 2 years ago

maymage commented 2 years ago

Hi all,

autocompletion like \al + TAB --> \alpha is super useful, but the offered list is merely ordered alphabetically, not by any heuristic, which makes hitting the desired completion easily findable.

Here an example

image

I'd argue, that among all listed options for \t probably \text{*} is the most often used command and so should be shown first.

Just brainstorming here - split the list as

`

................................................................................ | 1st. most often in current document....| | 2nd. most often in current document..| | 3rd.. most often in current document..| ................................................................................ | 1st in alphabetic order............... (s)........| | 2nd in alphabetic order...............(c)........| | 3rd in alphabetic order................(r)........| |.................................................................(b).......| |.................................................................(a).......| |..................................................................(r).......| ................................................................................

`