Add zet latest to edit the latest zettel

Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
Oliver Davies 2025-09-22 19:14:58 +01:00
parent 0db0f766d4
commit 4e76760bb6

6
zet
View file

@ -12,6 +12,7 @@ Usage:
zet edit|e QUERY... : Search for a zettel and edit it
zet help|h : Show this help screen
zet id QUERY... : Search for a zettel and display its ID
zet latest : Edit the latest zettel
zet print|p QUERY... : Search for a zettel and print it
zet push : Push changes
zet view|v QUERY... : Search for a zettel and view it
@ -149,6 +150,11 @@ main() {
cmd_id "$@"
;;
latest)
ZID="$(get_latest_zettel)"
edit_zet "$ZID"
;;
links | l)
shift 1
cmd_links "$@"