chezmoi/bin/executable_,drive
kjuulh ef2da35882
Add bin/,cd
Add bin/,drive
Add bin/,review
Add bin/,review-renovate
2023-07-24 12:41:43 +02:00

19 lines
330 B
Bash

#!/bin/bash
VAULT="$HOME/Documents/vaults/kjuulh/"
DRIVE="/Users/kah/Library/CloudStorage/GoogleDrive-kah@lunar_app/My Drive/Vault"
set -e
files=$(fd . --full-path "$VAULT" -e md)
file=$(echo "$files" | fzf)
file_name=$(basename "$file")
echo "chosen file: $file_name"
pandoc -s "$file" -o "$DRIVE/${file_name%.md}.docx"