Show HN: LineSelect, shell utility to interactively select lines in a pipeline
github.com
Tested on Linux but should also work on MacOS.
Also: please help me come up with a better name!
github.com
Tested on Linux but should also work on MacOS.
Also: please help me come up with a better name!
1. Piping into `fzf -m` (use tab to toggle selections and built-in search to filter options).
2. Percol https://github.com/mooz/percol (also has filtering, use ctrl-space to toggle selection).
Anyone know anything like that? Ideally after running it'd somehow output which columns they were to use later.
Get-ChildItem -File ~\desktop | Out-GridView -PassThru | Remove-Item
or using aliases: ls -file ~\desktop | ogv -pass | ri #!/bin/sh
TEMP=“$(mktmp)”
cat > “$TEMP”
$EDITOR “$TEMP”
cat “$TEMP”Not as succinct but you can still pipe your output to vim, make your edits, run :w vimpipe to save your edits, and pipe the output of your vimpipe file to another command.
find . -type f -name \.txt | vim -; cat vimpipe | xargs rm
There are some other gems in this package. The ones I find myself using regularly are 'ts' and 'sponge' but I'm sure the useful subset depends a lot on the kind of work you are doing
https://github.com/SixArm/checkline
https://github.com/SixArm/markline
You may also want to know about similar tools such as vipe, peco, percol, canything, zaw, and fzf.
How about isel or iselect, for interactively select?