khal icon indicating copy to clipboard operation
khal copied to clipboard

Making changes to an entry without editing for use in a script

Open fredvos opened this issue 3 years ago • 1 comments

Hi,

I'ld like to have the option to change or add attributes to entries using commands.

Currently I can make changes using the edit command, but editing is interactive. I'm using Taskwarrior too. Taskwarrior supports the use in scripts. You can add, remove and change attributes for a task in a non-interactive manner. This is a very neat feature of Taskwarrior.

If this could be possible too in Khal, it would make my work much easier.

An example. I want to add references to notes in my file system to both calendar items in Khal and tasks in Taskwarrior. I then need at least a marker that notes are available, possibly with a reference to the name of the file, so a command like $ khal modify [uid] --add-category "HasNotes.xyz" could be used in a script to add a reference to a file with notes. Currently I can only add a category using the interactive edit command.

Thanks, Fred

fredvos avatar Oct 12 '22 08:10 fredvos

Hi In a script, since that's all text files, doesn't sed command gets job done ?

Le 12 octobre 2022 10:49:37 GMT+02:00, Fred Vos @.***> a écrit :

Hi,

I'ld like to have the option to change or add attributes to entries using commands.

Currently I can make changes using the edit command, but editing is interactive. I'm using Taskwarrior too. Taskwarrior supports the use in scripts. You can add, remove and change attributes for a task in a non-interactive manner. This is a very neat feature of Taskwarrior.

If this could be possible too in Khal, it would make my work much easier.

An example. I want to add references to notes in my file system to both calendar items in Khal and tasks in Taskwarrior. I then need at least a marker that notes are available, possibly with a reference to the name of the file, so a command like $ khal modify [uid] --add-category "HasNotes.xyz" could be used in a script to add a reference to a file with notes. Currently I can only add a category using the interactive edit command.

Thanks, Fred

-- Reply to this email directly or view it on GitHub: https://github.com/pimutils/khal/issues/1195 You are receiving this because you are subscribed to this thread.

Message ID: @.***>

Tonus1 avatar Oct 12 '22 14:10 Tonus1