Skip to content

Commit 729064c

Browse files
authored
Merge pull request #140 from tisilent/Add-context-submenu
Add context submenu
2 parents 252575e + 7eefcaf commit 729064c

File tree

1 file changed

+66
-1
lines changed

1 file changed

+66
-1
lines changed

package.json

Lines changed: 66 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,74 @@
122122
"command": "sortLines.sortLines",
123123
"when": "editorTextFocus && !editorReadonly",
124124
"group": "sortLines@1"
125+
},
126+
{
127+
"submenu": "sortLines",
128+
"when": "editorTextFocus && !editorReadonly",
129+
"group": "sortLines@2"
130+
}
131+
],
132+
"sortLines": [
133+
{
134+
"command": "sortLines.sortLines",
135+
"group": "2_sortLines@1"
136+
},
137+
{
138+
"command": "sortLines.sortLinesCaseInsensitive",
139+
"group": "2_sortLines@2"
140+
},
141+
{
142+
"command": "sortLines.sortLinesCaseInsensitiveUnique",
143+
"group": "2_sortLines@3"
144+
},
145+
{
146+
"command": "sortLines.sortLinesReverse",
147+
"group": "2_sortLines@4"
148+
},
149+
{
150+
"command": "sortLines.sortLinesLineLength",
151+
"group": "2_sortLines@5"
152+
},
153+
{
154+
"command": "sortLines.sortLinesLineLengthReverse",
155+
"group": "2_sortLines@6"
156+
},
157+
{
158+
"command": "sortLines.sortLinesVariableLength",
159+
"group": "2_sortLines@7"
160+
},
161+
{
162+
"command": "sortLines.sortLinesVariableLengthReverse",
163+
"group": "2_sortLines@8"
164+
},
165+
{
166+
"command": "sortLines.sortLinesNatural",
167+
"group": "2_sortLines@9"
168+
},
169+
{
170+
"command": "sortLines.sortLinesUnique",
171+
"group": "2_sortLines@10"
172+
},
173+
{
174+
"command": "sortLines.removeDuplicateLines",
175+
"group": "2_sortLines@11"
176+
},
177+
{
178+
"command": "sortLines.keepOnlyDuplicateLines",
179+
"group": "2_sortLines@12"
180+
},
181+
{
182+
"command": "sortLines.sortLinesShuffle",
183+
"group": "2_sortLines@13"
125184
}
126185
]
127-
}
186+
},
187+
"submenus": [
188+
{
189+
"id": "sortLines",
190+
"label": "Sort lines"
191+
}
192+
]
128193
},
129194
"devDependencies": {
130195
"@types/glob": "^7.1.1",

0 commit comments

Comments
 (0)