Skip to content

Commit 8631ec2

Browse files
committed
feat: ccb wrap over code --goto to open files quicker in vscode
1 parent 866dfd0 commit 8631ec2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

CLI-Basic.psm1

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,17 @@ function zo
181181
Set-Alias zq zo
182182
Set-Alias -Name r -Value just -Scope Global -Option AllScope
183183

184+
# INFO: vscode quick open, with line/column number
185+
function ccb{
186+
$clipboardContent = Get-Clipboard
187+
$lineNumber=":"+($args -join ":")
188+
echo $lineNumber
189+
$isPath = Test-Path $clipboardContent
190+
if($isPath){
191+
code --goto "$clipboardContent$lineNumber"
192+
}
193+
}
194+
184195
function rb {
185196
just build
186197
}

0 commit comments

Comments
 (0)