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
|
for label in "${COLLECTION_LABELS[@]}"; do
|
||||||
[[ ${#label} -gt $COLLECTION_LABEL_MAX_LEN ]] && COLLECTION_LABEL_MAX_LEN=${#label}
|
[[ ${#label} -gt $COLLECTION_LABEL_MAX_LEN ]] && COLLECTION_LABEL_MAX_LEN=${#label}
|
||||||
done
|
done
|
||||||
|
SYNC_CMD=$(yq '.sync_cmd' < "$CONFIGFILE")
|
||||||
|
|
||||||
__vjournalnew() {
|
__vjournalnew() {
|
||||||
python3 -c '
|
python3 -c '
|
||||||
@@ -336,8 +337,8 @@ fi
|
|||||||
selection=$(__lines | fzf --ansi \
|
selection=$(__lines | fzf --ansi \
|
||||||
--preview="$0 --preview {}" \
|
--preview="$0 --preview {}" \
|
||||||
--bind="ctrl-d:execute($0 --delete {})" \
|
--bind="ctrl-d:execute($0 --delete {})" \
|
||||||
--bind="ctrl-n:execute($0 --new)"
|
--bind="ctrl-n:execute($0 --new)" \
|
||||||
#--bind='ctrl-s:execute(vdirsyncer sync journals)' \
|
--bind="ctrl-s:execute($SYNC_CMD)" \
|
||||||
)
|
)
|
||||||
if [[ -z "$selection" ]]; then
|
if [[ -z "$selection" ]]; then
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user