working on keybindings

This commit is contained in:
Eric Lay 2023-04-05 19:34:30 -05:00
parent bbe6a10f95
commit 462c15b61b
1 changed files with 6 additions and 6 deletions

12
fpf
View File

@ -12,10 +12,10 @@ Help() {
echo -e "\t-la, --list-aur-installed\n\t\tSearch/List installed packages from AUR\n" echo -e "\t-la, --list-aur-installed\n\t\tSearch/List installed packages from AUR\n"
echo -e "\t-R, -remove\n\t\tSearch/List installed packages for removal\n" echo -e "\t-R, -remove\n\t\tSearch/List installed packages for removal\n"
echo -e "\t-o, --orphans\n\t\tSearch/List orphaned packages for removal\n" echo -e "\t-o, --orphans\n\t\tSearch/List orphaned packages for removal\n"
echo -e "\t-h, --help\n\t\tPrint this help screen\n" echo -e "\t-h, --help\n\t\tPrint this help screen"
echo -e "KEYBINDS\n\tGLOBAL\n\t\tctrl-h\tShows this help text in preview window\n" echo -e "KEYBINDS"
echo -e "\t\tctrl-x\tReturns preview window to default view\n" echo -e " GLOBAL\n\tctrl-h\tShows this help text in preview window\n\tctrl-r\tClears previously selected pkg's from list\n\tctrl-x\tReturns preview window to default view\n"
echo -e "\tAUR\n\t\tctrl-x\tShows PKGBUILD in preview window" echo -e " AUR\n\tctrl-p\tShows PKGBUILD in preview window\n"
} }
# Check things are up to date # Check things are up to date
@ -65,7 +65,7 @@ Official() {
cat /tmp/packages | cat /tmp/packages |
fzf -q "$1" -e -m \ fzf -q "$1" -e -m \
--preview='cat <(pacman -Si {1}) <(pacman -Fl {1} | awk "{print \$2}")' \ --preview='cat <(pacman -Si {1}) <(pacman -Fl {1} | awk "{print \$2}")' \
--preview-window=55%:wrap:border-sharp \ --preview-window=55%:wrap:border-rounded \
--layout=reverse \ --layout=reverse \
--marker='✔ ' \ --marker='✔ ' \
--prompt=' ' \ --prompt=' ' \
@ -146,7 +146,7 @@ Aur() {
--tiebreak=begin,chunk,length \ --tiebreak=begin,chunk,length \
--bind 'focus:transform-preview-label:echo [ {1} ]' \ --bind 'focus:transform-preview-label:echo [ {1} ]' \
--bind=ctrl-h:preview:'/home/ez/Git/fuzzy-pkg-finder/fpf -h' \ --bind=ctrl-h:preview:'/home/ez/Git/fuzzy-pkg-finder/fpf -h' \
# --bind=ctrl-h:transform-preview-label:'echo [ Fuzzy-PKG-Finder ]' \ --bind=ctrl-r:clear-selection \
--bind=ctrl-p:preview:'curl --silent https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD\?h={1}' \ --bind=ctrl-p:preview:'curl --silent https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD\?h={1}' \
--bind=ctrl-x:preview:'cat <(yay -Si {1} 2>/dev/null || paru -Si {1}) <(pacman -Ql {1} 2>/dev/null | awk "{print \$2}")' | --bind=ctrl-x:preview:'cat <(yay -Si {1} 2>/dev/null || paru -Si {1}) <(pacman -Ql {1} 2>/dev/null | awk "{print \$2}")' |
awk '{print $1}' | awk '{print $1}' |