aboutsummaryrefslogtreecommitdiff
path: root/options-table.c
diff options
context:
space:
mode:
authornicm <nicm>2020-05-16 16:10:28 +0000
committernicm <nicm>2020-05-16 16:10:28 +0000
commitff8dd150e0c59b37d9a4942e499a2a025820db8d (patch)
tree6bb50aa2be5983d21c8609ee58dacff1bca166fc /options-table.c
parentdceb6a15d04a2b2e050ab41816d0df3fe224b416 (diff)
downloadrtmux-ff8dd150e0c59b37d9a4942e499a2a025820db8d.tar.gz
rtmux-ff8dd150e0c59b37d9a4942e499a2a025820db8d.tar.bz2
rtmux-ff8dd150e0c59b37d9a4942e499a2a025820db8d.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.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/options-table.c b/options-table.c
index 55eb5b9f..b1c4ec1b 100644
--- a/options-table.c
+++ b/options-table.c
@@ -795,6 +795,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,