explain some steps

This commit is contained in:
Felix Van der Jeugt 2019-11-16 19:27:53 +01:00
parent 7960995a50
commit 2d11d55ed4
No known key found for this signature in database
GPG Key ID: 58B209295023754D

View File

@ -2,6 +2,7 @@
ledger="${1:-$LEDGER_FILE}" ledger="${1:-$LEDGER_FILE}"
# fuzzy select a transaction title
selection="$(sed -n 's/....-..-..\( [*!]\)\? //p' "$ledger" | sort | uniq | fzf)" selection="$(sed -n 's/....-..-..\( [*!]\)\? //p' "$ledger" | sort | uniq | fzf)"
[ -z "$selection" ] && clear && exit 0 # quit if escaped [ -z "$selection" ] && clear && exit 0 # quit if escaped
@ -26,5 +27,7 @@ x
wq wq
HERE HERE
# review change: open end of the file in vis
vis +\$ "$ledger" vis +\$ "$ledger"
clear clear