NK-111 - Copy Menu in Context Menu

This commit is contained in:
emerycp
2023-07-22 01:52:19 -04:00
parent 69b306459d
commit 493849a744
3 changed files with 52 additions and 2 deletions

View File

@@ -162,10 +162,29 @@ namespace Nuake
}
}
if (ImGui::BeginMenu("Copy"))
{
ImGui::Separator();
if (ImGui::MenuItem("Full Path"))
{
OS::CopyToClipboard(file->GetAbsolutePath());
}
if (ImGui::MenuItem("File Name"))
{
OS::CopyToClipboard(file->GetName());
}
ImGui::EndPopup();
}
if(file->GetExtension() != ".project")
{
ImGui::Separator();
// TODO: Add to a 'Edit' menu with File Rename, etc.
if (ImGui::MenuItem("Delete"))
{
if(FileSystem::RemoveFile(file->GetAbsolutePath()) != 0)