Skip to content

Implement File and Folder Operations in Context Menu #18

@chrisdedman

Description

@chrisdedman

Description

The Tree::showContextMenu function needs implementations for the following operations:

  • Delete a file/folder
    • Unit Test
  • Rename a file/folder
    • Unit Test
  • Create a new file
    • Unit Test
  • Create a new folder
    • Unit Test
  • Duplicate file/folder
    • Unit Test

These features should be properly implemented to allow users to manage files and folders via the context menu.

Suggested Implementation

  • Hook into the context menu event and provide options for file/folder operations.
  • Implement logic to modify the file system accordingly.
  • Update the UI to reflect changes after operations are performed.
  • Create unit tests to confirm proper implementation of each action.

Relevant Code

void Tree::showContextMenu(const QPoint &pos)

Additional Notes

The implementation should also handle edge cases such as duplicate names, invalid filenames, and deletion confirmation.

Metadata

Metadata

Assignees

Labels

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions