mirror of
https://github.com/tmux/tmux.git
synced 2025-12-21 06:46:08 +00:00
Add a get-clipboard option which when enabled (the default is off) uses
the same mechanism as palette requests to request clipboard from the terminal and forward to the requesting pane. Remove the now-redundant forward-to-pane ability from "refresh-client -l". GitHub issue 4275.
This commit is contained in:
@@ -85,6 +85,9 @@ static const char *options_table_popup_border_lines_list[] = {
|
||||
static const char *options_table_set_clipboard_list[] = {
|
||||
"off", "external", "on", NULL
|
||||
};
|
||||
static const char *options_table_get_clipboard_list[] = {
|
||||
"off", "buffer", "request", "both", NULL
|
||||
};
|
||||
static const char *options_table_window_size_list[] = {
|
||||
"largest", "smallest", "manual", "latest", NULL
|
||||
};
|
||||
@@ -406,6 +409,18 @@ const struct options_table_entry options_table[] = {
|
||||
.text = "Whether to send focus events to applications."
|
||||
},
|
||||
|
||||
{ .name = "get-clipboard",
|
||||
.type = OPTIONS_TABLE_CHOICE,
|
||||
.scope = OPTIONS_TABLE_SERVER,
|
||||
.choices = options_table_get_clipboard_list,
|
||||
.default_num = 1,
|
||||
.text = "When an application requests the clipboard, whether to "
|
||||
"ignore the request ('off'); respond with the newest buffer "
|
||||
"('buffer'); request the clipboard from the most recently "
|
||||
"used terminal ('request'); or to request the clipboard, "
|
||||
"create a buffer, and send it to the application ('both')."
|
||||
},
|
||||
|
||||
{ .name = "history-file",
|
||||
.type = OPTIONS_TABLE_STRING,
|
||||
.scope = OPTIONS_TABLE_SERVER,
|
||||
|
||||
Reference in New Issue
Block a user