feat: Adds ability to narrow down keys returned for preview-stats.

This commit is contained in:
2025-10-06 18:06:09 -04:00
parent 78e40a9401
commit 7c08fec16b
2 changed files with 31 additions and 9 deletions

View File

@@ -142,8 +142,8 @@ ask_what_to_do_with_selection() {
fzf --style=full --footer="$(action_footer)" \
--delimiter=':' --with-nth=2 \
--header="What should we do with the selected window?" \
--preview-label="[ Description ]" \
--preview="echo -e {1}; echo -e '\n\n\e[35mSelected Window:\e[0m'; $SCRIPTS/hypr/preview-stats window $selected_value;"
--preview-label="[ Description ]" \
--preview="echo -e {1}; echo -e '\n\n\e[35mSelected Window:\e[0m'; $SCRIPTS/hypr/preview-stats window $selected_value \"{title, workspace, address}\";"
)
# Set choice to just the action portion.
choice="${choice#*:}"