My personal project and infrastructure archive
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
function search --description "Finding some code with sk(1) and rg(1)"
|
|
set SELECTED (sk --ansi -c 'rg --color=always --line-number \"{}\"')
|
|
echo (cat $SELECTED | sed 's/\(\:[0-9]*\).*/\1/' | tr ':' ' ')
|
|
end
|
|
|