headerhunt | ||
template | ||
LICENSE.md | ||
README.md |
Note Template
Note Template is a command-line tool written in Go that helps you create formatted note templates for your text files.
Features
- Create note templates with subject, date, topic, tags, and a sub-header for the notes content.
- Specify the output filename or print the template to stdout.
- Uses ISO 8601 UTC time format for the date.
Usage
template -h
This will display the help message with all available flags:
-file
: The file to write the template to (optional, defaults to "-", which prints to stdout).-subject
: The subject of the note (default: "Subject").-topic
: The topic of the note (default: "Placeholder").-tags
: Comma-separated list of tags for the note (default: "tag1,tag2,tag3").-notes
: Sub-header for the note content (default: "Notes").
All flags except -file
are required.
Example:
Create a note template with the subject "Meeting Notes", topic "Project X Discussion", tags "meeting,projectx", and notes sub-header "Action Items" in the file "meeting_notes.txt":
template -subject="Meeting Notes" -topic="Project X Discussion" -tags="meeting,projectx" -notes="Action Items" -file="meeting_notes.txt"
This will create a new file named "meeting_notes.txt" with the following content:
# Meeting Notes
Date: 2024-09-07 (assuming the command is run today)
Topic: Project X Discussion
Tags: meeting,projectx
-----
### Action Items
Your note content goes here...
HeaderHunt
HeaderHunt is a command-line tool written in Go that helps you search for notes based on specific criteria.
Features
- Search notes based on subject, date, and tags (comma-separated list).
- Process multiple note files at once.
Usage
headerhunt -h
This will display the help message with all available flags:
-subject
: Subject to search for (optional).-date
: ISO 8601 date to search for (optional).-tags
: Comma-separated list of tags to search for (optional).[file1] [file2] ...
: Email files to search (required, you can specify multiple files).
At least one search criterion (-subject, -date, or -tags) must be provided.
Example:
Search for notes with the subject "Meeting" and the tag "work" in the files "inbox.txt" and "archive.txt":
headerhunt -subject="Meeting" -tags="work" inbox.txt archive.txt
This will print the filenames of any notes that match the criteria.