File : Play all files by default.

This commit is contained in:
Dmitry Voronin 2024-01-15 15:55:58 +03:00
parent f5d92803d9
commit 1b1ce9d545
2 changed files with 7 additions and 4 deletions

View file

@ -4,8 +4,11 @@ function o() {
xdg-open "${@}" xdg-open "${@}"
} }
# Play media file from CLI. # Play media file from CLI. All files by default.
# Usage: play <FILE> # Usage: play [FILE]
function play() { function play() {
flatpak run io.mpv.Mpv --no-audio-display ${*} local targets=${*}
[[ "${targets}" = "" ]] && targets=$(_ls_file)
flatpak run io.mpv.Mpv --no-audio-display ${targets}
} }

View file

@ -150,7 +150,7 @@ Command|Description
Command|Description Command|Description
---|--- ---|---
`o <FILE>`|Open file/dir in GUI. `o <FILE>`|Open file/dir in GUI.
`play <FILE>`|Play media file from CLI. `play [FILE]`|Play media file from CLI. All files by default.
## Find. ## Find.