diff --git a/fzf-vjour b/fzf-vjour index 32ae0dc..5200531 100755 --- a/fzf-vjour +++ b/fzf-vjour @@ -21,6 +21,7 @@ COLLECTION_LABEL_MAX_LEN=0 for label in "${COLLECTION_LABELS[@]}"; do [[ ${#label} -gt $COLLECTION_LABEL_MAX_LEN ]] && COLLECTION_LABEL_MAX_LEN=${#label} done +SYNC_CMD=$(yq '.sync_cmd' < "$CONFIGFILE") __vjournalnew() { python3 -c ' @@ -336,8 +337,8 @@ fi selection=$(__lines | fzf --ansi \ --preview="$0 --preview {}" \ --bind="ctrl-d:execute($0 --delete {})" \ - --bind="ctrl-n:execute($0 --new)" - #--bind='ctrl-s:execute(vdirsyncer sync journals)' \ + --bind="ctrl-n:execute($0 --new)" \ + --bind="ctrl-s:execute($SYNC_CMD)" \ ) if [[ -z "$selection" ]]; then return 0;