Dedline warnings appear in agenda only after opening file

Aperta
#1,046 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
lua
Ambito
tooling

Direzione di ricerca

Inizia tracciando il caricamento dell’agenda dai org_agenda_files configurati e il percorso di gestione degli avvisi DEADLINE, riproducendo il problema senza aprire il file sorgente. Il lavoro è completato quando l’agenda include gli avvisi sui modificatori di timestamp immediatamente dopo l’avvio, senza aprire il file né aggiornarlo manualmente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug
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

Lingua principale
Lua
Stelle
3.9k
Fork
193
Merge medio
5g 7h
PR unite (30g)
6

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di nvim-orgmode/orgmode

Tutte le issue di nvim-orgmode/orgmode

Issue simili

Altre issue su Lua

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.