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

Subdirectories in `org-journal-file-format` don't work #137

Closed
ndw opened this Issue Feb 24, 2019 · 4 comments

Comments

Projects
None yet
2 participants
@ndw
Copy link

ndw commented Feb 24, 2019

Under "Journal Directory and Files", it says:

org-journal-file-format - format string for journal file names (may contain directories relative to org-journal-dir).

But if I actually use directories:

(customize-set-variable 'org-journal-dir "~/Dropbox/Org/Journal/")
(customize-set-variable 'org-journal-file-format "%Y/%m/%d.org")
(customize-set-variable 'org-journal-date-format "%Y-%m-%d; %A %d %B %Y")

(require 'org-journal)

I find that org-journal doesn't create the intermediate directories "2019/02" in this case.

Bug or user error?

@ndw

This comment has been minimized.

Copy link
Author

ndw commented Feb 24, 2019

Mmm. I suppose that just typing M-x make-directory RET RET when the directory doesn't exist is reasonable enough. (I misunderstood that message when I first saw it.)

@bastibe

This comment has been minimized.

Copy link
Owner

bastibe commented Feb 25, 2019

So, you found a solution to your problem?

@ndw

This comment has been minimized.

Copy link
Author

ndw commented Feb 25, 2019

Yes. I left the issue open because I think it would be reasonable for the function that creates the journal to automatically create the necessary subdirectories. But if you don't feel like that's worth the trouble, feel free to close this.

If I get tired of typing M-x make-directory RET RET once a month, I may send you a patch 😄 in a month or two.

@bastibe

This comment has been minimized.

Copy link
Owner

bastibe commented Feb 26, 2019

I think "the Emacs way" is to not create directories (if you open a file in a nonexistent directory, Emacs will not create it automatically).

But if this is an issue for you, I'd be happy to accept a pull request akin to org-journal.el:292

@bastibe bastibe closed this Feb 26, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.