4 ms·
Yeah, another one I haven't worked out yet is opening mulitple files from shell. So far this is what I can come up with: @(Get-ChildItem *.ts | foreach { $
by Jenk 5y ago
Yeah, another one I haven't worked out yet is opening mulitple files from shell. So far this is what I can come up with:
@(Get-ChildItem *.ts | foreach { $_.Name } | Join-String -Separator ' ') | foreach { nvim -- $_ }
But even that abomnination doesn't quite work.
- deleted 5y ago[deleted]
- jiggawatts 5y agoI suspect that this is sufficient for your needs: nvim -- (( dir *.ts ).Name -join ' ') I don't have nvim, but the equivalent worked for me with "code" (VS Code).
- Jenk 5y agoThat does indeed work but it's quite different from piping. But thanks that has increased my productivity! I use fzf a lot so I'll be adapting it for that too :)