get_text

Function get_text 

Source
pub fn get_text() -> String
Expand description

Get the text selected by the cursor

Return empty string if no text is selected or error occurred

ยงExample

use selection::get_text;

let text = get_text();
println!("{}", text);