But ripgrep's default mode of operation is to search a directory. That is, `so_stupid_search foo ./dir` and `rg foo ./dir` do the exact same thing. Even better, `rg foo` searches the current directory without needing to add a `./` argument.
> and do the fastest
Making tools like this fast is not easy. Your tool is approximately two orders of magnitude slower than ripgrep when searching the Linux kernel, for example.