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.
This commit is contained in:
nicm
2020-05-16 16:10:28 +00:00
parent dceb6a15d0
commit ff8dd150e0
4 changed files with 121 additions and 9 deletions

View File

@ -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,