# HG changeset patch # User Sean E. Russell # Date 1634140369 18000 # Wed Oct 13 10:52:49 2021 -0500 # Node ID 9987852de368a38392ff9b65a09483b41c198dbc # Parent 3396188573c6f54a59cbf5789a9c1265485ec37c Updated changelog and added some info about synctodo to the README diff --git a/CHANGELOG b/CHANGELOG --- a/CHANGELOG +++ b/CHANGELOG @@ -13,6 +13,21 @@ > - **Fixed**: for any bug fixes. > - **Security**: in case of vulnerabilities. +## [v1.2.0] 2021-10-13 + +### Added + +- synctodo (bash) script uses fswatch and todotxt-merge to watch a directory + containing a specific todotxt-format file; if any sync-conflict files appear + in the directory, the script merges them up (in time-order) into the watched + file. It then removes the sync-conflict files, leaving only the watched file. + All removed/modified files are copied into a backup directory. + +## [v1.1.0] 2021-10-12 + +### Changed + +- When merging tasks, remove duplicate project and content tags ## [1.0.0] 2021-09-29 diff --git a/README.md b/README.md --- a/README.md +++ b/README.md @@ -25,6 +25,23 @@ $ todotxt-merge todo.sync-conflict-20210703-174230-73BTXZI.txt todo.txt > new-todo.txt ``` +Also in this repository is a bash script that will watch a directory for +Syncthing sync-conflict files and merge them up. It uses +[fswatch](https://emcrisostomo.github.io/fswatch/) and merges the conflict files +in creation timestamp order, rolling every conflict file for the watched file +into an ultimate merged file. It then moves all sync-conflict files and the +watched file into a backup directory, and replaces the watched file with the +merged version. To use this script, make sure fswatch is installed and todotxt- +merge is in your path somewhere, and then run: + +``` +$ synctodo ~/somedir/todo.txt +Watching /home/you/somedir/todo.txt +backups will be in /home/you/.cache/synctodo/backup_9uVuGA +``` + +If you run it with the `-d` option, it'll print everything it does. + Building --------