TeXiFy-IDEA icon indicating copy to clipboard operation
TeXiFy-IDEA copied to clipboard

Tab autocompletion is buggy when text is present at caret

Open jojo2357 opened this issue 1 year ago • 5 comments

Half a bug, half a missing feature.

\begin{document}
$5\lamb<caret>$
\end{document}

select the completion \lambda with tab and the closing $ will be consumed

Expected:

\begin{document}
$5\lambda$
\end{document}

Actual:

\begin{document}
$5\lambda
\end{document}

jojo2357 avatar Dec 03 '23 22:12 jojo2357

Thanks, indeed something strange is going on, another example:

Given: \input{te<caret>.tex} Expected after tab completion: \input{texbook.tex} Actual: \itexbook.tex}

PHPirates avatar Dec 04 '23 18:12 PHPirates

This seems to be a bug in IntelliJ, I've created a bug in YouTrack: https://youtrack.jetbrains.com/issue/IDEA-341961/Deletion-for-replacement-completion-is-based-on-Java-but-also-used-for-other-languages

slideclimb avatar Dec 29 '23 14:12 slideclimb

Thanks, indeed something strange is going on, another example:

Given: \input{te<caret>.tex} Expected after tab completion: \input{texbook.tex} Actual: \itexbook.tex}

This bug already exists as TEX-153, I suggests keeping it separate from this as it's a different issue - I have been debugging, fix should be coming soon :)

slideclimb avatar Jan 24 '24 21:01 slideclimb

This bug already exists as TEX-153, I suggests keeping it separate from this as it's a different issue - I have been debugging, fix should be coming soon :)

Could you add a link to the issue? I have a similar problem with \addbibresource{} (as well as the mentioned one with \input{}). Where is / was this tracked?

frankbits avatar Apr 30 '24 10:04 frankbits

oh, the github-actions-bot added the link to my comment (still In Progress?). And from there I found the pull-request on github (merged in v0.9.4). That way I found out that I was using an old version of TeXiFy, as PHPStorm on this device was not up-to-date. After updating my IDE, I could update TeXiFy, which fixed the problem for me.

frankbits avatar Apr 30 '24 11:04 frankbits