Skip to content

Instantly share code, notes, and snippets.

@ChuckMichael
Last active October 8, 2023 23:56
Show Gist options
  • Save ChuckMichael/8ea2c2dcdc93f8384839f2e2890a329e to your computer and use it in GitHub Desktop.
Save ChuckMichael/8ea2c2dcdc93f8384839f2e2890a329e to your computer and use it in GitHub Desktop.
***/!\Not needed starting from Notepad++ v8.5.1/!\*** It adds "Edit with Notepad++" option to new context menu under Windows 11. Thanks to @AveYo!
Windows Registry Editor Version 5.00
; Edit with Notepad++ in Windows 11 contextmenu - by AveYo (https://gist.github.com/AveYo)
[-HKEY_CURRENT_USER\Software\Classes\*\shell\extract]
[HKEY_CURRENT_USER\Software\Classes\*\shell\extract]
"MuiVerb"="Edit with &Notepad++"
"Icon"="C:\\Program Files\\Notepad++\\notepad++.exe,0"
"MultiSelectModel"="Player"
"NeverDefault"=""
"AppliesTo"="NOT .zip"
[HKEY_CURRENT_USER\Software\Classes\*\shell\extract\command]
@="\"C:\\Program Files\\Notepad++\\notepad++.exe\" \"%L\""
[-HKEY_CURRENT_USER\SOFTWARE\Classes\*\shellex\ContextMenuHandlers\ANotepad++64]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shellex\ContextMenuHandlers\ANotepad++64]
@AveYo
Copy link

AveYo commented Aug 7, 2022

The icon is automatic, you can't change it. On the legacy menu it shows the designated 7-zip one.
These are hijacked entries, meant as an example on how to add your own context menu entries without creating a freaking store app.
extract verb is more useful for something else like the Notepad++ entry here. I originally shared it on mdl. Thanks to ChuckMichael it's on github as well, I see no issue with that.

@Dhyfer1
Copy link

Dhyfer1 commented Aug 8, 2022

@AveYo Well, I only was just curious to know where Windows 11 stores the icons used in the new context menu. 🤔

@AveYo
Copy link

AveYo commented Aug 8, 2022

C:\Windows\SystemApps\MicrosoftWindows.Client.Core_cw5n1h2txyewy\FileExplorerExtensions\Assets\images\

@Dhyfer1
Copy link

Dhyfer1 commented Aug 8, 2022

Oh, thank you very much. I really needed that information, now I will be able to use some icons I need. Thanks again :)

@nosmall
Copy link

nosmall commented Sep 29, 2022

It works, thanks.

@ten2120
Copy link

ten2120 commented Sep 30, 2022

C:\Windows\SystemApps\MicrosoftWindows.Client.Core_cw5n1h2txyewy\FileExplorerExtensions\Assets\images\

Hi,
Thanks for the Reg key. I just want to know if you found a solution for the icon.
There is a post on 11F about the assets that might be helpful:
https://www.elevenforum.com/t/win-11-ui-icon-font.3722/#post-170147

As I realized, MS use "Segoe Fluent Icon" and "Segoe MDL2 Assets" fonts for some part of Windows UI.

@ten2120
Copy link

ten2120 commented Sep 30, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment