Closed j178 closed 1 year ago
Some usage examples:
editor: command: open args: [ '-a', 'Goland.app', '{{.AllFiles}}' ]
editor: command: /usr/local/bin/opener.sh args: ['{{.AllFiles}}' ]
/usr/local/bin/opener.sh:
#!/bin/bash if [ $# -gt 0 ]; then for filepath in "$@" do file_extension="${filepath##*.}" case "$file_extension" in md) code "$filepath" & ;; *) vim -n "$filepath" & ;; esac done else echo "No file paths provided" exit 1 fi
Some usage examples:
/usr/local/bin/opener.sh: