td-task 0.2.6__tar.gz → 0.2.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. {td_task-0.2.6 → td_task-0.2.8}/PKG-INFO +2 -2
  2. {td_task-0.2.6 → td_task-0.2.8}/README.md +1 -1
  3. {td_task-0.2.6 → td_task-0.2.8}/pyproject.toml +1 -1
  4. {td_task-0.2.6 → td_task-0.2.8}/src/td/CHANGELOG.md +8 -0
  5. {td_task-0.2.6 → td_task-0.2.8}/src/td/__main__.py +32 -0
  6. {td_task-0.2.6 → td_task-0.2.8}/src/td/db.py +2 -1
  7. {td_task-0.2.6 → td_task-0.2.8}/src/td/tui.py +3 -3
  8. {td_task-0.2.6 → td_task-0.2.8}/tests/test_resize.py +1 -1
  9. {td_task-0.2.6 → td_task-0.2.8}/uv.lock +1 -1
  10. {td_task-0.2.6 → td_task-0.2.8}/.env.enc +0 -0
  11. {td_task-0.2.6 → td_task-0.2.8}/.github/workflows/pages.yml +0 -0
  12. {td_task-0.2.6 → td_task-0.2.8}/.github/workflows/publish.yml +0 -0
  13. {td_task-0.2.6 → td_task-0.2.8}/.gitignore +0 -0
  14. {td_task-0.2.6 → td_task-0.2.8}/.python-version +0 -0
  15. {td_task-0.2.6 → td_task-0.2.8}/assets/demo.gif +0 -0
  16. {td_task-0.2.6 → td_task-0.2.8}/demo.tape +0 -0
  17. {td_task-0.2.6 → td_task-0.2.8}/index.html +0 -0
  18. {td_task-0.2.6 → td_task-0.2.8}/src/td/__init__.py +0 -0
  19. {td_task-0.2.6 → td_task-0.2.8}/src/td/backup.py +0 -0
  20. {td_task-0.2.6 → td_task-0.2.8}/src/td/config.py +0 -0
  21. {td_task-0.2.6 → td_task-0.2.8}/src/td/terminal.py +0 -0
  22. {td_task-0.2.6 → td_task-0.2.8}/tests/test_backup.py +0 -0
  23. {td_task-0.2.6 → td_task-0.2.8}/tests/test_cli_notes.py +0 -0
  24. {td_task-0.2.6 → td_task-0.2.8}/tests/test_notes.py +0 -0
  25. {td_task-0.2.6 → td_task-0.2.8}/tests/test_tui_notes.py +0 -0
  26. {td_task-0.2.6 → td_task-0.2.8}/tests/test_update.py +0 -0
  27. {td_task-0.2.6 → td_task-0.2.8}/website/README.md +0 -0
  28. {td_task-0.2.6 → td_task-0.2.8}/website/favicon.svg +0 -0
  29. {td_task-0.2.6 → td_task-0.2.8}/website/main.js +0 -0
  30. {td_task-0.2.6 → td_task-0.2.8}/website/style.css +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: td-task
3
- Version: 0.2.6
3
+ Version: 0.2.8
4
4
  Summary: Fast TUI and CLI manager for tasks and Markdown notes
5
5
  Requires-Python: >=3.14
6
6
  Requires-Dist: cryptography>=42.0.0
@@ -208,7 +208,7 @@ marker. Press `Enter` or `Backspace` on an empty continuation to leave list mode
208
208
  | `PageUp` / `PageDown` | Move one viewport |
209
209
  | `q` / `Esc` | Return |
210
210
 
211
- Settings you can change: max tasks per list (3–50), max starred tasks, whole-database
211
+ Settings you can change: max tasks per list (3–100), max starred tasks, whole-database
212
212
  encryption, current-list encryption, backup export / import, GitHub backup repo,
213
213
  GitHub backup now, auto-sync, and GitHub backup encryption.
214
214
 
@@ -197,7 +197,7 @@ marker. Press `Enter` or `Backspace` on an empty continuation to leave list mode
197
197
  | `PageUp` / `PageDown` | Move one viewport |
198
198
  | `q` / `Esc` | Return |
199
199
 
200
- Settings you can change: max tasks per list (3–50), max starred tasks, whole-database
200
+ Settings you can change: max tasks per list (3–100), max starred tasks, whole-database
201
201
  encryption, current-list encryption, backup export / import, GitHub backup repo,
202
202
  GitHub backup now, auto-sync, and GitHub backup encryption.
203
203
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "td-task"
3
- version = "0.2.6"
3
+ version = "0.2.8"
4
4
  description = "Fast TUI and CLI manager for tasks and Markdown notes"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.14"
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.8] - 2026-11-30
4
+ - Add `td tick <task_id>` CLI command to toggle task completion.
5
+ - Add `td lists` and `td tasks` CLI commands.
6
+ - Make `td -l <listname>` list tasks and notes directly in the CLI.
7
+
8
+ ## [0.2.7] - 2026-11-10
9
+ - Raise default max tasks per list from 15 to 100, and the max tasks setting range to 3–100.
10
+
3
11
  ## [0.2.6] - 2026-11-04
4
12
  - Back up and restore data through private GitHub repositories using the gh CLI.
5
13
  - Encrypt backups by default, with optional plain JSON storage.
@@ -68,6 +68,33 @@ def main() -> None:
68
68
  print("✗ Error: list name is required. Pass list name with -l <name> or --list <name>.")
69
69
  sys.exit(1)
70
70
  _run_list(list_name)
71
+ elif len(args) > 1 and args[1] in ("tick", "-tick", "--tick"):
72
+ if len(args) < 3:
73
+ print("Usage: td tick <task_id>")
74
+ sys.exit(1)
75
+ try:
76
+ task_id = int(args[2])
77
+ from . import db
78
+ db.toggle_done(task_id)
79
+ print(f"✓ Task {task_id} toggled.")
80
+ except ValueError:
81
+ print("✗ Invalid task ID")
82
+ sys.exit(1)
83
+ except Exception as e:
84
+ print(f"✗ Failed to toggle task: {e}")
85
+ sys.exit(1)
86
+ elif len(args) > 1 and args[1] == "lists":
87
+ from . import db
88
+ lists = db.get_all_lists()
89
+ for name in lists:
90
+ print(name)
91
+ elif len(args) > 1 and args[1] == "tasks":
92
+ if not has_list:
93
+ from . import db
94
+ lists = db.get_all_lists()
95
+ list_name = lists[0] if lists else "main"
96
+ _run_list(list_name)
97
+
71
98
  elif len(args) > 1 and args[1] in ("export", "-export", "--export"):
72
99
  _run_export(args)
73
100
  elif len(args) > 1 and args[1] in ("import", "-import", "--import"):
@@ -83,6 +110,11 @@ def main() -> None:
83
110
  db.create_list("main")
84
111
  lists = ["main"]
85
112
  active_list = list_name if has_list else (lists[0] if lists else "main")
113
+
114
+ if has_list and len(args) == 1:
115
+ _run_list(active_list)
116
+ return
117
+
86
118
  run_main(active_list, lock_list=has_list)
87
119
  except KeyboardInterrupt:
88
120
  sys.exit(0)
@@ -7,7 +7,8 @@ from pathlib import Path
7
7
 
8
8
  DB_PATH = Path(os.environ.get("TD_DB_PATH", Path.home() / ".td.db"))
9
9
 
10
- DEFAULT_MAX_TASKS = 15
10
+ DEFAULT_MAX_TASKS = 100
11
+ MAX_TASKS_LIMIT = 100
11
12
  DEFAULT_MAX_STARRED_TASKS = 3
12
13
 
13
14
  SCHEMA = """
@@ -2649,12 +2649,12 @@ def _run_settings_loop(list_name: str) -> None:
2649
2649
  if hover == 0:
2650
2650
  try:
2651
2651
  new_max = int(edit_text)
2652
- if new_max < 3 or new_max > 50:
2652
+ if new_max < 3 or new_max > db.MAX_TASKS_LIMIT:
2653
2653
  raise ValueError
2654
2654
  db.set_max_tasks(new_max, list_name)
2655
2655
  status_msg = f"✓ max tasks set to {new_max} for list '{list_name}'"
2656
2656
  except ValueError:
2657
- status_msg = "✗ must be an integer between 3 and 50"
2657
+ status_msg = f"✗ must be an integer between 3 and {db.MAX_TASKS_LIMIT}"
2658
2658
  elif hover == 1:
2659
2659
  try:
2660
2660
  new_max = int(edit_text)
@@ -2705,7 +2705,7 @@ def _run_settings_loop(list_name: str) -> None:
2705
2705
  val = int(edit_text) if edit_text.strip() else 3
2706
2706
  except ValueError:
2707
2707
  val = 3
2708
- new_val = min(50, val + 1)
2708
+ new_val = min(db.MAX_TASKS_LIMIT, val + 1)
2709
2709
  edit_text = str(new_val)
2710
2710
  edit_cursor = len(edit_text)
2711
2711
  elif hover == 0 and key == term.KEY_ARROW_DOWN:
@@ -289,7 +289,7 @@ class LiveTuiResizeTests(unittest.TestCase):
289
289
  "PYTHONPATH": str(Path(__file__).resolve().parents[1] / "src"),
290
290
  })
291
291
  process = subprocess.Popen(
292
- [sys.executable, "-m", "td", "--list", "main"],
292
+ [sys.executable, "-m", "td"],
293
293
  stdin=slave, stdout=slave, stderr=slave,
294
294
  env=environment, start_new_session=True,
295
295
  )
@@ -142,7 +142,7 @@ wheels = [
142
142
 
143
143
  [[package]]
144
144
  name = "td-task"
145
- version = "0.2.6"
145
+ version = "0.2.8"
146
146
  source = { editable = "." }
147
147
  dependencies = [
148
148
  { name = "cryptography" },
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes