diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2017-08-09 11:43:46 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2017-08-09 11:43:46 +0000 |
commit | b569092a552057121e70b1dc6b87b778245bd249 (patch) | |
tree | 37aa8b5021530fa76876aad479f00dc24c7313c0 /usr.bin/tmux/cmd-choose-tree.c | |
parent | cbf63c3af960927d66f75a6f74bcc09976a41cba (diff) |
Add -F to choose-tree, choose-client, choose-buffer to specify the
format of each line, as well as adding a couple of formats needed for
the default display.
Diffstat (limited to 'usr.bin/tmux/cmd-choose-tree.c')
-rw-r--r-- | usr.bin/tmux/cmd-choose-tree.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/usr.bin/tmux/cmd-choose-tree.c b/usr.bin/tmux/cmd-choose-tree.c index 124e51c1235..c88661c65f1 100644 --- a/usr.bin/tmux/cmd-choose-tree.c +++ b/usr.bin/tmux/cmd-choose-tree.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-choose-tree.c,v 1.37 2017/06/09 16:01:39 nicm Exp $ */ +/* $OpenBSD: cmd-choose-tree.c,v 1.38 2017/08/09 11:43:45 nicm Exp $ */ /* * Copyright (c) 2012 Thomas Adam <thomas@xteddy.org> @@ -30,8 +30,9 @@ const struct cmd_entry cmd_choose_tree_entry = { .name = "choose-tree", .alias = NULL, - .args = { "f:O:st:w", 0, 1 }, - .usage = "[-sw] [-f filter] [-O sort-order] " CMD_TARGET_PANE_USAGE, + .args = { "F:f:O:st:w", 0, 1 }, + .usage = "[-sw] [-F format] [-f filter] [-O sort-order] " + CMD_TARGET_PANE_USAGE, .target = { 't', CMD_FIND_PANE, 0 }, @@ -43,8 +44,9 @@ const struct cmd_entry cmd_choose_client_entry = { .name = "choose-client", .alias = NULL, - .args = { "f:O:t:", 0, 1 }, - .usage = "[-f filter] [-O sort-order] " CMD_TARGET_PANE_USAGE, + .args = { "F:f:O:t:", 0, 1 }, + .usage = "[-F format] [-f filter] [-O sort-order] " + CMD_TARGET_PANE_USAGE, .target = { 't', CMD_FIND_PANE, 0 }, @@ -56,8 +58,9 @@ const struct cmd_entry cmd_choose_buffer_entry = { .name = "choose-buffer", .alias = NULL, - .args = { "f:O:t:", 0, 1 }, - .usage = "[-f filter] [-O sort-order] " CMD_TARGET_PANE_USAGE, + .args = { "F:f:O:t:", 0, 1 }, + .usage = "[-F format] [-f filter] [-O sort-order] " + CMD_TARGET_PANE_USAGE, .target = { 't', CMD_FIND_PANE, 0 }, |