File : Play all files by default.
This commit is contained in:
parent
f5d92803d9
commit
1b1ce9d545
|
@ -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}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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.
|
||||||
|
|
||||||
|
|
Reference in a new issue