[texworks] Completion changes...

Herbert Schulz herbs at wideopenwest.com
Tue Dec 2 19:13:51 CET 2008


On Dec 2, 2008, at 11:58 AM, Herbert Schulz wrote:

>
> On Dec 2, 2008, at 11:40 AM, Edd Barrett wrote:
>
>> Hi,
>>
>> I wanted to try to fix the whitespace in the completion code.
>>
>> For example :
>>
>> \begin{itemize}
>> \item |
>> \end{itemize}
>>
>> instead of:
>> \begin{itemize}
>> \item
>> |
>> \end{itemize}
>>
>> (where the pipe is the cursor).
>>
>> so heres an example hunk from my diff:
>> -bite:=\begin{itemize}#RET#\item#RET##INS##RET#\end{itemize}
>> +bite:=\begin{itemize}#RET#\item #INS##RET#\end{itemize}
>>
>> * Im assuming #INS# is the cursor pos.
>> * and that #RET# is a carriage return.
>>
>> But applying this diff and rebuilding the project makes no  
>> difference,
>>
>> Why so?
>>
>> -- 
>> Best Regards
>>
>> Edd
>
>
> Howdy,
>
> What do you mean by ``rebuilding the project''? What is already in  
> the tex file is plain text and will not change. However, the next  
> time you start an itemize environment and use the completion for  
> bite you'll get the new version.
>
> What you've done should be correct.
>
> Good Luck,
>
> Herb Schulz
> (herbs at wideopenwest dot com)


Howdy,

Sigh... I just tried that and, indeed, it didn't work. Now I wonder if  
TeXworks is using an internal version of the file and not the one in  
the TeXworks/completion/ directory.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)





More information about the texworks mailing list