-
Notifications
You must be signed in to change notification settings - Fork 133
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
[Bug] zk cannot query links of files in subdirectories #170
Comments
Thank you for the detailed bug report, I can reproduce it. |
Probably related: zk also doesn't seem to count links from subdirectories when figuring out which notes are orphans. $ zk init --no-input
$ zk new --title one # xu2y.md
$ mkdir my_dir && zk new --title two my_dir # he0x.md Say I link these notes to each other: $ zk list
one xu2y.md (3 minutes ago)
‣ [[my_dir/he0x]]
two my_dir/he0x.md (3 minutes ago)
‣ [[xu2y]]
Found 2 notes Because these are linked circularly, neither should be considered an orphan. However: $ zk list --orphan
one xu2y.md (4 minutes ago)
‣ [[my_dir/he0x]]
Found 1 note one is still considered an orphan despite the link from two. I post here because this seems like a different expression of the same issue, but I'm happy to open a new issue if that makes things easier to track. |
@j-hui It's fine here, I'll check if the issues are related after fixing the first one. |
Coming from Logseq. I'm keeping journals in |
Bump. Seeing this too. |
It should be fixed in @j-hui Yes it was indeed the same issue. |
still present for me on commit 7622d9e:
|
@B4rc1 Your example works for me, make sure you are really using the latest version (check Also forcing to reindex your notebook might help: |
reindexing ( |
Yeah I think I'll add a reindexing step for the next release. Thanks for confirming the fix. |
After this you end up with a folder looking something like this:
Now insert links to file on in file two and three.
You should end up with:
as you can see
two
andthree
link toone
. When askingzk
which file links toone
:When asking which file
three
links:System Information
zk version: 0.9.0
The text was updated successfully, but these errors were encountered: