notes

package
v1.4.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package notes handles the creation, opening, and retrieval of markdown notes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNote

func NewNote(name, tmplPath string) error

NewNote creates a new note file and opens it in the configured editor. It returns an error if any step (creation, template application, or opening) fails.

func OpenNote

func OpenNote(file string) error

OpenNote opens the specified file in the configured editor. It handles special logic for Neovim to jump to the content line.

func RandomNote

func RandomNote(path string) (string, error)

RandomNote selects a random markdown file from the notes directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL