mirror of
https://github.com/vbatts/utils.git
synced 2024-12-04 14:35:41 +00:00
find-todos: update to markdown pattern
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
21a6bd6d87
commit
b898fc1bf5
1 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ func main() {
|
|||
NoteDir = filepath.Join(os.Getenv("HOME"), "Notes")
|
||||
}
|
||||
flNoteDir = flag.String("d", NoteDir, "directory of notes")
|
||||
flNotePat = flag.String("p", "Tasks*.txt", "file pattern")
|
||||
flNotePat = flag.String("p", "Tasks*.md", "file pattern")
|
||||
flag.Parse()
|
||||
|
||||
matches, err := filepath.Glob(filepath.Join(*flNoteDir, *flNotePat))
|
||||
|
@ -54,7 +54,7 @@ func main() {
|
|||
fmt.Println(err)
|
||||
os.Exit(1)
|
||||
}
|
||||
count += 1
|
||||
count++
|
||||
if strings.Contains(line, "TODO") {
|
||||
fmt.Printf("%s:%d\t%s\n", filepath.Base(match), count, strings.TrimRight(line, " \n"))
|
||||
trimmed := strings.TrimSpace(line)
|
||||
|
|
Loading…
Reference in a new issue