@@ -17,6 +17,10 @@ pub trait ClipboardProvider: std::fmt::Debug {
1717#[cfg(not(windows))]
1818macro_rules! command_provider {
1919 (paste => $get_prg:literal $( , $get_arg:literal )* ; copy => $set_prg:literal $( , $set_arg:literal )* ; ) => {{
20+ log::info!(
21+ "Using {} to interact with the system clipboard",
22+ if $set_prg != $get_prg { format!("{}+{}", $set_prg, $get_prg)} else { $set_prg.to_string() }
23+ );
2024 Box::new(provider::command::Provider {
2125 get_cmd: provider::command::Config {
2226 prg: $get_prg,
@@ -36,6 +40,10 @@ macro_rules! command_provider {
3640 primary_paste => $pr_get_prg:literal $( , $pr_get_arg:literal )* ;
3741 primary_copy => $pr_set_prg:literal $( , $pr_set_arg:literal )* ;
3842 ) => {{
43+ log::info!(
44+ "Using {} to interact with the system and selection (primary) clipboard",
45+ if $set_prg != $get_prg { format!("{}+{}", $set_prg, $get_prg)} else { $set_prg.to_string() }
46+ );
3947 Box::new(provider::command::Provider {
4048 get_cmd: provider::command::Config {
4149 prg: $get_prg,
@@ -146,6 +154,9 @@ mod provider {
146154 #[cfg(not(target_os = "windows"))]
147155 impl NopProvider {
148156 pub fn new() -> Self {
157+ log::warn!(
158+ "No clipboard provider found! Yanking and pasting will be internal to Helix"
159+ );
149160 Self {
150161 buf: String::new(),
151162 primary_buf: String::new(),
@@ -184,6 +195,7 @@ mod provider {
184195 #[cfg(target_os = "windows")]
185196 impl ClipboardProvider for WindowsProvider {
186197 fn name(&self) -> Cow<str> {
198+ log::info!("Using clipboard-win to interact with the system clipboard");
187199 Cow::Borrowed("clipboard-win")
188200 }
189201