You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 15, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: pacui
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -688,7 +688,7 @@ function func_t
688
688
else
689
689
pacman -Si {1} --color always # do this, if package is not locally installed
690
690
fi
691
-
'"$(if(( $(tput cols) >=120));thenecho"--preview-window=right:55%:wrap";elseecho"--preview-window=bottom:55%:wrap";fi)" --header="Press ENTER to show dependency tree. ESC to quit." --prompt='Enter string to filter list > '| awk '{print $1}')"
691
+
'"$(if(( $(tput cols) >=120));thenecho"--preview-window=right:55%:wrap";elseecho"--preview-window=bottom:55%:wrap";fi)" --header="ENTER for dependency tree. ESC to quit." --prompt='Enter string to filter list > '| awk '{print $1}')"
'"$(if(( $(tput cols) >=120));thenecho"--preview-window=right:55%:wrap";elseecho"--preview-window=bottom:55%:wrap";fi)" --header="Press ENTER to show reverse dependency tree. ESC to quit." --prompt='Enter string to filter list > '| awk '{print $1}')"
735
+
'"$(if(( $(tput cols) >=120));thenecho"--preview-window=right:55%:wrap";elseecho"--preview-window=bottom:55%:wrap";fi)" --header="ENTER for reverse dependency tree. ESC to quit." --prompt='Enter string to filter list > '| awk '{print $1}')"
736
736
737
737
pacui_tty_clean # clear terminal
738
738
@@ -773,7 +773,7 @@ function func_l
773
773
else
774
774
pacman -Si {1} --color always # do this, if package is not locally installed
775
775
fi
776
-
'"$(if(( $(tput cols) >=120));thenecho"--preview-window=right:55%:wrap";elseecho"--preview-window=bottom:55%:wrap";fi)" --header="Press ENTER to list files. ESC to quit." --prompt='Enter string to filter list > '| awk '{print $1}')"
776
+
'"$(if(( $(tput cols) >=120));thenecho"--preview-window=right:55%:wrap";elseecho"--preview-window=bottom:55%:wrap";fi)" --header="ENTER to list files. ESC to quit." --prompt='Enter string to filter list > '| awk '{print $1}')"
777
777
778
778
pacui_tty_clean # clear terminal
779
779
@@ -785,7 +785,7 @@ function func_l
785
785
786
786
# "pacman -Ql" shows sometimes more files than "pacman -Fl". therefore, both commands have to be used!
787
787
# take the output of command "pacman -Qlq $pkg" and make it searchable with fzf. for all used fzf flags see "man fzf". store all marked lines in file /tmp/pacui-list.
788
-
pacman -Ql "$pkg" --color always 2>/dev/null | grep -a -v "/$"| awk '{print $NF}'| fzf -i --multi --exact --no-sort --query="usr/bin/" --reverse --margin=4%,1%,1%,1% --inline-info --header="List of files of local package \"$pkg\". Press ESC or CTRL+C to quit." --prompt='Manipulate string to filter displayed file paths > '> /tmp/pacui-l
788
+
pacman -Ql "$pkg" --color always 2>/dev/null | grep -a -v "/$"| awk '{print $NF}'| fzf -i --multi --exact --no-sort --query="usr/bin/" --reverse --margin=4%,1%,1%,1% --inline-info --header="List of files of local package \"$pkg\". Press ESC to quit." --prompt='Manipulate string to filter list > '> /tmp/pacui-l
789
789
790
790
else
791
791
@@ -799,7 +799,7 @@ function func_l
799
799
# grep -a is used, because "pacman -Fl --machinereadable" returns a file starting with non-text data. the "-a" option ignores that.
800
800
# the awk command is used to format output: "-F '\0'" set "\0" as separator. this makes it possible to easily use $1,$2,$3,$4 as syntax later.
pacman -Fl --machinereadable "$pkg"| grep -a -v "/$"| awk -F '\0''{print $4}'| fzf -i --multi --exact --no-sort --query="usr/bin/" --reverse --margin=4%,1%,1%,1% --inline-info --header="List of files of remote package \"$pkg\". Press ESC or CTRL+C to quit." --prompt='Manipulate string to filter displayed file paths > '> /tmp/pacui-l
802
+
pacman -Fl --machinereadable "$pkg"| grep -a -v "/$"| awk -F '\0''{print $4}'| fzf -i --multi --exact --no-sort --query="usr/bin/" --reverse --margin=4%,1%,1%,1% --inline-info --header="List of files of remote package \"$pkg\". Press ESC to quit." --prompt='Manipulate string to filter list > '> /tmp/pacui-l
803
803
804
804
fi
805
805
@@ -875,7 +875,7 @@ function func_s
875
875
pacui_tty_clean # clear terminal
876
876
877
877
# display results from file /tmp/pacui-search in fzf.
878
-
cat /tmp/pacui-search | fzf -i --multi --exact --no-sort --ansi --reverse --margin=4%,1%,1%,1% --inline-info --header="Package file names (with path) containing \"$file\". Press ESC or CTRL+C to quit." --prompt='Enter string to filter displayed package names and file paths > '> /tmp/pacui-s
878
+
cat /tmp/pacui-search | fzf -i --multi --exact --no-sort --ansi --reverse --margin=4%,1%,1%,1% --inline-info --header="Package file names and paths containing \"$file\". Press ESC to quit." --prompt='Enter string to filter list > '> /tmp/pacui-s
879
879
880
880
pacui_tty_clean # clear terminal
881
881
@@ -924,7 +924,7 @@ function func_b
924
924
# when fzf quits, only selected package names (including the words " installed/upgraded/removed/downgraded") are saved to variable $pacui_cache_packages
925
925
# the space in front of "installed" prevents reinstallations being displayed (otherwise, they would be removed)! the ] in "] installed" prevents config file changes being displayed, e.g. "warning: /etc/sddm.conf installed as /etc/sddm.conf.pacnew"
926
926
# awk '{ $3="" ; $5="\033[1m" $5 "\033[0m" ; print }': this simply prints everything, but hides the third column and marks the 5th column as bold text.
927
-
pacui_cache_packages="$( tail -5000 /var/log/pacman.log | grep "] installed\|removed\|upgraded\|downgraded"| awk '{ $3="" ; $5="\t\033[1m" $5 " \033[0m" ; print }'| fzf -i --multi --exact --no-sort --select-1 --ansi --query="$argument_input" --cycle --tac --reverse --margin="4%,1%,1%,2%" --inline-info --header="TAB key to (un)select. ENTER to roll back. ESC to quit." --prompt='Enter string to filter displayed list of recent Pacman changes > '| sed 's/ ([^)]*)//g'| awk '{print $3 " " $4}')"
927
+
pacui_cache_packages="$( tail -5000 /var/log/pacman.log | grep "] installed\|removed\|upgraded\|downgraded"| awk '{ $3="" ; $5="\t\033[1m" $5 " \033[0m" ; print }'| fzf -i --multi --exact --no-sort --select-1 --ansi --query="$argument_input" --cycle --tac --reverse --margin="4%,1%,1%,2%" --inline-info --header="Press TAB key to (un)select. ENTER to roll back. ESC to quit." --prompt='Enter string to filter displayed list of recent Pacman changes > '| sed 's/ ([^)]*)//g'| awk '{print $3 " " $4}')"
cat {1} # {1} is the first field of the marked line in fzf. the file given by {1} is shown in the preview window.
1442
-
'"$(if(( $(tput cols) >=120));thenecho"--preview-window=right:55%:wrap";elseecho"--preview-window=bottom:55%:wrap";fi)" --header="ENTER to edit file in text editor. ESC to quit." --prompt='Enter string to filter list of files > ')"
1442
+
'"$(if(( $(tput cols) >=120));thenecho"--preview-window=right:55%:wrap";elseecho"--preview-window=bottom:55%:wrap";fi)" --header="ENTER to edit file in text editor. ESC to quit." --prompt='Enter string to filter list > ')"
0 commit comments