Gets the currently selected text (only valid for active file).
Convenience method that delegates to file.buffer.get_selection(). Updates cursor position and saves to database. Requires file.buffer to be non-null. Only works with GTK buffers (DummyFileBuffer returns empty string).
2. Updates cursor_line and cursor_offset properties
3. Saves to database (if manager.db is available)
|
Selected text, or empty string if nothing is selected |