Commit 708349e5 authored by Eran Uzan's avatar Eran Uzan

Adde minimized and specific icon per action

parent 28cf8085
......@@ -2,28 +2,40 @@
X-SuSE-translate=true
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
ServiceTypes=application/json
Actions=validateJSON;toYAML;prettyJSON;inPlacePrettyJSON
Actions=validateJSON;toYAML;prettyJSON;inPlacePrettyJSON;minimizeJSON;inPlaceMinimizeJSON;
Type=Service
X-KDE-Submenu=JSON Tools
[Desktop Action validateJSON]
Name=Validate
Icon=klipper
Icon=preflight-verifier
Exec=jsonlint-php %u 2>&1 | awk ' { printf ("%s ", $0)} END {printf ("\\n") } ' | sed 's/\\(.*\\)/"\\1"/' | xargs -r kdialog --passivepopup
[Desktop Action toYAML]
Name=Convert to YAML
Icon=klipper
Icon=application-x-yaml
Exec=json_xs -f json -t yaml < %u > %u".yaml"
[Desktop Action prettyJSON]
Name=Prettify JSON (new file)
Icon=klipper
Icon=format-indent-more
Exec=json_xs -f json -t json-pretty < %u > %u".pretty.json"
[Desktop Action inPlacePrettyJSON]
Name=Prettify JSON (in Place)
Icon=klipper
Icon=format-indent-more
Exec=json_xs -f json -t json-pretty < %u > %u".pretty.json" && mv %u".pretty.json" %u
[Desktop Action minimizeJSON]
Name=Minimize JSON (new file)
Icon=application-x-compress
Exec=json_xs -f json -t json < %u > %u".minimized.json"
[Desktop Action inPlaceMinimizeJSON]
Name=Minimize JSON (in Place)
Icon=application-x-compress
Exec=json_xs -f json -t json < %u > %u".pretty.json" && mv %u".pretty.json" %u
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment