diff --git a/cmd/pttodo-cli/cli.go b/cmd/pttodo-cli/cli.go index 4758753..2c87eaa 100644 --- a/cmd/pttodo-cli/cli.go +++ b/cmd/pttodo-cli/cli.go @@ -573,6 +573,9 @@ func listDir(dname string) ([]string, error) { if entries[i].IsDir() { continue } + if strings.HasPrefix(path.Base(entries[i].Name()), ".") { + continue + } paths = append(paths, path.Join(dname, entries[i].Name())) } sort.Slice(paths, func(i, j int) bool {