File worker

Flag: --todo-path
Env: $TODOTXT_TUI_TODO_PATH
Conf: todo_path
Specifies the path to the `todo.txt` file that serves as the main task database. This file contains all your active tasks and is essential for managing your to-do list within the application.

default: $HOME/todo.txt


Flag: --archive-path
Env: $TODOTXT_TUI_ARCHIVE_PATH
Conf: archive_path
Specifies the path to the `archive.txt` file, where completed tasks are stored. If not provided, completed tasks are moved to the `todo.txt` file instead of being saved in a separate archive file.

Flag: -d, --autosave-duration
Env: $TODOTXT_TUI_AUTOSAVE_DURATION
Conf: autosave_duration
Defines the interval, in seconds, for automatic saving of changes to the `todo.txt` file. Is used only if `save_policy` is set to `AutoSave`.

default: 900


Flag: -f, --file-watcher
Env: $TODOTXT_TUI_INIT_WIDGET
Conf: file_watcher
Enables or disables the file-watcher functionality. When enabled, the application monitors the `todo.txt` (_and optionally `archive.txt`_) file for external changes and automatically reloads.

default: true


Flag: -i, --save-policy
Env: $TODOTXT_TUI_SAVE_POLICY
Conf: save_policy
Determines the policy for saving changes to the todo.txt file and, optionally, the archive.txt file.
  • ManualOnly: Requires explicit user action to save changes.
  • AutoSave: Automatically saves changes at intervals defined by `autosave_duration.
  • OnChange: Saves changes immediately whenever modifications occur.

default: OnChange