Add support for boomer file names with spaces (#716)

This commit is contained in:
Marc 2020-06-29 11:03:55 -03:00 committed by GitHub
parent 49b858c267
commit a78246219a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,9 +4,9 @@
# usually the pdf of a compiled document. I find this useful especially
# running from vim.
basename="$(echo "$1" | sed 's/\.[^\/.]*$//')"
basename="$(echo "${*}" | sed 's/\.[^\/.]*$//')"
case "$1" in
case "${*}" in
*.tex|*.m[dse]|*.[rR]md|*.mom|*.[0-9]) setsid -f xdg-open "$basename".pdf >/dev/null 2>&1 ;;
*.html) setsid -f "$BROWSER" "$basename".html >/dev/null 2>&1 ;;
*.sent) setsid -f sent "$1" >/dev/null 2>&1 ;;