这是indexloc提供的服务,不要输入任何密码
Skip to content

Define a new command line executed always first (Just before the command of -c option) #85

@greymd

Description

@greymd

Idea

When the multiple -c options are given like this

$ xpanes -c 'echo 1@{}' -c 'echo 2@{}' hoge 

All the arguments of -c options are combined with new lines and result is like this.

$ echo 1@hoge
1@hoge
$ echo 2@hoge
2@hoge

Why this is helpful?

I think some users hope to change the default behavior.
The change what the user hopes can be implemented with use's customize command line like #84 .
If the multiple -c options are allowed, users can define alias of xpanes very easily, like this.

alias xpanes="xpanes -d -c original_command_always_first"

Creating alias of xpanes command is helpful idea (like #64).
And this feature allows users customize tmux-xpanes's behavior more easily and flexibly.

Metadata

Metadata

Assignees

Labels

ideaIdea for new feature or improvement

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions