Add property:append action to CLI for easier tags management

Use case or problem

The Obsidian CLI has property:read,set,remove. This works well for single-valued properties, but is cumbersome for lists like tags.

Proposed solution

I propose a new property:append action be added, which will add the given item to the property’s list if type=list. If the item is already a list member, the CLI returns info that no action is required. If the property doesn’t exist or is not a list, it’s treated like property:set.

Current workaround (optional)

The current workaround is to property:read the list value, add the desired item to a temp list, then use property:set to set to the temp list.

Related feature requests (optional)

1 Like