Add a session, pane and user mouse range types for the status line and

add format variables for mouse_status_line and mouse_status_range so
they can be associated with different commands in the key bindings.
GitHub issue 3652.
This commit is contained in:
nicm
2023-08-17 14:10:28 +00:00
parent d9942c769e
commit 8636848e63
7 changed files with 260 additions and 32 deletions

7
tmux.h
View File

@ -795,11 +795,15 @@ enum style_range_type {
STYLE_RANGE_NONE,
STYLE_RANGE_LEFT,
STYLE_RANGE_RIGHT,
STYLE_RANGE_WINDOW
STYLE_RANGE_PANE,
STYLE_RANGE_WINDOW,
STYLE_RANGE_SESSION,
STYLE_RANGE_USER
};
struct style_range {
enum style_range_type type;
u_int argument;
char string[16];
u_int start;
u_int end; /* not included */
@ -826,6 +830,7 @@ struct style {
enum style_range_type range_type;
u_int range_argument;
char range_string[16];
enum style_default_type default_type;
};