Skip to content

Commit f7acac6

Browse files
committed
fix: add xcb and delete more nonsense on the code.
1 parent 8631ec2 commit f7acac6

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

CLI-Basic.psm1

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,29 @@ Set-Alias -Name r -Value just -Scope Global -Option AllScope
185185
function ccb{
186186
$clipboardContent = Get-Clipboard
187187
$lineNumber=":"+($args -join ":")
188-
echo $lineNumber
189188
$isPath = Test-Path $clipboardContent
190189
if($isPath){
191190
code --goto "$clipboardContent$lineNumber"
192191
}
192+
else{
193+
Write-Error "Not Path, check again."
194+
}
195+
}
196+
197+
# INFO: same for helix.
198+
function xcb{
199+
$clipboardContent = Get-Clipboard
200+
$lineNumber=":"+($args -join ":")
201+
$isPath = Test-Path $clipboardContent
202+
if($isPath){
203+
hx "$clipboardContent$lineNumber"
204+
}
205+
else{
206+
Write-Error "Not Path, check again."
207+
}
193208
}
194209

210+
195211
function rb {
196212
just build
197213
}

0 commit comments

Comments
 (0)