diff --git a/addons/externaltools/defaultexternaltoolsrc b/addons/externaltools/defaultexternaltoolsrc index 60ac46ff5..7a2797100 100644 --- a/addons/externaltools/defaultexternaltoolsrc +++ b/addons/externaltools/defaultexternaltoolsrc @@ -1,138 +1,168 @@ [Global] -tools=9 +tools=11 version=1 [Tool 0] actionName=externaltool_gitcola arguments=-r %{Document:Path} category=Git cmdname=git-cola executable=git-cola icon=git-cola input= mimetypes= name=git-cola output=Ignore reload=false save=None workingDir= [Tool 1] actionName=externaltool_gitk arguments= category=Git cmdname=gitk executable=gitk icon=git-gui input= mimetypes= name=gitk output=Ignore reload=false save=None workingDir=%{Document:Path} [Tool 2] actionName=externaltool_gitblame arguments=gui blame %{Document:FileName} category=Git cmdname=git-blame executable=git icon= input= mimetypes= name=git blame output=Ignore reload=false save=CurrentDocument workingDir=%{Document:Path} [Tool 3] actionName=externaltool_RunShellScript arguments=-e sh -c "cd %{Document:Path} && pwd && chmod -vc a+x %{Document:FileName} && ./%{Document:FileName} ; echo Press any key to continue. && read -n 1" category=Tools cmdname=run-script executable=konsole icon=system-run input= mimetypes= name=Run Shell Script output=Ignore reload=false save=CurrentDocument workingDir=%{Document:Path} [Tool 4] actionName=externaltool_GoogleSelectedText arguments="https://www.google.com/search?q=%{Document:Selection:Text}" category=Tools cmdname=google executable=xdg-open icon=globe input= mimetypes= name=Google Selected Text output=Ignore reload=false save=None workingDir= [Tool 5] actionName=externaltool_InsertUUID arguments=%{UUID} category=Tools cmdname=uuid executable=echo icon= input= mimetypes= name=Insert UUID output=InsertAtCursor reload=false save=None workingDir= [Tool 6] actionName=externaltool_ClangFormatFullFile arguments=-i %{Document:FileName} category=Tools cmdname=clang-format-file executable=clang-format icon= input= mimetypes= name=Clang Format Full File output=Ignore reload=true save=CurrentDocument workingDir=%{Document:Path} [Tool 7] actionName=externaltool_ClangFormatSelectedText arguments=-assume-filename=%{Document:FileName} category=Tools cmdname=clang-format-selection executable=clang-format icon= input=\s%{Document:Selection:Text} mimetypes= name=Clang Format Selected Text output=ReplaceSelectedText reload=false save=None workingDir=%{Document:Path} [Tool 8] actionName=externaltool_QtQuick2Previewqmlscene arguments=%{Document:FileName} category=Qt cmdname=qml-preview executable=qmlscene icon= input= mimetypes=text/x-qml name=Qt Quick 2 Preview (qmlscene) output=Ignore reload=false save=CurrentDocument workingDir=%{Document:Path} + +[Tool 9] +actionName=externaltool_JSONFormatFullFile +arguments='.' %{Document:FileName} +category=Tools +cmdname=json-format-file +executable=jq +icon=application-json +input= +mimetypes= +name=JSON Format Full File +output=ReplaceCurrentDocument +reload=false +save=CurrentDocument +workingDir=%{Document:Path} + +[Tool 10] +actionName=externaltool_XMLFormatFullFile +arguments=--format %{Document:FileName} +category=Tools +cmdname=xml-format-file +executable=xmllint +icon=application-xml +input= +mimetypes= +name=XML Format Full File +output=ReplaceCurrentDocument +reload=false +save=CurrentDocument +workingDir=%{Document:Path}