#300 Command Completion Incorrect/Inconvenient

open
Tino Weinkauf
6
2012-02-01
2011-10-14
Anonymous
No

Version: TeXnicCenter 2 alpha 3 (Build 1118)

Using the autocompletion function of the texniccenter alpha version e.g. by typing:

\begin{tikz

leads to a small information window showing the command completion option:

\begin{tikzpicture}

\end{tikzpicture}

When hitting the <CTRL>-<SPACE> - keyboard combination the autocompletion will be executed, but leads to the following result:

\begin{\begin{tikzpicture}

\end{tikzpicture}

This happens with all command-completion functions. Obviously the XML-File parsing function/autocompletion function of texniccenter is not working correctly. By fixing the "expbefore"-entry in:

...<program dir>\TeXnicCente_Alpha\Packages\Tikz.xml

from:

<lxEnvironment name="tikzpicture"
parameters="1"
desc="TikZ environment"
icon="format.bmp"
index="6"
expafter="}&#xA; &#xA;\end{tikzpicture}"
expbefore="\begin{"/>

to:
<lxEnvironment name="tikzpicture"
parameters="1"
desc="TikZ environment"
icon="format.bmp"
index="6"
expafter="}&#xA; &#xA;\end{tikzpicture}"
expbefore=""/>

leads to the correct autocompletion function as desired. BUT this small fix leads to an incorrect autocompletion-information-window when typing:

\begin{tikz

the popup-window shows the following:

tikzpicture}

\end{tikzpicture}

From my point of view the command expansion and the popup-window is somehow merged somewhere in the code base (just guessing - I didn't check the source files).

A more configurable command expansion might be better - further information for each command could be included as well.

So long and thx to all TeXnicCenter developers for such a nice work and program!

Eddy

Discussion

  • Tino Weinkauf
    Tino Weinkauf
    2012-02-01

    • labels: 434620 -->
    • milestone: 1143860 -->
    • priority: 5 --> 6
    • assigned_to: nobody --> niteria
     
  • Tino Weinkauf
    Tino Weinkauf
    2012-02-01

    The feature has been added to the official feature list.

    Thank you for your report.

     
  • Tino Weinkauf
    Tino Weinkauf
    2012-02-01

    We need to check what the user typed. Some will just type 'tikz', some will type '\begin{tikz'. Check the text and insert as appropriate.

     


Anonymous


Cancel   Add attachments