load only onnce
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
# Preset filters for different views. These filters are associated to key
|
# Preset filters for different views. These filters are associated to key
|
||||||
# bindings (see `src/sh/keys.sh`), and are configurable through a configuration
|
# bindings (see `src/sh/keys.sh`), and are configurable through a configuration
|
||||||
# file (see `src/sh/config.sh`).
|
# file (see `src/sh/config.sh`).
|
||||||
|
if [ ! "${FILTER_LOADED:-}" ]; then
|
||||||
# The `QUERY_LOCAL` filter is associated with the keys `KEYS_FILTER_LOCAL`. It
|
# The `QUERY_LOCAL` filter is associated with the keys `KEYS_FILTER_LOCAL`.
|
||||||
# is used to hide all entries that are not available locally (see
|
# It is used to hide all entries that are not available locally (see
|
||||||
# `src/sh/query.sh` for details and the relevant methods)
|
# `src/sh/query.sh` for details and the relevant methods)
|
||||||
QUERY_LOCAL="${QUERY_LOCAL:-"$(printf "'%s'" "$FORMAT_LOCAL" | __clean_filter)"}"
|
QUERY_LOCAL="${QUERY_LOCAL:-"$(printf "'%s'" "$FORMAT_LOCAL" | __clean_filter)"}"
|
||||||
|
|
||||||
@@ -18,9 +18,10 @@ if printf "$RV_FMT" | grep -q "<<status>>"; then
|
|||||||
fi
|
fi
|
||||||
export QUERY_LOCAL
|
export QUERY_LOCAL
|
||||||
|
|
||||||
# Here starts the list of all filters (grouped per view) that are associated to
|
# Here starts the list of all filters (grouped per view) that are associated
|
||||||
# the keys `KEYS_FILTER_0` - `KEYS_FILTER_9`. The filters in the `F_1_<view>`
|
# to the keys `KEYS_FILTER_0` - `KEYS_FILTER_9`. The filters in the
|
||||||
# variable are automatically applied whenever the given view is entered.
|
# `F_1_<view>` variable are automatically applied whenever the given view is
|
||||||
|
# entered.
|
||||||
F_1_VIEW_ARTIST="${F_1_VIEW_ARTIST:-"!'$q_has_seconary'"}"
|
F_1_VIEW_ARTIST="${F_1_VIEW_ARTIST:-"!'$q_has_seconary'"}"
|
||||||
F_2_VIEW_ARTIST="${F_2_VIEW_ARTIST:-"'$q_album'"}"
|
F_2_VIEW_ARTIST="${F_2_VIEW_ARTIST:-"'$q_album'"}"
|
||||||
F_3_VIEW_ARTIST="${F_3_VIEW_ARTIST:-"'$q_ep'"}"
|
F_3_VIEW_ARTIST="${F_3_VIEW_ARTIST:-"'$q_ep'"}"
|
||||||
@@ -85,3 +86,6 @@ F_9_LIST_ALBUMS="${F_9_LIST_ALBUMS:-}"
|
|||||||
export F_1_LIST_ALBUMS F_2_LIST_ALBUMS F_3_LIST_ALBUMS F_4_LIST_ALBUMS \
|
export F_1_LIST_ALBUMS F_2_LIST_ALBUMS F_3_LIST_ALBUMS F_4_LIST_ALBUMS \
|
||||||
F_5_LIST_ALBUMS F_6_LIST_ALBUMS F_7_LIST_ALBUMS F_8_LIST_ALBUMS \
|
F_5_LIST_ALBUMS F_6_LIST_ALBUMS F_7_LIST_ALBUMS F_8_LIST_ALBUMS \
|
||||||
F_9_LIST_ALBUMS
|
F_9_LIST_ALBUMS
|
||||||
|
|
||||||
|
export FILTER_LOADED=1
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user