We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f2f567 commit 042fd7eCopy full SHA for 042fd7e
sort_plugin_lists.ps1
@@ -0,0 +1,15 @@
1
+function Sort-Json($file)
2
+{
3
+ $a = Get-Content $file | ConvertFrom-Json
4
+ $a.'npp-plugins' = $a.'npp-plugins' | sort -Property 'display-name'
5
+ $a | ConvertTo-Json > $file
6
+ #replace 2 spaces by tab
7
+ $content = [IO.File]::ReadAllText($file)
8
+ $content = $content -replace ' {2}', "`t"
9
+ [IO.File]::WriteAllText($file, $content)
10
+}
11
+
12
+Sort-Json ".\src\pl.x64.json"
13
+Sort-Json ".\src\pl.x86.json"
14
+Sort-Json ".\src\pl.arm64.json"
15
0 commit comments