jschlatow / taskopen

Tool for taking notes and open urls with taskwarrior
GNU General Public License v2.0
368 stars 32 forks source link

notes_dupe_warning #62

Closed linuxcaffe closed 3 years ago

linuxcaffe commented 11 years ago

This routine checks for duplicate Notes annotations for the same task (pointing to the same UUID.txt) and gives a warning and an optional resolution.

Hey, task 142 ('description') has more than one Notes reference!
1) Notes: checklist
2) list: Notes
3) Notes about task 142 progress
All of these annotations point to the same UUID.txt! 
There should only be one Notes per task, 
choose the survivor by entering the number below 
(or any other character to quit without changes).
keep number:
linuxcaffe commented 11 years ago

this could be made out of 3 "functions";

notes_dupe_check notes_dupe_warning (first 5 lines) notes_dupe_fix (last 4 lines)

linuxcaffe commented 11 years ago
notes_dupe_check=on

might be an rc setting forcing a dupe_check with every iteration and/or notes_dupe_check might be activated whenever the -B flag is used, as this is a maintenance mode, looking for broken links.