mcom: add preview alias for show command

pull/172/head
Duncan Overbruck 4 years ago committed by Leah Neukirchen
parent 2636f5127d
commit dc15a75b63

@ -1,4 +1,4 @@
.Dd August 27, 2019 .Dd February 5, 2020
.Dt MCOM 1 .Dt MCOM 1
.Os .Os
.Sh NAME .Sh NAME
@ -126,6 +126,9 @@ on the draft, and print the result of
Re-edit the draft. Re-edit the draft.
.It Ic d .It Ic d
Delete the draft and quit. Delete the draft and quit.
.It Ic p
Preview the draft, using
.Xr mshow 1 .
.El .El
.Sh ENVIRONMENT .Sh ENVIRONMENT
.Bl -tag -width Ds .Bl -tag -width Ds

@ -510,7 +510,7 @@ while :; do
mshow -t "$draftmime" mshow -t "$draftmime"
c= c=
;; ;;
show) p|preview|show)
if [ -e "$draftmime" ]; then if [ -e "$draftmime" ]; then
mshow "$draftmime" mshow "$draftmime"
else else
@ -519,7 +519,7 @@ while :; do
c= c=
;; ;;
*) *)
printf 'What now? (%s[s]end, [c]ancel, [d]elete, [e]dit, [m]ime, sign, encrypt) ' "${automime:+mime and }" printf 'What now? (%s[s]end, [c]ancel, [d]elete, [e]dit, [m]ime, [p]review, sign, encrypt) ' "${automime:+mime and }"
read -r c read -r c
;; ;;
esac esac

Loading…
Cancel
Save