tmux-xpanes icon indicating copy to clipboard operation
tmux-xpanes copied to clipboard

Thoughts on "schemes"?

Open paxperscientiam opened this issue 7 years ago • 3 comments

Hey @greymd, in my workflow as it pertains to tmux-xpanes I use what I call "schemes."

For example, I have an iTerm profile called "XP::Packages" that executes this script after login: ${HOME}/.config/tmux-xpanes/schemes.bash pkgmgnt

function pkgmgnt() {
    title Package management

    xpanes -t -d -l t -c "{}" "title gems; gem outdated" \
           "title macports; port outdated" \
           "title yarn global; yarn global upgrade-interactive" \
           "title composer global; composer global outdated"
}

Would it be possible to build in such a feature?

paxperscientiam avatar Nov 11 '18 17:11 paxperscientiam

Hi @paxperscientiam,

I am afraid that I didn't get what you mean, sorry.

I understood you have the script that runs after login, and various package managers update packages simultaneously. cool. I am sure that a new window is opened and title is set as "Package management". The window has new tmux session and four panes will be created by xpanes. What point is difficult or troublesome ? Perhaps, do you hope the feature to set more definite pane's title like title command ?

greymd avatar Nov 12 '18 22:11 greymd

hi @greymd ,

Maybe I could have been clearer. xpanes works great! I was suggesting an enhancement.

Like, inclusion of "schemes" like in OP under lib/schemes/ or something like that.

EDIT: Title might help ... I'll submit a PR!

paxperscientiam avatar Nov 16 '18 18:11 paxperscientiam

Hi, Thank you for using xpanes anyway ;) I am welcome to any PRs or suggestions !

By the way, I've got the new idea recently. I am wondering it might be similar to what you expect #106 .

greymd avatar Nov 20 '18 22:11 greymd