Sub topic 12
Templates and Simple Automation
Assume you already have one place where ideas enter your system, such as a notebook, notes app, or folder of Markdown files. You also need basic comfort with a text editor and a shell, which is a program for entering commands. Automation should support your capture habit, not become a second project.
Start with a small entry template
A template is a fixed structure that reminds you what to record. It prevents a short note from becoming mysterious later. Keep the template small enough to complete in a minute.
# Idea: Recursion explained with a family tree
- Captured: 2026-11-28
- Tags: #teaching #programming
- Status: inbox
## The idea
Use ancestors as an example of a function that calls itself on a smaller input.
## Why it might matter
Most recursion examples use factorials, which many learners find abstract.
## Next step
Sketch a small tree and write the base case in one sentence.The Status field distinguishes an unreviewed idea from one you are developing, using, or archiving. The Next step field is optional for early capture, but it is useful when an idea needs a small experiment.
Do not add fields merely because they might be useful. Every field adds work. If you repeatedly ignore a field, remove it.
Automate the fastest capture path
For a plain-text system, a shell function can append a dated line to one inbox file. A shell function is a named command that runs a group of shell instructions.
# Add to ~/.bashrc or ~/.zshrc
idea() {
mkdir -p "$HOME/ideas"
printf '%s | %s\n' "$(date +%Y-%m-%d)" "$*" >> "$HOME/ideas/inbox.md"
}
# Usage:
# idea "Short guide on explaining recursion with a family tree"The command creates the ideas directory if needed and appends one line to inbox.md. The >> operator appends instead of replacing the file. The "$*" value collects all words passed to the command as one description.
This shortcut is useful for a fleeting thought, but it does not replace a full entry. During review, expand worthwhile lines into the template. You can also change the function to open a new file in your editor, but test that workflow before relying on it.
Add lightweight retrieval
Organization becomes useful when it helps you find ideas without forcing you to classify every thought immediately. A small script can search Markdown files for a tag.
import sys
from pathlib import Path
if len(sys.argv) != 2:
raise SystemExit("Usage: python find_tag.py TAG")
tag = sys.argv[1]
for path in sorted(Path("ideas").glob("*.md")):
lines = path.read_text(encoding="utf-8").splitlines()
for number, line in enumerate(lines, start=1):
if f"#{tag}" in line:
print(f"{path}:{number}: {line}")Save this as find_tag.py beside the ideas directory. Run it with:
python find_tag.py teachingThe script prints each matching file, line number, and line. It uses a deliberately simple rule: a tag is any exact string such as #teaching. Agree on spelling before your tag list grows. Otherwise, #programming, #programmer, and #code may divide related ideas into separate searches.
Connect automation to review
Automation should make the review loop visible:
Use templates when context matters and shortcuts when speed matters. Review both kinds of entries together. A script can find candidates, but only your judgment can decide whether an idea deserves more attention.
Common automation errors
- Creating several inboxes because each tool feels convenient.
- Adding tags automatically without checking whether they are meaningful.
- Building a database before you know how you review ideas.
- Treating a script’s output as a decision rather than a list of candidates.
- Failing to back up the idea directory.
Exercise
When should a quick shell capture become a full idea entry?
Show answer
Expand it during review when the idea seems useful, unclear, or likely to be forgotten. Add its context, reason, and next step before deciding whether to develop it.