state(pid) and reveal(pid), for lazysecrets to call through $NVIM when
a link is handed to it: the hidden window comes back when nvim is in
normal or terminal mode; while you're typing, in a command or a picker,
or mid-operator, the link opens elsewhere.