[texworks] Scripting: Available script hooks

Henrik Skov Midtiby henrikmidtiby at gmail.com
Thu Mar 15 15:41:28 CET 2012


Hi

I'm considering how to make a script that can come with suggestions or
hints while the user enters text in the editor. The script should not
need to be invoked by the user, but activated by entering text in the
editor.
If there were a OnKeyPress hook, this could activate the script.

On how to show the hints / suggestions, is it possible to open a list
next to the cursor?
The least demanding solution would be to insert to most likely
suggestion as raw text, having it selected, such that the next
inserted char will overwrite the suggestion.

In addition I would like some input on what should be shown in such hints.

As an example, if the current line reads

\begin{wrapfig

the suggested completion of the line would be

\begin{wrapfigure}[lineheight]{alignment}{width}


Best regards
Henrik


More information about the texworks mailing list