ahrm / sioyek

Sioyek is a PDF viewer with a focus on textbooks and research papers
https://sioyek.info/
GNU General Public License v3.0
6.98k stars 228 forks source link

Opening a new window over SSH #991

Open HuidaeCho opened 6 months ago

HuidaeCho commented 6 months ago

Thanks for the great program. Since --new-instance is now deprecated, is there any way to open a new window on the client over SSH when there is another instance running on the remote server?

ahrm commented 6 months ago

I am not sure if I understand your use-case but we have a execute-command command line option that can be used like this:

sioyek --execute-command new_window

Does that help your case?

HuidaeCho commented 6 months ago

I've tried that already and it didn't work. My use case is

  1. I start a new instance on machine A and have a window on that machine
  2. I login to machine A from my home laptop B via SSH with X forwarding
  3. From that SSH connection, I want to work on my LaTeX paper
  4. Opening a new window from the SSH connection currently opens a new window on machine A, which prevents me from being able to see that new window over SSH because it doesn't open a new window on laptop B

If there is no sioyek instance on machine A, a new window opens on laptop B. So I think we still need the --new-instance option to achieve this multi-instance case.

HuidaeCho commented 6 months ago

One more use case for multiple instances is vimtex. When I open multiple instances of vimtex, there is currently no way to associate a sioyek window and its server vimtex instance. Inverse search always goes to the vimtex that opened the first sioyek window (created the sioyek instance). I cannot use nvim --listen + nvim --server to pair sioyek and vimtex.