Support for sync key
ctrl-s
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user