mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Package manager usability improvements (#569)
* better pkg manager with shotcuts * removed ctrl-d, it conflict with terminal * reveal keybinds to user * We don't need yayf any more now we have full integration in Omarchy menu --------- Co-authored-by: David Heinemeier Hansson <david@hey.com>
This commit is contained in:
committed by
GitHub
parent
f06dd90429
commit
f6d5df5a89
@@ -1,6 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
pkg_name=$(yay -Slq | fzf --multi --preview 'yay -Sii {1}' --preview-window=down:75%)
|
||||
fzf_args=(
|
||||
--multi
|
||||
--preview 'echo "alt-p: toggle preview, alt-j/k: scroll, F11: maxime"; echo; yay -Sii {1}'
|
||||
--preview-window 'down:65%:wrap'
|
||||
--bind 'alt-p:toggle-preview'
|
||||
--bind 'alt-d:preview-half-page-down,alt-u:preview-half-page-up'
|
||||
--bind 'alt-k:preview-up,alt-j:preview-down'
|
||||
)
|
||||
|
||||
pkg_name=$(yay -Slq | fzf "${fzf_args[@]}")
|
||||
|
||||
if [[ -n "$pkg_name" ]]; then
|
||||
yay -Sy --noconfirm "$pkg_name"
|
||||
|
||||
Reference in New Issue
Block a user