SendCode icon indicating copy to clipboard operation
SendCode copied to clipboard

Send code to specific named tmux session instead of last active

Open pdales opened this issue 5 years ago • 2 comments

When I am using sendcode I typically have multiple tmux sessions running and would like to always send code to the same session (for example where I would be running an ipython terminal). It would be nice to be able to have a send to session name setting. Say I name my tmux session "ipy", then in sendcode settings I can specify target session "ipy" and it will always send code to this session name. Maybe if this session doesnt exist it can default to last active session. The current behaviour of send code appears to send to last active session.

Thanks and great tool btw.

pdales avatar Feb 10 '19 08:02 pdales

We need to find an easy and consistent way for users to specify their tmux session names. Hard coding in the settings is easy, but it is lack of flexibility.

randy3k avatar Feb 10 '19 15:02 randy3k

Is it possible to configure SendCode similar to how build systems are configured. FOr example the first time you press Ctrl+b it allows you to select the build system (from nice drop-down menu) and then uses that as the default from then on. With sendcode, the first time you press ctrl-enter it could drop-down a menu with the tmux session names and you choose which one to use from then on.

pdales avatar Feb 11 '19 06:02 pdales