diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-04-29 18:08:21 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-04-29 18:08:21 +0100 |
commit | 6f700904a9f3dfdd611486686edf1439af55e5f0 (patch) | |
tree | 3613d50e82d5199e58a423ed907421a6a56946c5 /options-table.c | |
parent | 881b8e9bb56651daf241574a5fc0c5c9691d73e4 (diff) | |
download | rtmux-6f700904a9f3dfdd611486686edf1439af55e5f0.tar.gz rtmux-6f700904a9f3dfdd611486686edf1439af55e5f0.tar.bz2 rtmux-6f700904a9f3dfdd611486686edf1439af55e5f0.zip |
Copy mode search improvements:
- Add styles for the search marking styles (copy-mode-match-style and
copy-mode-current-match-style).
- Show the current match (the one with the cursor on it) in a different style.
- Copying without a selection will copy the current match if there is one.
Diffstat (limited to 'options-table.c')
-rw-r--r-- | options-table.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/options-table.c b/options-table.c index 0781da46..e04002ff 100644 --- a/options-table.c +++ b/options-table.c @@ -655,6 +655,22 @@ const struct options_table_entry options_table[] = { .default_num = 1 }, + { .name = "copy-mode-match-style", + .type = OPTIONS_TABLE_STRING, + .scope = OPTIONS_TABLE_WINDOW, + .default_str = "bg=cyan,fg=black", + .flags = OPTIONS_TABLE_IS_STYLE, + .separator = "," + }, + + { .name = "copy-mode-current-match-style", + .type = OPTIONS_TABLE_STRING, + .scope = OPTIONS_TABLE_WINDOW, + .default_str = "bg=magenta,fg=black", + .flags = OPTIONS_TABLE_IS_STYLE, + .separator = "," + }, + { .name = "main-pane-height", .type = OPTIONS_TABLE_STRING, .scope = OPTIONS_TABLE_WINDOW, |