texworks icon indicating copy to clipboard operation
texworks copied to clipboard

[Feature Request] Enhanced auto-completion

Open GoogleCodeExporter opened this issue 10 years ago • 5 comments

Two features of Kile that I would love to see in Texworks:

(1) Auto completion of environments.  For example when you hit enter after 
\begin{equation} it automatically generates \end{equation} and places  the 
cursor between.  Same for many environments, including tables, lists, etc.

(1a) Actually, an improvement on this would be to have the following behavior:
* type \begin{equation}
* hit enter
* \end[equation}automatically generated
* \label{} automatically generated in between.  Cursor between {}, and label{} 
highlighted.  Type label, or hit backspace to get rid of the label

(2) autocompletion of references.  When you type \ref{ or \eqref{ Kile 
autocompletes from existing labels.

Original issue reported on code.google.com by [email protected] on 6 Apr 2011 at 4:59

GoogleCodeExporter avatar Mar 14 '15 11:03 GoogleCodeExporter

When I created the issue, I could not find any way to label it as an 
"Enhancement".  How do I do that?

Original comment by [email protected] on 6 Apr 2011 at 5:00

GoogleCodeExporter avatar Mar 14 '15 11:03 GoogleCodeExporter

Thanks for reporting. Both things are on my general wish list, but these 
features depend on others that should be implemented first.

Re. labels: unfortunately, users can't edit labels. I've changed it to 
enhancement for you.

Original comment by st.loeffler on 6 Apr 2011 at 6:05

  • Changed title: [Feature Request] Enhanced auto-completion
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

GoogleCodeExporter avatar Mar 14 '15 11:03 GoogleCodeExporter

Well great work in the mean time.  I use Texworks exclusively on my windows 
machine.

Original comment by [email protected] on 7 Apr 2011 at 4:24

GoogleCodeExporter avatar Mar 14 '15 11:03 GoogleCodeExporter

There is a script available for autocompleting text, references and other stuff.
It can handle case 1 and 2 but not 1a.

See video on http://www.youtube.com/watch?v=gRSq_OSxPec

Best 
Henrik

Original comment by [email protected] on 15 Nov 2011 at 12:38

GoogleCodeExporter avatar Mar 14 '15 11:03 GoogleCodeExporter

I suggest this is closed as I'm updating the lists in https://github.com/TeXworks/texworks/issues/813.

josephwright avatar Aug 20 '17 13:08 josephwright