feat: add text context menu (overlay and wayland popup)

This commit is contained in:
Hojjat 2026-05-19 19:36:37 -06:00 • committed by Michael Murphy
parent 2cd43a8b89
commit c6cf3db29d
6 changed files with 731 additions and 7 deletions

View file

@ -76,6 +76,12 @@ impl Cursor {
self.state = State::Index(position);
}
pub(crate) fn clear_selection(&mut self) {
if let State::Selection { end, .. } = self.state {
self.state = State::Index(end);
}
}
#[inline]
pub(crate) fn move_right(&mut self, value: &Value) {
self.move_right_by_amount(value, 1);