Skip to content

feat(agenda): customizable scheduled/deadline prefix#1128

Open
lanker wants to merge 1 commit intonvim-orgmode:masterfrom
lanker:lanker/agenda.leaders
Open

feat(agenda): customizable scheduled/deadline prefix#1128
lanker wants to merge 1 commit intonvim-orgmode:masterfrom
lanker:lanker/agenda.leaders

Conversation

@lanker
Copy link
Copy Markdown

@lanker lanker commented Apr 17, 2026

Summary

Adds org_agenda_scheduled_leaders and org_agenda_deadline_leaders for configuring the texts preceding scheduled and deadline items in the agenda.

Related Issues

Closes #1103

Checklist

I confirm that I have:

  • Followed the
    Conventional Commits
    specification
    (e.g., feat: add new feature, fix: correct bug,
    docs: update documentation).
  • My PR title also follows the conventional commits specification.
  • Updated relevant documentation, if necessary.
  • Thoroughly tested my changes.
  • Added tests (if applicable) and verified existing tests pass with
    make test.
  • Checked for breaking changes and documented them, if any.

Adds org_agenda_scheduled_leaders and org_agenda_deadline_leaders for
configuring the texts preceding scheduled and deadline items in the
agenda.
@lanker lanker force-pushed the lanker/agenda.leaders branch from e4092b0 to 068180b Compare April 17, 2026 07:39
if diff < 0 then
return config.org_agenda_deadline_leaders[2]:gsub('%%d', math.abs(diff))
else
return config.org_agenda_deadline_leaders[3]:gsub('%%d', math.abs(diff))
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I'm a bit unsure how to handle cases where the configuration is incorrect, for example if the user only specifies two values for org_agenda_deadline_leaders? Do we validate the configuration anywhere or should we add a check here before using them (with a fallback if it's incorrect)? Or just assume the user knows how to configure it properly :).

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.

Feature request: Customizable agenda scheduled/deadline prefix text

1 participant