Skip to content

Commit

Permalink
fix: broken calendar dialog due to refactor in nvim-orgmode (#74)
Browse files Browse the repository at this point in the history
The breaking commit is
<https://github.com/nvim-orgmode/orgmode/blob/62a4106b5072e934062acbd6f4213f89d998cce4/lua/orgmode/objects/date.lua#L331-L335>,
a refactor of the `Date` class that renamed a method from
`is_valid_date()` to `is_valid_date_string()`.

Co-authored-by: troiganto <[email protected]>
  • Loading branch information
troiganto and troiganto authored Jan 25, 2025
1 parent 6458d3c commit 8369398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/org-roam/extensions/dailies.lua
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ local function roam_dailies_files(roam)
local filename = vim.fn.fnamemodify(entry.filename, ":t:r")
local ext = vim.fn.fnamemodify(entry.filename, ":e")
local is_org = ext == "org" or ext == "org_archive"
local is_date = Date.is_valid_date(filename) ~= nil
local is_date = Date.is_valid_date_string(filename) ~= nil
return entry.type == "file" and is_org and is_date
end)
:map(function(entry)
Expand Down

0 comments on commit 8369398

Please sign in to comment.