sup-heliotrope / sup

A curses threads-with-tags style email client (mailing list: supmua@googlegroups.com)
http://sup-heliotrope.github.io
GNU General Public License v2.0
900 stars 97 forks source link

Open mailto link in an already opened sup instance #540

Open CaptainQuirk opened 6 years ago

CaptainQuirk commented 6 years ago

Hi,

I've managed to invoke sup in a terminal through a bash script, a .desktop file pointing to it and a new entry in ~/.config/mimeapps.list.

However, when sup is already opened, I get a warning about the index file being locked. Is there any way I could circumvent this ?

Thanks in advance !

rakoo commented 6 years ago

Hey @CaptainQuirk ! sup is supposed to be used with a single instance, and there's no way to switch to the first opened session if you start it again.

A workaround would be to have sup run inside a tmux/screen/dtach session, and instead of running sup you reattach that session. There are probably some guides on the web on how to do this (irrespective of the actual application that is embedded)

CaptainQuirk commented 6 years ago

Hi !

Thanks for your answer.

I was looking actually looking for a way to switch to my $EDITOR the same way launching sup with --compose. (As it is described in the wiki page about following mailto links)

As an alternative, I'm currenty trying to send keys with tmux to the pane containing sup but its cumbersome.

Any plan on implementing a kind of remote api (like in vim for example) ?

Bye