Skip to content

Add option to make a new note with name based on iso8601 date #13

Description

@MatthewCroughan

Essentially what I want is a "I don't care about the name" option.

Before finding this, I was making my own script to manage notes that was going to become a bit non standard. I'm glad I've found this project so I can contribute to it. I don't know GO so this might take a bit longer for me, but I'll get around to it.

My premise is simple, in my .bashrc I added the following:

mknote() {
    vim -- "$(date --date=$1 --iso-8601)-notes.md"
}

This means that if I type mknote today it will execute vim 2020-07-07-notes.md at the time of writing. Similarly, we could get yesterday's file and date. It's a very simple idea, but very powerful for those that do not care so much about the note name because of grep, fzf and other functionality.

Storing the filenames as --iso8601 has many benefits, namely that it is alphabetically sortable.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions