Skip to content

Implement File and Folder Operations in Context Menu #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
10 tasks done
chrisdedman opened this issue Mar 19, 2025 · 0 comments · Fixed by #29
Closed
10 tasks done

Implement File and Folder Operations in Context Menu #18

chrisdedman opened this issue Mar 19, 2025 · 0 comments · Fixed by #29
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@chrisdedman
Copy link
Member

chrisdedman commented Mar 19, 2025

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.

@chrisdedman chrisdedman added enhancement New feature or request help wanted Extra attention is needed labels Mar 19, 2025
@chrisdedman chrisdedman moved this to Todo in CodeAstra MVP Mar 19, 2025
@chrisdedman chrisdedman added the good first issue Good for newcomers label Mar 22, 2025
@chrisdedman chrisdedman moved this from Todo to In Progress in CodeAstra MVP Mar 30, 2025
@chrisdedman chrisdedman self-assigned this Mar 31, 2025
@chrisdedman chrisdedman linked a pull request Apr 4, 2025 that will close this issue
@github-project-automation github-project-automation bot moved this from In Progress to Done in CodeAstra MVP Apr 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant