|
|
|
@ -6,36 +6,34 @@ declare -r c_red="${esc}[31m"
@@ -6,36 +6,34 @@ declare -r c_red="${esc}[31m"
|
|
|
|
|
declare -r config_file="${XDG_CONFIG_DIR:-$HOME/.config}/fzmp/conf" |
|
|
|
|
declare default_filter='filter_all_songs' |
|
|
|
|
declare track_format='[[[%artist% / ][[(%date%) ]%album% / ][[%track% - ][%title%]]]|%file%]' |
|
|
|
|
declare |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
usage() { |
|
|
|
|
LESS=-FEXR less <<'HELP' |
|
|
|
|
fzmp [OPTIONS] |
|
|
|
|
|
|
|
|
|
OPTIONS: |
|
|
|
|
-A --all search all songs in the library (or F1 when running) |
|
|
|
|
-a --artist search artist then filter by album (or F2 when running) |
|
|
|
|
-p --playlist search the current playlist (or F3 when running) |
|
|
|
|
playlist view has the following keybinds: |
|
|
|
|
> go to the next song in the playlist |
|
|
|
|
< go to the previous song in the playlist |
|
|
|
|
C-d delete the selected songs from the playlist |
|
|
|
|
-h --help print this help |
|
|
|
|
|
|
|
|
|
CONFIGURATION: |
|
|
|
|
a configuration file can be defined at $XDG_CONFIG_DIR (defaults to ~/.config) |
|
|
|
|
configuration options must be defined in the format of key=value |
|
|
|
|
the configuration file reads the following variables: |
|
|
|
|
|
|
|
|
|
default_view= must be 'artists' 'songs' or 'playlist' |
|
|
|
|
full_song_format= a format string to be passed directly to `mpc format -f` in 'playlist' and 'all' views |
|
|
|
|
defaults to '[[[%artist% / ][[(%date%) ]%album% / ][[%track% - ][%title%]]]|%file%]' |
|
|
|
|
for colorized output try: '[[[\e\[32m%artist%\e\[0m / ][\e\[31m[(%date%) ]%album%\e\[0m / ][\e\[34m[%track% - ][%title%]\e\[0m]]|%file%]' |
|
|
|
|
fzf_options= command line options to be passed directly to fzf |
|
|
|
|
changing this will override the default options: '+s -e -i --reverse --cycle' |
|
|
|
|
to use the jump feature of fzf you can try '+s -e -i --reverse --cycle --bind=`:jump' |
|
|
|
|
this can also be overridden with the environment variable FZMP_FZF_OPTIONS |
|
|
|
|
OPTIONS: |
|
|
|
|
-A --all search all songs in the library (or F1 when running) |
|
|
|
|
-a --artist search artist then filter by album (or F2 when running) |
|
|
|
|
-p --playlist search the current playlist (or F3 when running) |
|
|
|
|
playlist view has the following keybinds: |
|
|
|
|
> go to the next song in the playlist |
|
|
|
|
< go to the previous song in the playlist |
|
|
|
|
C-d delete the selected songs from the playlist |
|
|
|
|
-h --help print this help |
|
|
|
|
|
|
|
|
|
CONFIGURATION: |
|
|
|
|
a configuration file can be defined at $XDG_CONFIG_DIR (defaults to ~/.config) |
|
|
|
|
configuration options must be defined in the format of key=value |
|
|
|
|
the configuration file reads the following variables: |
|
|
|
|
|
|
|
|
|
default_view= must be 'artists' 'songs' or 'playlist' |
|
|
|
|
full_song_format= a format string to be passed directly to `mpc format -f` in 'playlist' and 'all' views |
|
|
|
|
defaults to '[[[%artist% / ][[(%date%) ]%album% / ][[%track% - ][%title%]]]|%file%]' |
|
|
|
|
for colorized output try: '[[[\e\[32m%artist%\e\[0m / ][\e\[31m[(%date%) ]%album%\e\[0m / ][\e\[34m[%track% - ][%title%]\e\[0m]]|%file%]' |
|
|
|
|
fzf_options= command line options to be passed directly to fzf |
|
|
|
|
changing this will override the default options: '+s -e -i --reverse --cycle' |
|
|
|
|
to use the jump feature of fzf you can try '+s -e -i --reverse --cycle --bind=`:jump' |
|
|
|
|
this can also be overridden with the environment variable FZMP_FZF_OPTIONS |
|
|
|
|
HELP |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|