mattn / mattn/memo

Add config setting for memo filepath format

Open
#7 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
1k
Forks
80
PR merge metrics
No merged PRs in 30d

Description

Please allow to configure the memos filename format, and support creation of subdirectories.

For example, create directories for 'year-month/' and filename with 'day-slug.md':

filefmt = "%Y-%m/%d-${SLUG}.md"

💬 Notice the / in format.

Example of current default:

filefmt = "%Y-%m-%d-${SLUG}.md"

I keep my memos in this fashion:

├── 2016-10
│   └── 22-ipsum.md
├── 2016-12
│   ├── 11-foo-bar.md
│   ├── 13-bar-baz.md
│   └── 19-lorem.md
├── 2017-01
│   └── 05-foo.md
└── index.md

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Trace the configuration handling and memo filepath creation first, then verify that the default format remains unchanged while a format such as "%Y-%m/%d-${SLUG}.md" creates the required subdirectories and filename.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.