From a9b9e06324751f4c2703bb760f20e6fc790d46ea Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Wed, 1 Oct 2025 14:02:16 +0200 Subject: [PATCH] Add context menu regedits --- go.mod | 2 +- install_context_menu.reg | 19 +++++++++++++++++++ uninstall_context_menu.reg | 8 ++++++++ 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 install_context_menu.reg create mode 100644 uninstall_context_menu.reg diff --git a/go.mod b/go.mod index ded0e61..17e009c 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module datesorter +module dategrouper go 1.23.6 diff --git a/install_context_menu.reg b/install_context_menu.reg new file mode 100644 index 0000000..be02b81 --- /dev/null +++ b/install_context_menu.reg @@ -0,0 +1,19 @@ +Windows Registry Editor Version 5.00 + +[HKEY_CURRENT_USER\Software\Classes\Directory\shell\Group by date] +@="Group by date" + +[HKEY_CURRENT_USER\Software\Classes\Directory\shell\Group by date\command] +@="C:\\Users\\administrator\\go\\bin\\dategrouper.exe \"%1\"" + +[HKEY_CURRENT_USER\Software\Classes\*\shell\Group by date] +@="Group by date" + +[HKEY_CURRENT_USER\Software\Classes\*\shell\Group by date\command] +@="C:\\Users\\administrator\\go\\bin\\dategrouper.exe \"%1\"" + +[HKEY_CURRENT_USER\Software\Classes\AllFileSystemObjects\shell\Group by date] +@="Group by date" + +[HKEY_CURRENT_USER\Software\Classes\AllFileSystemObjects\shell\Group by date\command] +@="C:\\Users\\administrator\\go\\bin\\dategrouper.exe %*" \ No newline at end of file diff --git a/uninstall_context_menu.reg b/uninstall_context_menu.reg new file mode 100644 index 0000000..47c9e86 --- /dev/null +++ b/uninstall_context_menu.reg @@ -0,0 +1,8 @@ +Windows Registry Editor Version 5.00 + +[-HKEY_CURRENT_USER\Software\Classes\Directory\shell\Group by date] +[-HKEY_CURRENT_USER\Software\Classes\Directory\shell\Group by date\command] +[-HKEY_CURRENT_USER\Software\Classes\*\shell\Group by date] +[-HKEY_CURRENT_USER\Software\Classes\*\shell\Group by date\command] +[-HKEY_CURRENT_USER\Software\Classes\AllFileSystemObjects\shell\Group by date] +[-HKEY_CURRENT_USER\Software\Classes\AllFileSystemObjects\shell\Group by date\command] \ No newline at end of file