Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send code to specific named tmux session instead of last active #113

Open
pdales opened this issue Feb 10, 2019 · 2 comments
Open

Send code to specific named tmux session instead of last active #113

pdales opened this issue Feb 10, 2019 · 2 comments

Comments

@pdales
Copy link

pdales commented Feb 10, 2019

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.

@randy3k
Copy link
Owner

randy3k commented Feb 10, 2019

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.

@pdales
Copy link
Author

pdales commented Feb 11, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants