Add zet latest
to edit the latest zettel
Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
parent
0db0f766d4
commit
4e76760bb6
1 changed files with 6 additions and 0 deletions
6
zet
6
zet
|
@ -12,6 +12,7 @@ Usage:
|
||||||
zet edit|e QUERY... : Search for a zettel and edit it
|
zet edit|e QUERY... : Search for a zettel and edit it
|
||||||
zet help|h : Show this help screen
|
zet help|h : Show this help screen
|
||||||
zet id QUERY... : Search for a zettel and display its ID
|
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 print|p QUERY... : Search for a zettel and print it
|
||||||
zet push : Push changes
|
zet push : Push changes
|
||||||
zet view|v QUERY... : Search for a zettel and view it
|
zet view|v QUERY... : Search for a zettel and view it
|
||||||
|
@ -149,6 +150,11 @@ main() {
|
||||||
cmd_id "$@"
|
cmd_id "$@"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
latest)
|
||||||
|
ZID="$(get_latest_zettel)"
|
||||||
|
edit_zet "$ZID"
|
||||||
|
;;
|
||||||
|
|
||||||
links | l)
|
links | l)
|
||||||
shift 1
|
shift 1
|
||||||
cmd_links "$@"
|
cmd_links "$@"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue