Changeset View
Changeset View
Standalone View
Standalone View
addons/externaltools/externaltools
- This file was added.
1 | [Global] | ||||
---|---|---|---|---|---|
2 | tools=10 | ||||
3 | version=1 | ||||
4 | | ||||
5 | | ||||
6 | [Tool 0] | ||||
7 | actionName=externaltool_RunShellScript | ||||
8 | arguments=-e sh -c "cd %{CurrentDocument:Path} && pwd && chmod -vc a+x %{CurrentDocument:FileName} && ./%{CurrentDocument:FileName} ; echo Press any key to continue. && read -n 1" | ||||
9 | category= | ||||
10 | cmdname=run-script | ||||
11 | executable=konsole | ||||
12 | icon=system-run | ||||
13 | input= | ||||
14 | mimetypes= | ||||
15 | name=Run Shell Script | ||||
16 | output=Ignore | ||||
17 | reload=false | ||||
18 | save=CurrentDocument | ||||
19 | workingDir=%{CurrentDocument:Path} | ||||
20 | | ||||
21 | [Tool 1] | ||||
22 | actionName=externaltool_GoogleSelectedText | ||||
23 | arguments="https://www.google.com/search?q=%{CurrentDocument:Selection:Text}" | ||||
24 | category= | ||||
25 | cmdname=google | ||||
26 | executable=xdg-open | ||||
27 | icon=globe | ||||
28 | input= | ||||
29 | mimetypes= | ||||
30 | name=Google Selected Text | ||||
31 | output=Ignore | ||||
32 | reload=false | ||||
33 | save=None | ||||
34 | workingDir= | ||||
35 | | ||||
36 | [Tool 10] | ||||
37 | actionName=externaltool_TestExternalTools | ||||
38 | arguments= | ||||
39 | category=Tools | ||||
40 | cmdname=external-tool-test | ||||
41 | executable=tac | ||||
42 | icon= | ||||
43 | input=CurrentDocument:FileBaseName: %{CurrentDocument:FileBaseName}\nCurrentDocument:FileName: %{CurrentDocument:FileName}\nCurrentDocument:FilePath: %{CurrentDocument:FilePath}\nCurrentDocument:FileExtension: %{CurrentDocument:FileExtension}\nCurrentDocument:Text: %{CurrentDocument:Text}\nCurrentDocument:Path: %{CurrentDocument:Path}\nCurrentDocument:NativeFilePath: %{CurrentDocument:NativeFilePath}\nCurrentDocument:NativePath: %{CurrentDocument:NativePath}\nCurrentDocument:Cursor:Line: %{CurrentDocument:Cursor:Line}\nCurrentDocument:Cursor:Column: %{CurrentDocument:Cursor:Column}\nCurrentDocument:Cursor:XPos: %{CurrentDocument:Cursor:XPos}\nCurrentDocument:Cursor:YPos: %{CurrentDocument:Cursor:YPos}\nCurrentDocument:Selection:Text: %{CurrentDocument:Selection:Text}\nCurrentDocument:Selection:StartLine: %{CurrentDocument:Selection:StartLine}\nCurrentDocument:Selection:StartColumn: %{CurrentDocument:Selection:StartColumn}\nCurrentDocument:Selection:EndLine: %{CurrentDocument:Selection:EndLine}\nCurrentDocument:Selection:EndColumn: %{CurrentDocument:Selection:EndColumn}\nCurrentDocument:RowCount: %{CurrentDocument:RowCount}\nDate:dd.MM.yyyy: %{Date:dd.MM.yyyy}\nDate:Locale: %{Date:Locale}\nDate:ISO: %{Date:ISO}\nTime:hh:mm:ss.zzz: %{Time:hh:mm:ss.zzz}\nTime:Locale: %{Time:Locale}\nTime:ISO: %{Time:ISO}\nENV:KATE_PID: %{ENV:KATE_PID}\nUUID: %{UUID}\n | ||||
44 | mimetypes= | ||||
45 | name=Test External Tools | ||||
46 | output=DisplayInPane | ||||
47 | reload=false | ||||
48 | save=None | ||||
49 | workingDir= | ||||
50 | | ||||
51 | [Tool 2] | ||||
52 | actionName=externaltool_gitcola | ||||
53 | arguments=-r %{CurrentDocument:Path} | ||||
54 | category=Git | ||||
55 | cmdname=git-cola | ||||
56 | executable=git-cola | ||||
57 | icon=git-cola | ||||
58 | input= | ||||
59 | mimetypes= | ||||
60 | name=git-cola | ||||
61 | output=Ignore | ||||
62 | reload=false | ||||
63 | save=None | ||||
64 | workingDir= | ||||
65 | | ||||
66 | [Tool 3] | ||||
67 | actionName=externaltool_gitk | ||||
68 | arguments= | ||||
69 | category=Git | ||||
70 | cmdname=gitk | ||||
71 | executable=gitk | ||||
72 | icon=git-gui | ||||
73 | input= | ||||
74 | mimetypes= | ||||
75 | name=gitk | ||||
76 | output=Ignore | ||||
77 | reload=false | ||||
78 | save=None | ||||
79 | workingDir=%{CurrentDocument:Path} | ||||
80 | | ||||
81 | [Tool 4] | ||||
82 | actionName=externaltool_gitblame | ||||
83 | arguments=gui blame %{CurrentDocument:FileName} | ||||
84 | category=Git | ||||
85 | cmdname=git-blame | ||||
86 | executable=git | ||||
87 | icon= | ||||
88 | input= | ||||
89 | mimetypes= | ||||
90 | name=git blame | ||||
91 | output=Ignore | ||||
92 | reload=false | ||||
93 | save=CurrentDocument | ||||
94 | workingDir=%{CurrentDocument:Path} | ||||
95 | | ||||
96 | [Tool 5] | ||||
97 | actionName=externaltool_QtQuick2Previewqmlscene | ||||
98 | arguments=%{CurrentDocument:FileName} | ||||
99 | category=Tools | ||||
100 | cmdname=qml-preview | ||||
101 | executable=qmlscene | ||||
102 | icon= | ||||
103 | input= | ||||
104 | mimetypes=text/x-qml | ||||
105 | name=Qt Quick 2 Preview (qmlscene) | ||||
106 | output=Ignore | ||||
107 | reload=false | ||||
108 | save=CurrentDocument | ||||
109 | workingDir=%{CurrentDocument:Path} | ||||
110 | | ||||
111 | [Tool 6] | ||||
112 | actionName=externaltool_InsertUUID | ||||
113 | arguments=%{UUID} | ||||
114 | category=Tools | ||||
115 | cmdname=uuid | ||||
116 | executable=echo | ||||
117 | icon= | ||||
118 | input= | ||||
119 | mimetypes= | ||||
120 | name=Insert UUID | ||||
121 | output=InsertAtCursor | ||||
122 | reload=false | ||||
123 | save=None | ||||
124 | workingDir= | ||||
125 | | ||||
126 | [Tool 7] | ||||
127 | actionName=externaltool_ClangFormatFullFile | ||||
128 | arguments=-i %{CurrentDocument:FileName} | ||||
129 | category=Tools | ||||
130 | cmdname=clang-format-file | ||||
131 | executable=clang-format | ||||
132 | icon= | ||||
133 | input= | ||||
134 | mimetypes= | ||||
135 | name=Clang Format Full File | ||||
136 | output=Ignore | ||||
137 | reload=true | ||||
138 | save=CurrentDocument | ||||
139 | workingDir=%{CurrentDocument:Path} | ||||
140 | | ||||
141 | [Tool 8] | ||||
142 | actionName=externaltool_ClangFormatSelectedText | ||||
143 | arguments=-assume-filename=%{CurrentDocument:FileName} | ||||
144 | category=Tools | ||||
145 | cmdname=clang-format-selection | ||||
146 | executable=clang-format | ||||
147 | icon= | ||||
148 | input=\s%{CurrentDocument:Selection:Text} | ||||
149 | mimetypes= | ||||
150 | name=Clang Format Selected Text | ||||
151 | output=ReplaceSelectedText | ||||
152 | reload=false | ||||
153 | save=None | ||||
154 | workingDir=%{CurrentDocument:Path} | ||||
155 | | ||||
156 | [Tool 9] | ||||
157 | actionName=externaltool_perl | ||||
158 | arguments=%{ENV:KATE_PID | ||||
159 | category=Tools | ||||
160 | cmdname=perl | ||||
161 | executable=echo | ||||
162 | icon= | ||||
163 | input= | ||||
164 | mimetypes= | ||||
165 | name=perl | ||||
166 | output=DisplayInPane | ||||
167 | reload=false | ||||
168 | save=None | ||||
169 | workingDir= |