More work on porting diff kitten

This commit is contained in:
Kovid Goyal
2023-03-16 21:46:00 +05:30
parent d208670172
commit 3c550bcd28
6 changed files with 172 additions and 19 deletions

View File

@@ -23,15 +23,7 @@ import (
var _ = fmt.Print
var RgExe = (&utils.Once[string]{Run: func() string {
ans := utils.Which("rg")
if ans != "" {
return ans
}
ans = utils.Which("rg", utils.DefaultExeSearchPaths()...)
if ans == "" {
ans = "rg"
}
return ans
return utils.FindExe("rg")
}}).Get
func get_options_for_rg() (expecting_args map[string]bool, alias_map map[string]string, err error) {