Closed gravndal closed 2 years ago
I'm not sure how faketime
affects the dates in Neovim, but I don't want to worry about that.
From my tests, both emacs and neovim orgmode behaves the same if I open them them without any time faking. Here are comparing screenshots:
P.S. There's a syntax error in the minimal_init.lua template:
Thanks for noticing. I fixed it.
Can you give it a test without a faketime and see how it works?
I'm not sure how faketime affects the dates in Neovim, but I don't want to worry about that.
The use of faketime doesn't matter, all it does is intercept system calls like time(2)
and fstat(2)
to give you a (hopefully) reliable way to test something reproducibly for a specific date and time.
Can you give it a test without a faketime and see how it works?
I suppose I could have been more explicit: This wasn't discovered using libfaketime.
Anyway, seeing as this works for you, I'll try some things and report back.
The issue is with the tree-sitter grammar:
f110024d539e676f25b72b7c80b0fd43c34264ef
(2021-11-28) works.39a377f5072ee9f79884e227dc49d42c2eba67d8
(2021-11-01) as packaged by nixos, doesn't.False alarm I guess.
Describe the bug
The parses doesn't appear to understand the
SCHEDULED
andDEADLINE
keywords when they appear on the first line after the headline.Steps to reproduce
With the following file added to the agenda:
And starting neovim with
$ faketime 2022-01-10 nvim [...]
The week-agenda view for fake-today is:
Expected behavior
Agenda view matching that of emacs.
Emacs functionality
Week-agenda view:
Minimal init.lua
I don't expect these settings to actually matter, but here you are:
P.S. There's a syntax error in the
minimal_init.lua
template: https://gist.github.com/kristijanhusak/a0cb5f4eb2bad3e732a1d18d311ebe2f#file-minimal_init-lua-L29Screenshots and recordings
No response
OS / Distro
nixos unstable: 22.05.20220119.32e4b99 (Quokka)
Neovim version/commit
431915fe6
Additional context
In addition to the agenda view, this also impacts the
<C-a>
<C-x>
mappings.Tested Emacs was version
GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.30, cairo version 1.16.0)
, without any configuration aside from adding the test file to the agenda.Nearing deadlines also aren't shown for fake-today, which seems like an issue on it's own, unless I've overlooked some setting that overrides the
-Nd>
parts of the timestamp?