Closed RohanModi-CA closed 1 month ago
perhaps a better implementation of the vimtex script thing would be a user-enabled command to link to a i3-layout script.
the natural issue is how to deal with the fact that the current terminal window is already open, and the layout appender will not enjoy that
the close issue has been fixed in 437ea40c24a155aaeb4706a6682d927c324c2fde
the close issue has been fixed in 437ea40
incorrect.
So the window identification WORKS when you do not use the vimtex script. That's interesting..
because.. we have some race condition. not sure what yet. but: it all comes down to the redraw! command in the vimtex script. it instantly starts the zathura run command right after :KVTServer. the reason why running it without the script works is because the manual delay kills the race condition. if we do it without the script but very quickly dismiss the "okay" thing, the same thing happens.
now... what is this race condition?
still not sure. if we add a 100ms sleep -c "sleep 100m"
after the VimtexCompile
, it works. Why? It's bizzare.
this is our "working" command:
nvim -c "KVTServer" -c "VimtexCompile" -c "sleep 100m" -c "VimtexClean" -c "redraw!"
It's the VimtexClean
. That seems to be deleting auxilliary files while VimtexCompile is running, since VimtexCompile runs in the background. VimtexClean is unneccessary and I won't bother with it. (especially since while running the code, there will be more auxilliary files made)
Open/close is now fully fixed in:
3a74a2e53d55dc238ebd2fe396520214b7375f59
So the window identification WORKS when you do not use the vimtex script. That's interesting..