Skip to content

Comments

add trigger as well as make silent run more silent'er#631

Closed
cwhittl wants to merge 2 commits intoNotePlan:mainfrom
cwhittl:cw-add-oneeditorsave-to-tidy
Closed

add trigger as well as make silent run more silent'er#631
cwhittl wants to merge 2 commits intoNotePlan:mainfrom
cwhittl:cw-add-oneeditorsave-to-tidy

Conversation

@cwhittl
Copy link
Contributor

@cwhittl cwhittl commented Mar 18, 2025

Introduces a trigger capability that allows generating repeats for notes from the past four days when working within a calendar note. This feature is not recommended for regular notes, refer to the repeat extension for that use case.
The trigger line is:
triggers: onEditorWillSave => np.Tidy.generateRepeatsFromRecentNotes.

Copy link
Collaborator

@jgclark jgclark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still think adding this trigger isn't the best way to solve this particular problem -- instead use a template to call existing command on daily or weekly notes -- but I'm happy to include it. It does have the advantage of running more frequently for most people, though it has the down-side of lots of repetitive work that may slow the app down.

Changes requested:

  • document in the README
  • why hard-code to 4 days? There's a "How many days to count as recent?" setting which I think you should re-use here. Though I realise its description will need changing a little as this is not a "Remove ... recent ..." command.

@dwertheimer
Copy link
Collaborator

@cwhittl Do you want to keep the conversation going here or should we close the PR?

@cwhittl cwhittl closed this Aug 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants