Re-add the ability to view or edit the latest zet

Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
Oliver Davies 2025-09-30 02:09:40 +01:00
parent 5a64827825
commit df9fa52c21
3 changed files with 37 additions and 10 deletions

View file

@ -82,6 +82,12 @@ func GetAllZets() []int {
return sorted
}
func GetLatestZet() int {
z := GetAllZets()
return z[len(z)-1]
}
func SearchZets(query string) []int {
zets, err := execGitCommand("grep", "-i", "--name-only", "--word-regex", query)