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

Allow custom file extensions for directory-based journal #1289

Open
thw26 opened this issue Jul 5, 2021 · 1 comment · May be fixed by #1789
Open

Allow custom file extensions for directory-based journal #1289

thw26 opened this issue Jul 5, 2021 · 1 comment · May be fixed by #1789
Labels
enhancement New feature or request 📌 This can't go stale
Milestone

Comments

@thw26
Copy link

thw26 commented Jul 5, 2021

Support Request

Environment

jrnl: v2.7
Python: 3.9.5 (default, May 24 2021, 12:50:35) 
[GCC 11.1.0]
OS: Linux 5.10.42-1-MANJARO
pipx

What are you trying to do?

I have my journal saving in a directory instead of a monolithic file. I'd like the new entries to be saved with a .md extension. What is the proper way to set this in the config file?

What have you tried?

Setting a yaml option as follows:

format: markdown
format: md

Other Information

@thw26 thw26 added 🆕 New! support End user support labels Jul 5, 2021
@wren
Copy link
Member

wren commented Jul 8, 2021

This is a very good question, and I'm afraid there's not a good answer right now. The directory-based storage format for jrnl is currently very rigid in its structure, and that means there's no good way to change the file extension (or the directory structure) right now.

One thing that might help, depending on what you're looking for, is to add a template with a .md file extension (i.e. add template: some-file.md. That will get jrnl to use md for the temp file sent to your editor. That would help with syntax highlighting in your editor, but wouldn't change the name of the actual journal files, though.

I'm going to change this to a feature request, but I think this is a good point to bring up. I honestly just never thought of this, so thank you for bringing it up!

@wren wren added enhancement New feature or request and removed support End user support labels Jul 8, 2021
@micahellison micahellison removed the 🆕 New! label Jul 10, 2021
@micahellison micahellison added this to the Backlog milestone Jul 10, 2021
@wren wren added the 📌 This can't go stale label Jul 31, 2021
@micahellison micahellison changed the title Change File Extension When Saving a Journal to Directory Allow custom file extensions for directory-based journal Jul 31, 2021
@thw26 thw26 linked a pull request Sep 7, 2023 that will close this issue
4 tasks
thw26 pushed a commit to thw26/jrnl that referenced this issue Sep 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request 📌 This can't go stale
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants