a simple clipboard for complicated times
hmm
| -rw-r--r-- | Cargo.toml | 4 | ||||
| -rw-r--r-- | LICENSE | 2 | ||||
| -rw-r--r-- | src/providers.rs | 7 |
3 files changed, 7 insertions, 6 deletions
@@ -1,7 +1,7 @@ [package] name = "clipp" -version = "0.1.0" -edition = "2021" +version = "0.1.1" +edition = "2024" repository = "https://github.com/bend-n/clipp" description = "clipboard, simple." keywords = ["clipboard"] @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2023 bendn +Copyright (c) 2025 bendn Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/src/providers.rs b/src/providers.rs index 5c9c586..558a870 100644 --- a/src/providers.rs +++ b/src/providers.rs @@ -100,15 +100,15 @@ impl Clipboard for Wayland { fn copy(text: &str) { match text { "" => assert!( - c!("wl-copy" "-p" "--clear").status().unwrap().success(), + c!("wl-copy" "--clear").status().unwrap().success(), "wl-copy fail" ), - s => c!("wl-copy" "-p").put(s), + s => c!("wl-copy").put(s), } } fn paste() -> String { - c!("wl-paste" "-n" "-p").eat() + c!("wl-paste" "-n").eat() } } @@ -156,6 +156,7 @@ impl Clipboard for Wsl { pub type Board = (for<'a> fn(&'a str), fn() -> String); fn get<T: Clipboard>() -> Board { + println!("{}", std::any::type_name::<T>()); (T::copy, T::paste) } |