Crates.io | selection |
lib.rs | selection |
version | 1.2.0 |
source | src |
created_at | 2023-09-07 09:37:32.207629 |
updated_at | 2024-05-05 04:15:08.312735 |
description | Get the text selected by the cursor |
homepage | |
repository | https://github.com/pot-app/Selection |
max_upload_size | |
id | 965991 |
size | 50,761 |
Get the text selected by the cursor
selection = "1.2.0"
use selection::get_text;
fn main() {
// Return the selected text on success
// Otherwise return the empty string
let text = get_text();
println!("{}", text);
}
x11-clipboard
wl-clipboard