orgmode icon indicating copy to clipboard operation
orgmode copied to clipboard

Dedline warnings appear in agenda only after opening file

Open allhearingeye opened this issue 2 months ago • 0 comments

Describe the bug

When using timestamp modifiers like -1d or -2d in DEADLINE entries, the warning information does not appear in the agenda unless the corresponding file is opened at least once and the agenda is manually refreshed.

checkhealth

orgmode: ✅

Orgmode ~

  • ✅ OK Treesitter grammar installed (version 2.0.0)
  • ✅ OK Setup called
  • ✅ OK org_agenda_files configured
  • ✅ OK org_default_notes_file configured
  • ✅ OK shellslash is set

Steps to reproduce

  1. Create a task with a deadline warning:
* TODO test
  DEADLINE: <2030-01-01 Tue -20y>
  1. Restart Neovim and open the agenda without opening the file -> warning information does not appear
  2. Open the file, then refresh the agenda (r). -> warning now appears

Expected behavior

Agenda should automatically include deadline entires with their warnings

Emacs functionality

No response

Minimal init.lua

vim.opt.shellslash = true
vim.cmd("language en_US.utf8")
local tmp_dir = vim.env.TMPDIR or vim.env.TMP or vim.env.TEMP or '/tmp'
local nvim_root = tmp_dir .. '/nvim_orgmode'
local lazy_root = nvim_root .. '/lazy'
local lazypath = lazy_root .. '/lazy.nvim'

for _, name in ipairs({ 'config', 'data', 'state', 'cache' }) do
  vim.env[('XDG_%s_HOME'):format(name:upper())] = nvim_root .. '/' .. name
end

-- Install lazy.nvim if not already installed
if not vim.uv.fs_stat(lazypath) then
  vim.fn.system({
    'git',
    'clone',
    '--filter=blob:none',
    'https://github.com/folke/lazy.nvim.git',
    '--branch=stable', -- latest stable release
    lazypath,
  })
end
vim.opt.rtp:prepend(lazypath)

require('lazy').setup({
  {
    'nvim-orgmode/orgmode',
    event = 'VeryLazy',
    ft = { 'org' },
    config = function()
      require('orgmode').setup({
        org_agenda_files = '~/orgfiles/**/*',
        org_default_notes_file = '~/orgfiles/refile.org',
      })
    end,
  },
}, {
  root = lazy_root,
  lockfile = nvim_root .. '/lazy.json',
  install = {
    missing = false,
  },
})

require('lazy').sync({
  wait = true,
  show = false,
})

Screenshots and recordings

No response

nvim-orgmode version

03777ca

OS / Distro

Windows 10

Neovim version/commit

0.11.4

Additional context

No response

allhearingeye avatar Oct 11 '25 19:10 allhearingeye