3 stable releases
1.1.1 | Dec 23, 2023 |
---|---|
1.1.0 | Nov 14, 2023 |
1.0.0 | Sep 7, 2023 |
0.1.0 |
|
#402 in GUI
189 downloads per month
17KB
252 lines
Selection
Get the text selected by the cursor
Example
selection = "1.1.0"
use selection::get_text;
fn main() {
// Return the selected text on success
// Otherwise return the empty string
let text = get_text();
println!("{}", text);
}
Support Platform
- Windows
- MacOS
- Linux
- X11
- Wayland
Implementation details
Windows
- Automation API
- Clipboard
MacOS
- Clipboard
Linux
- Primary Clipboard
- X11:
x11-clipboard
- Wayland:
wl-clipboard
- X11:
Dependencies
~0–46MB
~686K SLoC