Skip to content

Commit

Permalink
fix preview window width
Browse files Browse the repository at this point in the history
  • Loading branch information
excalibur1234 committed Mar 9, 2020
1 parent e378ec0 commit 4344607
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pacui
Original file line number Diff line number Diff line change
Expand Up @@ -1936,7 +1936,7 @@ function func_ls
expac -H M -Q "%12m - \e[1m%n\e[0m" $( pacman -Qq | sort) | sort -n -r | fzf -i --multi --exact --no-sort --ansi --reverse --bind=right:half-page-down,left:half-page-up --margin=4%,1%,1%,1% --info=inline --no-unicode --preview '
echo -e "\e[1mInstalled package info: \e[0m"
pacman -Qi {4} --color always
' "$( if (( $(tput cols) >= 125 )); then echo "--preview-window=right:70%:wrap"; else echo "--preview-window=bottom:60%:wrap"; fi )" --header="Navigate with PageUp / PageDown. ESC to quit." --prompt='Enter string to filter list > ' > /tmp/pacui-ls
' "$( if (( $(tput cols) >= 125 )); then echo "--preview-window=right:60%:wrap"; else echo "--preview-window=bottom:60%:wrap"; fi )" --header="Navigate with PageUp / PageDown. ESC to quit." --prompt='Enter string to filter list > ' > /tmp/pacui-ls
# alternative command to "expac" and "sort": package-query -Qe --rsort 2 -f "%2 - \e[1m%n \e[0m%v" | numfmt --to=iec

#set -e
Expand Down

0 comments on commit 4344607

Please sign in to comment.