mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
config: Add the option toast_on_clipboard_copy
Add a config option to enable/disable the toast shown on clipboard copy
This commit is contained in:

committed by
Mitchell Hashimoto

parent
5293e8a819
commit
e6bb1a56eb
@ -894,7 +894,9 @@ fn gtkActionCopy(
|
||||
return;
|
||||
};
|
||||
|
||||
self.sendToast("Copied to clipboard");
|
||||
if (self.app.config.@"toast-on-clipboard-copy") {
|
||||
self.sendToast("Copied to clipboard");
|
||||
}
|
||||
}
|
||||
|
||||
fn gtkActionPaste(
|
||||
|
@ -1276,6 +1276,9 @@ keybind: Keybinds = .{},
|
||||
@"clipboard-read": ClipboardAccess = .ask,
|
||||
@"clipboard-write": ClipboardAccess = .allow,
|
||||
|
||||
/// Enables or disables the toast message on a clipboard copy action.
|
||||
@"toast-on-clipboard-copy": bool = true,
|
||||
|
||||
/// Trims trailing whitespace on data that is copied to the clipboard. This does
|
||||
/// not affect data sent to the clipboard via `clipboard-write`.
|
||||
@"clipboard-trim-trailing-spaces": bool = true,
|
||||
|
Reference in New Issue
Block a user