README.md
llimphi-widget-edit-menu
The standard edit menu for any Llimphi text field.
Both the single-line input (llimphi_widget_text_input) and the rich IDE editor
(llimphi_widget_text_editor) build on the same EditorState. From that state
this widget assembles the canonical context menu:
┃ EDIT
┃ Undo Ctrl+Z
┃ Redo Ctrl+Y
┃ ─────────────────────
┃ Cut Ctrl+X
┃ Copy Ctrl+C
┃ Paste Ctrl+V
┃ Delete Del
┃ ─────────────────────
┃ Select all Ctrl+A
Every item is enabled or not according to the real state (no selection → Cut/Copy/Delete greyed; no history → Undo greyed; and so on).
Typical use, in three steps per app:
- The field emits the right-click position —
View::on_right_click_at→Msg::OpenEditMenu(x, y). Theupdatestores the anchor. App::view_overlayreturnsSome(context_menu_view(edit_menu::edit_context_menu(...)))while the anchor is present.- The pick produces
Msg::Edit(EditAction); theupdatecallsapplywith the focused field'sEditorStateand the clipboard.
Part of llimphi — see llimphi.