mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Add -Z to find-window as well.
This commit is contained in:
@ -32,8 +32,8 @@ const struct cmd_entry cmd_find_window_entry = {
|
|||||||
.name = "find-window",
|
.name = "find-window",
|
||||||
.alias = "findw",
|
.alias = "findw",
|
||||||
|
|
||||||
.args = { "CNt:T", 1, 1 },
|
.args = { "CNt:TZ", 1, 1 },
|
||||||
.usage = "[-CNT] " CMD_TARGET_PANE_USAGE " match-string",
|
.usage = "[-CNTZ] " CMD_TARGET_PANE_USAGE " match-string",
|
||||||
|
|
||||||
.target = { 't', CMD_FIND_PANE, 0 },
|
.target = { 't', CMD_FIND_PANE, 0 },
|
||||||
|
|
||||||
@ -83,6 +83,8 @@ cmd_find_window_exec(struct cmd *self, struct cmdq_item *item)
|
|||||||
xasprintf(&filter, "#{m:*%s*,#{pane_title}}", s);
|
xasprintf(&filter, "#{m:*%s*,#{pane_title}}", s);
|
||||||
|
|
||||||
new_args = args_parse("", 1, &argv);
|
new_args = args_parse("", 1, &argv);
|
||||||
|
if (args_has(args, 'Z'))
|
||||||
|
args_set(new_args, 'Z', NULL);
|
||||||
args_set(new_args, 'f', filter);
|
args_set(new_args, 'f', filter);
|
||||||
|
|
||||||
window_pane_set_mode(wp, &window_tree_mode, &item->target, new_args);
|
window_pane_set_mode(wp, &window_tree_mode, &item->target, new_args);
|
||||||
|
@ -228,7 +228,7 @@ key_bindings_init(void)
|
|||||||
"bind ] paste-buffer",
|
"bind ] paste-buffer",
|
||||||
"bind c new-window",
|
"bind c new-window",
|
||||||
"bind d detach-client",
|
"bind d detach-client",
|
||||||
"bind f command-prompt \"find-window -- '%%'\"",
|
"bind f command-prompt \"find-window -Z -- '%%'\"",
|
||||||
"bind i display-message",
|
"bind i display-message",
|
||||||
"bind l last-window",
|
"bind l last-window",
|
||||||
"bind m select-pane -m",
|
"bind m select-pane -m",
|
||||||
|
4
tmux.1
4
tmux.1
@ -1540,7 +1540,7 @@ The default
|
|||||||
.Ar template
|
.Ar template
|
||||||
is "select-pane -t '%%'".
|
is "select-pane -t '%%'".
|
||||||
.It Xo Ic find-window
|
.It Xo Ic find-window
|
||||||
.Op Fl CNT
|
.Op Fl CNTZ
|
||||||
.Op Fl t Ar target-pane
|
.Op Fl t Ar target-pane
|
||||||
.Ar match-string
|
.Ar match-string
|
||||||
.Xc
|
.Xc
|
||||||
@ -1559,6 +1559,8 @@ matches only the window name and
|
|||||||
matches only the window title.
|
matches only the window title.
|
||||||
The default is
|
The default is
|
||||||
.Fl CNT .
|
.Fl CNT .
|
||||||
|
.Fl Z
|
||||||
|
zooms the pane.
|
||||||
.Pp
|
.Pp
|
||||||
This command works only if at least one client is attached.
|
This command works only if at least one client is attached.
|
||||||
.It Xo Ic join-pane
|
.It Xo Ic join-pane
|
||||||
|
Reference in New Issue
Block a user