Update completion-date when status property is "complete"

What I’m trying to do

Looking to add a custom command that runs on “save” with Linter.
This command needs to check if my status field is complete, if it is, it should set completion-date property. I do not use Tasks plugin.

I know about Templater, but I can’t seem to find a way to get them so show as a command, which is needed to have Linter run it on save.

Are there any proper solutions to achieve this?

I went into Linter settings now and it shows all kinds of commands from third party plugins as well.
So you need to register your Templater script in Templater settings:

  • Press ‘Add new hotkey for template’ and add your Templater script.
  • Actual hotkey assignment is not necessary.
  • The titling is a bit unfortunate here - I mean Template hotkeys should be called something else, like Register template or something. Especially when hotkey does NOT need to be assigned.

Then you can select the Templater script in Linter.
You’ll need to choose the Insert not the Create command there (as both types will be offered in Linter).

Thanks! That’s awesome, I got something working.

Little bit off-topic, is it common that Obsidian freezes for ±10 seconds for only 100 items in dataview? I’d expect this with over 1000 items :thinking:

Open a new post with the query. There are DV experts.
Otherwise, no, not even for tens of thousands.

1 Like

Thanks, done :slight_smile:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.