-
-
Notifications
You must be signed in to change notification settings - Fork 55
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 to notes in subdirectories #22
Comments
Hello @haditim,
You are welcome!
This is an inherent constraint in the current design of Denote. There There is the possibility to maintain distinct flat directories, by using The local variable setup is mentioned in this section of the manual: I am open to the possibility of supporting subdirectories, though I am Any further thoughts from you or others are most welcome. |
I don't know which one would be the best, but I would like to suggest a 3rd option to consider if this gets implemented: Search recursively the |
@protesilaos thank you for the reply
Yes, I followed the manual for local variable (it is exactly what my
I personally cannot think of organizing all my notes into one flat file structure. I honestly don't know if other people would use categorizing per subfolders as heavily as I would do, but I think it'd be a good idea to support it. In that I also think what @ggjp suggested is good:
I think one can also automate the The way I went with my config also allows a dynamic keyword population and removes the need to manually set them in advance. |
Very well! Later today I will write a prototype and put it on a new |
This will require a bit more time. Expect an update tomorrow. |
@protesilaos About making denote aware of the subdirectories (while keeping links/backlinks still working), I was able to make it work in a private branch, but the fontification of the backlinks in I just wanted to share this info with you, in case you have not started working on it and would rather wait a bit until the copyright assignment is done. (I have received the form to sign and will email it in a few hours.) |
@ggjp Very well! I have something, but it is not final. Will stash it for now. Do you want to prepare a PR or wait for your first one to be merged? |
My work might not be final either. I have created a pull request to support subdirectories, if you want to have a look at it. I have also listed the work that remains to be done. |
The code from @ggjp is now in the Will iterate on it. Once their FSF paperwork is done, we can merge everything into |
Just to note that the support for subdirectories is now in the We then need to consider the case of |
With #29 done, I am closing this issue. I think the subdir functionalitty works now. Will continue testing it and prepare a new release as soon as possible. |
Thanks a lot for the work on the issue. I was very busy over the weekend. I gave new changes a ride, but could not make it to work in a one hour time slot and had to give up on it. I will be trying to make this work once I have more time and report back. |
You are welcome! Please let me know if you need help. |
This is to confirm that everything works as expected with |
You are welcome! |
Hello,
Thanks a lot for this awesome package. This is not an issue with denote, but my lack of elisp knowledge and I would appreciate if one could shine a bit of light in my path.
I needed to organize my notes into subdirectories as opposed to the default notes path. So I came up with following functions:
This allows me to create subdirectories and at the same time populate
denote-known-keywords
. Everything works as expected. However, when I link a note from any subdirectories, the link would not include the path and fails to open. Also backlinks arenil
if links are from subdirectories.FYI, I use doom emacs and this is the link to my full configuration.
Thanks again.
The text was updated successfully, but these errors were encountered: