From a72c700f6336da2dd33d5559c8451ccab97172df Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 5 Nov 2024 01:44:24 -0600 Subject: got a temp window to work as a workaround --- initRepoList.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'initRepoList.go') diff --git a/initRepoList.go b/initRepoList.go index 454b3c5..be01f1a 100644 --- a/initRepoList.go +++ b/initRepoList.go @@ -21,3 +21,15 @@ func (r *repoWindow) initRepoList() { r.View.NewRepo(path) } } + +func (r *repoWindow) tmpRepoList() { + + log.Info("scanning everything in ~/go/src") + for i, path := range repostatus.ListGitDirectories() { + // log.Info("addRepo()", i, path) + path = strings.TrimPrefix(path, me.goSrcPwd.String()) + path = strings.Trim(path, "/") + log.Info("addRepo()", i, path) + r.View.NewRepo(path) + } +} -- cgit v1.2.3