Skip to content

Commit a238b43

Browse files
committed
feat: run selected text in file
1 parent 713c255 commit a238b43

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.vscode/tasks.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,19 @@
129129
"-- ${input:nmap-args}"
130130
],
131131
"problemMatcher": []
132+
},
133+
{
134+
"label": "run command with selection",
135+
"type": "shell",
136+
"detail": "Run command with selection in the terminal",
137+
"command": [
138+
"source ${workspaceFolder}/.vscode/.zshrc; ",
139+
"echo 'Running command with selection:';",
140+
"echo '${selectedText}';",
141+
"echo 'Press any key to continue or Ctrl-C to cancal';",
142+
"read;",
143+
"${selectedText}"
144+
],
132145
}
133146
],
134147
"inputs": [

0 commit comments

Comments
 (0)