//! Right-click desktop icon / bare-desktop menu - the sibling of //! `context_menu.rs`'s titlebar window menu, same shape (own `open`/`row_ //! at`, rasterized via `decoration::render_context_menu`), for the two new //! right-click targets desktop icons add: an icon itself, or bare desktop. use crate::desktop_icons::{DesktopIcon, IconKind}; #[derive(Clone)] pub(crate) enum DesktopMenuAction { /// Open the icon with this id - same action a double-click runs. OpenIcon(String), /// Enter inline rename mode for this real file/folder icon - see /// `CompState::renaming_icon`'s own doc comment. Rename(String), /// Move this real file/folder into `~/.local/share/Trash` - no /// confirmation, same as every mainstream file manager: this is the /// reversible move-to-trash, not a permanent delete. Delete(String), /// Empties `~/.local/share/Trash` entirely - same no-confirmation /// convention as `Delete`. EmptyTrash, NewFolder, /// "not even new file" - see `CompState::new_desktop_text_file`'s own /// doc comment. NewTextFile, /// Creates an empty file with this extension (no leading dot), named /// "New