Open hkusulja opened 6 years ago
Ill need to investigate this one a little more. I am not 100% sure its possible when publishing using centennial.
Sorry I cant do this with centennial.. or I cant work out how to do it. I am unable to write to the correct component of the registry to add it, and I cant use the local registry.dat either (it only handles HKLM\Software, and HKCU is copy-on-write)..
It might be possible to do this via the manifest.. but I cant see the right values. I did get #20 working though, so you could add the context yourself, using "notepad++.exe" in the call.
You can add options to the context menus of associated file types via the manifest, but in my experience they only show up if your app is set as the default app for the selected file type.
@neilt6 not a bad idea - edit with might be a good suported for our listed supported types anyway.
bump. Any info / progress on this?
@hkusulja unfortunately it doesn't seem possible outside of the "supported types". I can add an extra menu item to "edit in" those supported types, but you can already do that via open with.
Locally - you can add it yourself via a reg key and linking to notepad++ (notepad++ is registered with the command line).
If you need more file types supported - just list them here: https://github.com/NightRi-se/notepad-plus-plus/issues/22
that said … id someone happens to find a way to do this... I am totally happy to take a pull request (or a diff, or snippet, or gist.. whatever works)
I am not UWP developer, but does this help? https://social.msdn.microsoft.com/Forums/SECURITY/en-US/d81ed0c7-a96a-4b47-a685-3f927fef9438/uwphow-to-add-an-item-into-windows-explorer-context-menu?forum=wpdevelop
So I went through the (some what lacking) doco again on thei @hkusulja - and added this to the manifest ..snip...
<uap3:Extension Category="windows.fileTypeAssociation">
<uap3:FileTypeAssociation Name="notepad" MultiSelectModel="Player">
<uap2:SupportedVerbs>
<uap3:Verb Id="notepad" MultiSelectModel="Player">Notepad++</uap3:Verb>
</uap2:SupportedVerbs>
<uap:SupportedFileTypes>
<uap:FileType>.txt</uap:FileType>
<uap:FileType>.log</uap:FileType
....snip...
Right now they arn't showing up on my system.. but I am on an insider build and have a few other things going on... I can only hope this works, if not, ill see about creating a script to otherwise register something in the registry outside of the UWP install (since notepad++ does work from cmd), for those how require this feature..
How to integrate this Notepad++ version/edition within Windows Shell menu on (any) file type?
Tx