diff --git a/zet b/zet index 43dd27a..e2393db 100755 --- a/zet +++ b/zet @@ -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 "$@"