Helix does not fill in the current line number at the placeholder %l
Author: mschneiderwngCreated Sep 25, 2026Updated Sep 25, 2026
LabelsC-bug
Summary
I am trying to switch my latex workflow to helix. The problem I cannot solve currently is the jump to the current line in the pdf viewer zathura.
The issue seems to be that the current line number is not given to texlab. I wrote a wrapper script to log how zathura is called and the result is zathura --synctex-forward 1:0:my.tex main.pdf (my.tex is included in main.tex). As you can see the line number is 1, but its should be 300.
My config looks like this
[language-server.texlab.config.texlab.build]
args = ["-f", "-pdflatex=lualatex", "-pdf", "-interaction=nonstopmode", "-synctex=1", "-shell-escape", "%f"]
executable = "latexmk"
forwardSearchAfter = true
onSave = true
[language-server.texlab.config.texlab.forwardSearch]
args = ["--synctex-forward", "%l:0:%f", "%p"]
executable = "/home/me/tmp/viewwrap.sh"File: /home/me/tmp/viewwrap.sh
#!/bin/sh
printf '%s\n' "$@" >> /tmp/texlab-zathura.log
exec zathura "$@"Reproduction Steps
Create a main.tex and include my.tex Write some text in my.tex and try to jump to the current line. The viewer jumps to the first line, since helix passes 1 to the %l placeholder.
Helix log
~/.cache/helix/helix.logplease provide a copy of `~/.cache/helix/helix.log` here if possible, you may need to redact some of the linesPlatform
Linux
Terminal Emulator
Ghostty 1.3.1
Installation Method
flake
Helix Version
helix 25.07.1 (079a789e)
Source: helix-editor/helix