Skip to content

Support Markdown jot files#86

Open
matt-dray wants to merge 1 commit into
mainfrom
85-md
Open

Support Markdown jot files#86
matt-dray wants to merge 1 commit into
mainfrom
85-md

Conversation

@matt-dray

Copy link
Copy Markdown
Owner

Close #85.

  • Accepted .txt and .md file paths.
  • Added a test for Markdown files.
  • Noted text file types in README.

Can you give it a try @Lextuga007 and let me know if it works?

@matt-dray matt-dray self-assigned this Jun 18, 2026
@matt-dray matt-dray added documentation Improvements or additions to documentation enhancement New feature or request should MoSCoW priority labels Jun 18, 2026
@matt-dray matt-dray added this to the v0.4.0 milestone Jun 18, 2026
@Lextuga007

Copy link
Copy Markdown

I installed from branch 85-md and changed the existing jot file to another name but when I did a jot I didn't get a prompt for the type of file. Just jot.txt was set up. Even creating a jot.md doesn't get jot to update the md as it creates a new txt.

@matt-dray

Copy link
Copy Markdown
Owner Author

Aha, cheers, this is because jot looks in the config.json file to find the JOT_PATH value. If the file at that path is missing, jot creates it (probably not ideal, so I've added #87).

A better test of this might be to delete/rename your existing config.json file. Then running jot will prompt for a new text file path, which will be recorded into the new config.json. Like this (on macOS):

$ jot hello
📝 Provide a path for the jot file (.txt or .md): ~/Desktop/jot.md
✅ Set JOT_PATH to /Users/mattdray/Desktop/jot.md
✅ Jotted at 2026-06-19 18:19
$ cat ~/Desktop/jot.md
[2026-06-19 18:19] hello

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request should MoSCoW priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can I create and write to a markdown file instead of a text file?

2 participants