mirror of
https://github.com/tmux/tmux.git
synced 2026-07-08 18:39:30 +00:00
Merge branch 'obsd-master'
This commit is contained in:
6
format.c
6
format.c
@@ -5444,6 +5444,12 @@ format_replace(struct format_expand_state *es, const char *key, size_t keylen,
|
||||
sc->reversed = 0;
|
||||
break;
|
||||
}
|
||||
if (strchr(fm->argv[0], 'i') != NULL)
|
||||
sc->order = SORT_INDEX;
|
||||
else if (strchr(fm->argv[0], 'z') != NULL)
|
||||
sc->order = SORT_Z;
|
||||
else
|
||||
sc->order = SORT_CREATION;
|
||||
if (strchr(fm->argv[0], 'r') != NULL)
|
||||
sc->reversed = 1;
|
||||
else
|
||||
|
||||
8
tmux.1
8
tmux.1
@@ -6858,7 +6858,13 @@ to sort in reverse order.
|
||||
.Ql /r\&
|
||||
can also be used with
|
||||
.Ql P:\&
|
||||
to reverse the sort order by pane index.
|
||||
to reverse the sort order; by default panes are sorted by creation order.
|
||||
.Ql P:\&
|
||||
can also take
|
||||
.Ql /i\&
|
||||
to sort by pane index or
|
||||
.Ql /z\&
|
||||
to sort by z-index.
|
||||
For example,
|
||||
.Ql S/nr:\&
|
||||
to sort sessions by name in reverse order.
|
||||
|
||||
Reference in New Issue
Block a user