Get the text selected by the cursor
Browse by type
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-clipboardwl-clipboard—
$ claude mcp add --transport http codehub https://codehub.bot/mcp
One hosted endpoint, no key: your agent can search, read and trace pot-app/Selection and every other graph here. Cursor, Windsurf and other clients →