Add -l flag to command-prompt to disable splitting into multiple prompts,

GitHub issue 4483.
This commit is contained in:
nicm
2025-10-29 09:37:36 +00:00
parent 1a419609e3
commit 2c08960f4e
2 changed files with 36 additions and 22 deletions

12
tmux.1
View File

@@ -6670,7 +6670,7 @@ See
for possible values for
.Ar prompt-type .
.It Xo Ic command-prompt
.Op Fl 1bFikN
.Op Fl 1bFiklN
.Op Fl I Ar inputs
.Op Fl p Ar prompts
.Op Fl t Ar target-client
@@ -6690,8 +6690,10 @@ With
.Ar template
is expanded as a format.
.Pp
If present,
If
.Fl I
is present,
.Ar inputs
is a comma-separated list of the initial text for each prompt.
If
.Fl p
@@ -6703,6 +6705,12 @@ a single prompt is displayed, constructed from
if it is present, or
.Ql \&:
if not.
.Fl l
disables splitting of
.Ar inputs
and
.Ar prompts
at commas and treats them literally.
.Pp
Before the command is executed, the first occurrence of the string
.Ql %%