diff options
author | nicm <nicm> | 2020-05-16 15:11:52 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-05-16 15:11:52 +0000 |
commit | 2391fe23ab09cfe8667abdcc3338a958ab3da31d (patch) | |
tree | cf3c4abfb3dc2b293bbd0059271a98f98499a47a /options-table.c | |
parent | 80e52545a0cccba20fb4d96ed09ea2c129a30c93 (diff) | |
download | rtmux-2391fe23ab09cfe8667abdcc3338a958ab3da31d.tar.gz rtmux-2391fe23ab09cfe8667abdcc3338a958ab3da31d.tar.bz2 rtmux-2391fe23ab09cfe8667abdcc3338a958ab3da31d.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 5c368586..a89758c5 100644 --- a/options-table.c +++ b/options-table.c @@ -656,6 +656,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, |