Update help, check for mocp before using mocplay

This commit is contained in:
Arun Prakash Jana 2020-02-25 21:37:52 +05:30
parent a780ab1c80
commit ae1d656a27
No known key found for this signature in database
GPG key ID: A75979F35C080412
2 changed files with 2 additions and 2 deletions

View file

@ -99,7 +99,7 @@ handle_pdf() {
} }
handle_audio() { handle_audio() {
if which mocplay >/dev/null 2>&1; then if which mocp >/dev/null 2>&1 && which mocplay >/dev/null 2>&1; then
mocplay "${FPATH}" "opener" >/dev/null 2>&1 mocplay "${FPATH}" "opener" >/dev/null 2>&1
exit 0 exit 0
elif which mpv >/dev/null 2>&1; then elif which mpv >/dev/null 2>&1; then

View file

@ -3973,7 +3973,7 @@ static void show_help(const char *path)
"9g ^A Top%-18c. F5 Toggle hidden\n" "9g ^A Top%-18c. F5 Toggle hidden\n"
"9G ^E End%-21c0 Lock terminal\n" "9G ^E End%-21c0 Lock terminal\n"
"9b ^/ Bookmark key%-12c, Pin CWD\n" "9b ^/ Bookmark key%-12c, Pin CWD\n"
"a1-4 Context 1-4%-8c(B)Tab Cycle context\n" "a1-4 Context 1-4%-7c(Sh)Tab Cycle context\n"
"c/ Filter%-17c^N Nav-as-you-type toggle\n" "c/ Filter%-17c^N Nav-as-you-type toggle\n"
"aEsc Exit prompt%-12c^L Redraw/clear prompt\n" "aEsc Exit prompt%-12c^L Redraw/clear prompt\n"
"c? Help, conf%-14c+ Toggle proceed on open\n" "c? Help, conf%-14c+ Toggle proceed on open\n"