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

tmuxp issue? #5

Closed
tony opened this Issue Mar 25, 2015 · 5 comments

Comments

Projects
None yet
2 participants
@tony

tony commented Mar 25, 2015

Regarding https://twitter.com/bitprophet/status/561356905843392514, do you remember what you were trying to do?

@bitprophet

This comment has been minimized.

Owner

bitprophet commented Apr 1, 2015

Not offhand, but it was largely what the mux script does - open new window, split into two tall panes, optionally split the right hand pane horizontally once or more.

At least one of those calls involved behavior the tmuxp API didn't anticipate, and IIRC the core wrapper for the tmux command itself wasn't readily reusable (the function(s) were largeish and I couldn't simply override the bits I needed to tweak).

Probably was one of these, like one of the flags I am using had no analogue in tmuxp's end?

@tony

This comment has been minimized.

tony commented Apr 21, 2015

Sorry for the late response. I think you already solved your issue, but want to make sure the tmuxp api isn't limiting ability to make commands.

Session, Window and Pane all have a .tmux() that can be used to send custom arguments over.

@tony

This comment has been minimized.

tony commented Apr 21, 2015

Think it would have been more intuitive if it was session.cmd(), window.cmd(), pane.cmd() instead of session.tmux(), window.tmux(), pane.tmux()?

@bitprophet

This comment has been minimized.

Owner

bitprophet commented May 4, 2015

I really wish I had committed some version of my experiment to git, I truly don't remember the details at this point. It's certainly possible Session.tmux may have been something I could've used.

Also, definitely agree that .cmd is a bit clearer a name than .tmux.

Thanks for the followup, sorry I can't be of more use :)

@tony

This comment has been minimized.

tony commented May 8, 2015

As of tmux 0.8, the API was refactored to use .cmd. The subprocess function for tmux commands in now tmuxp_cmd. Thanks for getting back. Ultimately I kind of hope to sunset tmuxp and do something in extend it in C or golang sometime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment