-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Links and Custom Folders #16
Comments
Hi Sven,
If your files have a date in their title field, then yes those results If you want to match the start of the file where the identifier/date is,
Does this other folder have a |
I found the bug and pushed a change. If you were using ;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")
((nil . ((denote-directory . default-directory)))) The old value was faulty and I forgot to review it earlier. Please let me know if this addresses your problems. |
Hi Prot, thanks for your reply. I just now had the chance to do some testing and the new code for the .dir-locals file fixes the issue with the links. Adding links via "denote-link-find-file" and following those links via "denote-link-find-file" does now work as expected. Adding links via In the primary folder it works, but still produces duplicates when for example searching for ^20220617 as you suggested. But that might be because I'm not familiar with regex (I would like to say "yet"). I also found something in the Backlinks buffer: I'm not sure if this is intended or not, but it seems that the backlinks-buffer is build and fontified correctly, but it doesn't seem to be possible to open any of the links at the moment (Buffer is read only). The buffer also produces duplicates and also includes a link to the current document. I noticed this behaviour both in the default folder, as well as in the secondary folder, that is the one containing the .dir-locals.el file. |
Sorting them after they are inserted breaks them. Thanks to Sven Seebeck for reporting the regression in issue 16 over at the GitHub mirror: <#16>.
Hello Sven,
Good!
I can reproduce this. Will figure out what the problem is and report back to you.
You mean duplicates as in the same file more than once or matches that are not exactly what you would like? If you show me some examples, I can help further.
I broke this yesterday when I added the sort mechanism. It should be fixed now per commit 429763c, aab484d. |
Yes, I noticed this a few minutes ago and pushed some changes. Thanks! Now working on the error you reported. |
Oh, I should ask here: the |
In principle, there should be no need to change that (if you like it that way). I just improved the check for it. |
This would override the default-directory when using something like 'M-x denote-link-add-links' from a file whose directory had a local value for 'denote-directory'. Thanks to Sven Seebeck for reporting the bug in issue 16 over at the GitHub mirror: <#16>.
I believe I fixed the bug now. Please check. |
Great! Adding links the in a secondary folder works now as one might expect. I noticed though that the Backlinks-Buffer also includes links to the backup/autosave files, which might cause confusion. This happens in both folders, the default and the secondary/alternative one. |
This should remove the false positives reported by Sven Seebeck in issue 16 over at the GitHub mirror: <#16>. It also eliminates the potential problem with the use of "^" against full paths, where it would always fail.
Very well!
Just pushed a change. It should remove all false positive. Please give it a try. |
Nice! Everything seems to work as expected! Perfect! |
Excellent! Thanks again for the feedback! I am now closing this. |
Hi Prot!
I'm sure I'm missing something somewhere, but I get some funny results creating links.
When I'm in my default notes folder, linking to and opening links works as expected. I do however get duplicates when using
denote-link-add-links
and searching only for date, say 20220617. I guess this is because the regex searches both filename and title, hence creates duplicates.When I'm though in another folder, say Docs/journal and do the same search it searches the /notes folder and respectively adds files matching the same files with the difference that I can't seem to open them. Adding a link via
denote-link-insert-link
adds the right link, but I'm unable to open it.I tried to add a local-variables file, but that rather broke stuff :-)
The text was updated successfully, but these errors were encountered: