aboutsummaryrefslogtreecommitdiff
path: root/tmux.1
diff options
context:
space:
mode:
authornicm <nicm>2019-08-16 11:49:12 +0000
committernicm <nicm>2019-08-16 11:49:12 +0000
commit37583f0a69d22668bdd47e0b30b61d8dac74bdf6 (patch)
tree6f2230c68121094ff70e15407120b0b55ae92f80 /tmux.1
parent5644d37876faf69ecf9f34cbd52e6cdfab83cf79 (diff)
downloadrtmux-37583f0a69d22668bdd47e0b30b61d8dac74bdf6.tar.gz
rtmux-37583f0a69d22668bdd47e0b30b61d8dac74bdf6.tar.bz2
rtmux-37583f0a69d22668bdd47e0b30b61d8dac74bdf6.zip
Add a flag to reverse sort in the various choose modes, from Benjamin
Poirier in GitHub issue 1875.
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.127
1 files changed, 18 insertions, 9 deletions
diff --git a/tmux.1 b/tmux.1
index 1bac8de8..694e46d0 100644
--- a/tmux.1
+++ b/tmux.1
@@ -1692,7 +1692,7 @@ the end of the visible pane.
The default is to capture only the visible contents of the pane.
.It Xo
.Ic choose-client
-.Op Fl NZ
+.Op Fl NrZ
.Op Fl F Ar format
.Op Fl f Ar filter
.Op Fl O Ar sort-order
@@ -1721,7 +1721,8 @@ The following keys may be used in client mode:
.It Li "z" Ta "Suspend selected client"
.It Li "Z" Ta "Suspend tagged clients"
.It Li "f" Ta "Enter a format to filter items"
-.It Li "O" Ta "Change sort order"
+.It Li "O" Ta "Change sort field"
+.It Li "r" Ta "Reverse sort order"
.It Li "v" Ta "Toggle preview"
.It Li "q" Ta "Exit mode"
.El
@@ -1736,12 +1737,14 @@ If
is not given, "detach-client -t '%%'" is used.
.Pp
.Fl O
-specifies the initial sort order: one of
+specifies the initial sort field: one of
.Ql name ,
.Ql size ,
.Ql creation ,
or
.Ql activity .
+.Fl r
+reverses the sort order.
.Fl f
specifies an initial filter: the filter is a format - if it evaluates to zero,
the item in the list is not shown, otherwise it is shown.
@@ -1753,7 +1756,7 @@ starts without the preview.
This command works only if at least one client is attached.
.It Xo
.Ic choose-tree
-.Op Fl GNswZ
+.Op Fl GNrswZ
.Op Fl F Ar format
.Op Fl f Ar filter
.Op Fl O Ar sort-order
@@ -1785,7 +1788,8 @@ The following keys may be used in tree mode:
.It Li "C-t" Ta "Tag all items"
.It Li "\&:" Ta "Run a command for each tagged item"
.It Li "f" Ta "Enter a format to filter items"
-.It Li "O" Ta "Change sort order"
+.It Li "O" Ta "Change sort field"
+.It Li "r" Ta "Reverse sort order"
.It Li "v" Ta "Toggle preview"
.It Li "q" Ta "Exit mode"
.El
@@ -1800,11 +1804,13 @@ If
is not given, "switch-client -t '%%'" is used.
.Pp
.Fl O
-specifies the initial sort order: one of
+specifies the initial sort field: one of
.Ql index ,
.Ql name ,
or
.Ql time .
+.Fl r
+reverses the sort order.
.Fl f
specifies an initial filter: the filter is a format - if it evaluates to zero,
the item in the list is not shown, otherwise it is shown.
@@ -4860,7 +4866,7 @@ The buffer commands are as follows:
.Bl -tag -width Ds
.It Xo
.Ic choose-buffer
-.Op Fl NZ
+.Op Fl NZr
.Op Fl F Ar format
.Op Fl f Ar filter
.Op Fl O Ar sort-order
@@ -4887,7 +4893,8 @@ The following keys may be used in buffer mode:
.It Li "d" Ta "Delete selected buffer"
.It Li "D" Ta "Delete tagged buffers"
.It Li "f" Ta "Enter a format to filter items"
-.It Li "O" Ta "Change sort order"
+.It Li "O" Ta "Change sort field"
+.It Li "r" Ta "Reverse sort order"
.It Li "v" Ta "Toggle preview"
.It Li "q" Ta "Exit mode"
.El
@@ -4902,11 +4909,13 @@ If
is not given, "paste-buffer -b '%%'" is used.
.Pp
.Fl O
-specifies the initial sort order: one of
+specifies the initial sort field: one of
.Ql time ,
.Ql name
or
.Ql size .
+.Fl r
+reverses the sort order.
.Fl f
specifies an initial filter: the filter is a format - if it evaluates to zero,
the item in the list is not shown, otherwise it is shown.