Commit Graph

13 Commits

Author SHA1 Message Date
Levi Neely 4dfa11747f code cleanup 2025-11-07 21:32:05 +01:00
Levi Neely d8724d484b encrypted journal entries 2025-11-07 21:24:54 +01:00
Levi Neely f8fa00c310 add relative date support to Journal
- Journal +1d - tomorrow
- Journal -1d - yesterday
- Journal +3d - 3 days from now
- Also supports h (hours), m (minutes), s (seconds)
- Examples: +2h, -5m, +30s
- Handle negative values before flag parsing to avoid -1d being treated as flag
2025-11-06 15:38:03 +01:00
Levi Neely 311aafbaa4 fix Journal: search by title with spaces not hyphens
- ParseNote converts filename hyphens to spaces in title
- Search pattern must use spaces: 'thursday 6 november 2025'
- Restore regex search capability with correct pattern
- Fixes Journal <date> to find all entries for that date
2025-11-05 19:11:01 +01:00
Levi Neely 2ddf848853 fix Journal: use original date for search pattern
- Don't modify targetDate before searching
- Only combine with current time when creating new entry
- Fixes issue where wrong date pattern was used for search
2025-11-05 18:54:42 +01:00
Levi Neely 4c25ba0746 clarify Journal search pattern comment
- Pattern already excludes time component
- Searches for 'wednesday-5-november-2025' format
- Finds all entries for that date regardless of time
2025-11-05 18:52:55 +01:00
Levi Neely cea2055b97 fix Journal: search by title pattern instead of identifier date
- Search for title pattern like 'monday-3-november-2025'
- Fixes issue where identifier date != journal entry date
- Now correctly finds entries for specific dates
2025-11-05 18:51:01 +01:00
Levi Neely 8d817b111e fix Journal: identifier must always be creation timestamp
- Identifier uses current date/time (when file was created)
- Title uses target date (the journal entry date)
- Follows denote convention: identifier = creation time
2025-11-05 18:46:18 +01:00
Levi Neely 84bfa3c19b fix Journal: auto-create entry for any date if not found
- Journal <date> now creates entry if it doesn't exist
- Use target date in identifier but current time in title
- Consistent with Journal (no args) behavior
2025-11-05 18:45:22 +01:00
Levi Neely 1bbd6c6991 add date argument to Journal command
- Journal <YYYYMMDD> lists entries for that date
- Journal (no args) lists/creates today's entry
- Only auto-creates for today, not past/future dates
- Shows 'No journal entries found' message for empty dates
2025-11-05 18:43:04 +01:00
Levi Neely 2588179d00 fix Journal add: use current time in title when date specified
- Combine target date with current time for title formatting
- Prevents '0000' appearing in title when using 'Journal add YYYYMMDD'
- Identifier already used current time correctly
2025-11-05 18:40:38 +01:00
Levi Neely d638dcd102 Search result reformatting, sort feature 2025-11-04 18:33:20 +01:00
Levi Neely 041bb6a2da Initial commit: Denote and Journal for acme 2025-11-03 18:43:37 +01:00