nvim-orgmode / nvim-orgmode/orgmode
Dedline warnings appear in agenda only after opening file
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 3.9k
- Forks
- 190
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 7
Description
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_filesconfigured - ✅ OK
org_default_notes_fileconfigured - ✅ OK
shellslashis set
Steps to reproduce
- Create a task with a deadline warning:
* TODO test
DEADLINE: <2030-01-01 Tue -20y>
- Restart Neovim and open the agenda without opening the file -> warning information does not appear
- 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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing agenda loading from the configured org_agenda_files and the DEADLINE warning handling path, reproducing the issue without opening the source file. Done means the agenda includes timestamp-modifier warnings immediately after startup, without opening the file or manually refreshing it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100