Add info and edit commands for interactive task management

- Add 'opal info' command to display detailed task information
  - Shows all task attributes including UUID, timestamps, and metadata
  - Supports flexible syntax (opal info 2 or opal 2 info)
  - Displays recurrence information and parent UUID for recurring tasks

- Add 'opal edit' command to edit tasks in $EDITOR
  - Opens task in text editor with human-readable format
  - Supports all editable fields with smart date formatting
  - Special handling for recurring tasks (updates parent template)
  - Status changes trigger appropriate methods (Complete/Delete)
  - Auto-saves changes on editor exit without confirmation
  - Clear validation and error messages

- Register new commands in root command dispatcher
This commit is contained in:
2026-01-05 11:05:07 +01:00
parent d0b46beeec
commit 79eb3bb62a
4 changed files with 621 additions and 2 deletions
+2 -2
View File
@@ -2,11 +2,11 @@ Bytte håndhånklær due:today recur:3d +bad wait:due-1d
Bytte dusjhåndklær due:sun recur:weekly +bad wait:due-1d
Bytte kjøkkenklut og glasshånklær due:mon recur:3d +kjøkken wait:due-1d
Rense filter i varmepumpe due:eom recur:monthly wait:due-2d
Skifte på sengen due:sun recur:weekly wait:due-1d
Skifte på sengen due:sun recur:weekly wait:due-1d +soverom
Av-ise og vaske kjøleskap og fryser due:eom recur:3m +kjøkken wait:due-1w
Av-ise og vaske fryser due:eom recur:3m +kjeller wait:due-1w
Vaske dusjen due:15jan +bad recur:2w wait:due-1d
Vaske toalett, servant og vinduskarm due:fri recur:5d +bad wait:due-2d
Vaske kjøkkenbenk due:eod recur:1d
Vaske kjøkkenbenk due:eod recur:1d +kjøkken