Browse Source

pkgsearch: fixes for preview window

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() {
80 80
 
81 81
 debian() {
82 82
   fzf --bind='Ctrl-X:toggle-preview' \
83
-        --preview='p={}; apt-cache show \${p%% *}' \
84
-        --preview-window='top:hidden' \
83
+      --preview='p={}; apt-cache show \${p%% *}' \
84
+      --preview-window='up:hidden' \
85 85
       --query="$1" \
86 86
     < <(apt-cache search '' | sort |
87 87
       sed -u -r "s|^([^ ]+)|${c_green}\1${c_reset}|") |
@@ -92,10 +92,10 @@ debian() {
92 92
 arch() {
93 93
   local search packages
94 94
   search='pacman'
95
-  [[ -n "$1" ]] && search=$(select-from 'pacaur' 'yaourt' 'packer' 'apacman' 'pacman')
95
+  [[ -n "$1" ]] && search=$(select_from 'pacaur' 'yaourt' 'packer' 'apacman' 'pacman')
96 96
   packages=$(fzf --bind='Ctrl-X:toggle-preview' \
97 97
       --preview="p=\$(cut -d' ' -f2 <<< {}); $search -Si \$p" \
98
-      --preview-window='top:hidden' \
98
+      --preview-window='up:hidden' \
99 99
     < <( $search -Ss "$1" |
100 100
       gawk '{
101 101
         getline descr;

Loading…
Cancel
Save