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

Notebook inside a hidden directory not working #271

Closed
ametis70 opened this issue Nov 14, 2022 · 3 comments · Fixed by #402
Closed

Notebook inside a hidden directory not working #271

ametis70 opened this issue Nov 14, 2022 · 3 comments · Fixed by #402
Assignees
Labels
bug Something isn't working

Comments

@ametis70
Copy link

I started using zk today on Linux with:

zk init "$HOME/.notes"
export ZK_NOTEBOOK_DIR="$HOME/.notes"

and then I created some notes with new and edit --interactive. After that, I found out that the list and edit commands couldn't find any note, even if the files were created correctly. I also tried with index without success.

After that, I moved the $HOME/.notes directory to $HOME/Documents/Notes and the commands now work correctly, so I believe there's a problem with the notebook being in a hidden directory

@mickael-menu mickael-menu added the bug Something isn't working label Nov 15, 2022
@mickael-menu
Copy link
Member

By design, hidden files and directories are ignored from the zk index. Looks like this filter applies to the root notebook directory as well.

Until this is fixed, you can nest your notebook inside a hidden directory, e.g. ~/.notes/notebook.

@ametis70
Copy link
Author

Alright, thanks!

@tjex tjex self-assigned this Apr 6, 2024
@tjex
Copy link
Member

tjex commented Apr 17, 2024

@ametis70 good to go :) Hope you're still using zk!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants