Browse Source

pkgsearch: fixes for preview window

pull/6/head
DanielFGray 2 years ago
parent
commit
5a1b1649c7
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      pkgsearch

+ 4
- 4
pkgsearch View File

@@ -80,8 +80,8 @@ install() {

debian() {
fzf --bind='Ctrl-X:toggle-preview' \
--preview='p={}; apt-cache show \${p%% *}' \
--preview-window='top:hidden' \
--preview='p={}; apt-cache show \${p%% *}' \
--preview-window='up:hidden' \
--query="$1" \
< <(apt-cache search '' | sort |
sed -u -r "s|^([^ ]+)|${c_green}\1${c_reset}|") |
@@ -92,10 +92,10 @@ debian() {
arch() {
local search packages
search='pacman'
[[ -n "$1" ]] && search=$(select-from 'pacaur' 'yaourt' 'packer' 'apacman' 'pacman')
[[ -n "$1" ]] && search=$(select_from 'pacaur' 'yaourt' 'packer' 'apacman' 'pacman')
packages=$(fzf --bind='Ctrl-X:toggle-preview' \
--preview="p=\$(cut -d' ' -f2 <<< {}); $search -Si \$p" \
--preview-window='top:hidden' \
--preview-window='up:hidden' \
< <( $search -Ss "$1" |
gawk '{
getline descr;

Loading…
Cancel
Save