#!/bin/sh # Used for inverse search from a PDF in Zathura # to the corresponding *.tex in Neovim on Linux. # xdotool is used to return focus to the Vim window. # # SYNOPSIS # inverse # ARGUMENT # # Path to the LaTeX file to open in Neovim # # # Line number to move the cursor to in the opened LaTeX file # # # Numerical ID of the window in which Vim is running # as returned by `xdotool getactivewindow`. # E.g. 10485762 nvr --remote-silent --servername=/tmp/texsocket +"${2}" "${1}" xdotool windowfocus ${3}