diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-05-13 06:29:57 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-05-13 06:29:57 +0100 |
commit | 6214cd07264b393fd751271791870f1e8f251371 (patch) | |
tree | 0528f55c80e306ff64b8ee56edf5140878fc46eb /options-table.c | |
parent | 9d44df9da95452d985f6e5937dd3c4311bf33548 (diff) | |
download | rtmux-6214cd07264b393fd751271791870f1e8f251371.tar.gz rtmux-6214cd07264b393fd751271791870f1e8f251371.tar.bz2 rtmux-6214cd07264b393fd751271791870f1e8f251371.zip |
Add a mark in copy mode. Set with set-mark command (bound to 'X') by default
and the mark and cursor position are swapped with 'jump-to-mark' (bound to
M-x). The line containing the mark is shown in copy-mode-mark-style with the
horizontal position in reverse.
From Anindya Mukherjee in GitHub issue 2209.
Diffstat (limited to 'options-table.c')
-rw-r--r-- | options-table.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/options-table.c b/options-table.c index c3a9f23b..39bb7d25 100644 --- a/options-table.c +++ b/options-table.c @@ -794,6 +794,15 @@ const struct options_table_entry options_table[] = { .text = "Style of the current search match in copy mode." }, + { .name = "copy-mode-mark-style", + .type = OPTIONS_TABLE_STRING, + .scope = OPTIONS_TABLE_WINDOW, + .default_str = "bg=red,fg=black", + .flags = OPTIONS_TABLE_IS_STYLE, + .separator = ",", + .text = "Style of the marked line in copy mode." + }, + { .name = "main-pane-height", .type = OPTIONS_TABLE_STRING, .scope = OPTIONS_TABLE_WINDOW, |