From 5dd5543fe42d4d485b9020f3ce8b8d4d47d29001 Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 9 Aug 2017 11:43:45 +0000 Subject: 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. --- cmd-choose-tree.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'cmd-choose-tree.c') diff --git a/cmd-choose-tree.c b/cmd-choose-tree.c index 873b0286..919af491 100644 --- a/cmd-choose-tree.c +++ b/cmd-choose-tree.c @@ -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 }, -- cgit