1use project::ProjectPath;
2// use trash::FileInTrash;
3
4/// Operation done in the project panel that can be undone.
5///
6/// There is no variant for creating a file or copying a file because their
7/// reverse is `Trash`.
8///
9/// - `Trash` and `Restore` are the reverse of each other.
10/// - `Rename` is its own reverse.
11pub enum ProjectPanelOperation {
12 // Trash(RelPath),
13 // Restore(FileInTrashId),
14 Rename {
15 old_path: ProjectPath,
16 new_path: ProjectPath,
17 },
18}
19
20// pub struct FileInTrashId(u32);
21
22// proto::Trash -> opaque integer