.local-bin/docs/notetaker/Usage.md

1 KiB

notetaker

Creates and opens daily markdown notes with YAML frontmatter in Neovim.

Description

This script automates the creation of daily notes by:

  • Creating a markdown file for the current date if it doesn't exist
  • Adding YAML frontmatter with title, author, and date
  • Opening the file in Neovim with automatic timestamp insertion

Usage

./notetaker.sh

File Location

Notes are stored in: ~/Google Drive/My Drive/notes/src/note-YYYY-MM-DD.md

YAML Frontmatter

New notes are created with the following frontmatter:

---
title: "Notes"
author: "Jeremie Fraeys"
date: YYYY-MM-DD
---

Neovim Integration

When opening the note, Neovim is configured to:

  • Jump to the end of the file
  • Insert a timestamped subtitle (e.g., ## 14:30)
  • Enter insert mode ready for typing

Notes

  • Google Drive sync is required for notes to be backed up
  • The script creates the note file if it doesn't exist, or opens the existing one
  • Requires Neovim to be installed and available in PATH