File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -185,13 +185,29 @@ Set-Alias -Name r -Value just -Scope Global -Option AllScope
185185function 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+
195211function rb {
196212 just build
197213}
You can’t perform that action at this time.
0 commit comments