Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

frontmatter date property not re-evaluated #478

Open
1 of 2 tasks
meredrica opened this issue Dec 4, 2024 · 1 comment
Open
1 of 2 tasks

frontmatter date property not re-evaluated #478

meredrica opened this issue Dec 4, 2024 · 1 comment

Comments

@meredrica
Copy link

meredrica commented Dec 4, 2024

Check if applicable

  • I have searched the existing issues (required)
  • I'm willing to help fix the problem and contribute a pull request

Describe the bug

If you create a note with a date: frontmatter property it is not honored/updated until you delete the .zk/notebook.db file

seems similar to #382

How to reproduce?

  • create a new file echo '# test' > foo.md
  • zk list correctly shows (just now)
  • update the file zk edit foo.md with this content:
---
date: 2020-01-01 00:00:00
---

# test
  • run zk list, output is (just now).
  • run zk index -f, nothing changes
  • rm .zk/notebook.db
  • zk list date is correct

zk configuration

default zk config after zk init.

Environment

zk 0.14.1
system: Linux 6.11.9-arch1-1 x86_64 GNU/Linux
@meredrica
Copy link
Author

meredrica commented Dec 4, 2024

full zip of the directory before deleting the notebook.db attached
bug.tar.gz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant