diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2024-10-05 00:32:56 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2024-10-05 00:32:56 +0000 |
commit | 7934e24e35a4daf577c394fb6f0a2b7332f6aeb2 (patch) | |
tree | eb73463d35054389fb3c771e1a9f1314b1d95c99 /usr.bin/tmux/options-table.c | |
parent | d468bb28e6e505a24369725d460cdd0d7f6b7b01 (diff) |
Add copy-mode-position-format to configure the position indicator.
Diffstat (limited to 'usr.bin/tmux/options-table.c')
-rw-r--r-- | usr.bin/tmux/options-table.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/usr.bin/tmux/options-table.c b/usr.bin/tmux/options-table.c index 72b28c5f067..93c60b6bf3c 100644 --- a/usr.bin/tmux/options-table.c +++ b/usr.bin/tmux/options-table.c @@ -1,4 +1,4 @@ -/* $OpenBSD: options-table.c,v 1.179 2024/10/02 11:51:15 nicm Exp $ */ +/* $OpenBSD: options-table.c,v 1.180 2024/10/05 00:32:55 nicm Exp $ */ /* * Copyright (c) 2011 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -971,6 +971,18 @@ const struct options_table_entry options_table[] = { .text = "Style of the marked line in copy mode." }, + { .name = "copy-mode-position-format", + .type = OPTIONS_TABLE_STRING, + .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE, + .default_str = "#[align=right]" + "#{t/p:top_line_time}#{?#{e|>:#{top_line_time},0}, ,}" + "[#{scroll_position}/#{history_size}]" + "#{?search_timed_out, (timed out)," + "#{?search_count, (#{search_count}" + "#{?search_count_partial,+,} results),}}", + .text = "Format of the position indicator in copy mode." + }, + { .name = "fill-character", .type = OPTIONS_TABLE_STRING, .scope = OPTIONS_TABLE_WINDOW, |