bugfixes and improved themeing support
This commit is contained in:
35
src/main.sh
35
src/main.sh
@@ -128,6 +128,11 @@ EOF
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ "${1:-}" = "--refresh-view" ]; then
|
||||
precompute_view
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Set window title
|
||||
printf '\033]0;%s\007' "$WINDOW_TITLE"
|
||||
|
||||
@@ -219,7 +224,7 @@ $KEYS_FILTER_LOCAL:transform:$0 --fzf-key {2} {3} {4}" \
|
||||
--delimiter="\t" \
|
||||
--prompt="$SEARCH_PROMPT" \
|
||||
--margin="5%,20%" \
|
||||
--bind="$KEYS_FILTER_LOCAL:change-query($FORMAT_LOCAL )" \
|
||||
--bind="$KEYS_FILTER_LOCAL:change-query('$QUERY_LOCAL' )" \
|
||||
--accept-nth="{3}" \
|
||||
--with-nth="{1}" || true
|
||||
)
|
||||
@@ -239,18 +244,22 @@ $KEYS_FILTER_LOCAL:transform:$0 --fzf-key {2} {3} {4}" \
|
||||
--with-nth="{1}" >/dev/null
|
||||
;;
|
||||
*) # Main instance
|
||||
$FZF \
|
||||
--reverse \
|
||||
--bind="start:reload:$0 --fzf-reload" \
|
||||
--bind="load:transform:$0 --fzf-load" \
|
||||
--bind="change:execute-silent($0 --fzf-change &)+reload:$0 --fzf-change-reload" \
|
||||
--bind="$KEYS_ALL:transform:$0 --fzf-key {2} {3} {4}" \
|
||||
--info="inline-right" \
|
||||
--info-command="$0 --fzf-info" \
|
||||
--preview-window="right,25%,border-left,wrap,<30(hidden)" \
|
||||
--preview="$0 --internal-preview-artist {3}" \
|
||||
--delimiter="\t" \
|
||||
--with-nth="{1}" >/dev/null
|
||||
sel=$(
|
||||
$FZF \
|
||||
--reverse \
|
||||
--bind="start:reload:$0 --fzf-reload" \
|
||||
--bind="load:transform:$0 --fzf-load" \
|
||||
--bind="change:execute-silent($0 --fzf-change &)+reload:$0 --fzf-change-reload" \
|
||||
--bind="$KEYS_ALL:transform:$0 --fzf-key {2} {3} {4}" \
|
||||
--expect="ctrl-c" \
|
||||
--info="inline-right" \
|
||||
--info-command="$0 --fzf-info" \
|
||||
--preview-window="right,25%,border-left,wrap,<30(hidden)" \
|
||||
--preview="$0 --internal-preview-artist {3}" \
|
||||
--delimiter="\t" \
|
||||
--with-nth="{1}" || true
|
||||
)
|
||||
[ "$(echo "$sel" | head -1)" = "ctrl-c" ] && break
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
Reference in New Issue
Block a user