pimutils / pimutils/khal

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

Open
#1,195 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

type: enhancement
Dominant language
Python
Stars
3.1k
Forks
233
Avg merge
1h 44m
Merged PRs (30d)
1

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating Khal's existing interactive edit command and its command-line entry point, then compare the requested behavior with Taskwarrior's scripted attribute changes. Done means a non-interactive command can add, remove, and change entry attributes, including adding a category for the proposed notes reference.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.