Add edit command to edit a zettel

Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
Oliver Davies 2025-09-24 19:35:56 +01:00
parent 1986b9deca
commit 125aa05e0d
5 changed files with 80 additions and 0 deletions

View file

@ -12,6 +12,12 @@ import (
"strings"
)
func EditZet(id int) {
zetPath := path.Join(GetZetDir(), strconv.Itoa(id), "index.adoc")
EditFile(zetPath)
}
func GetAllZets() []int {
zets, err := execGitCommand("ls-files")