You are not logged in.

#1 2023-12-19 08:35:13

twelvenight
Member
Registered: 2023-10-22
Posts: 22

yay -S cannot complete the content

When I use yay -S ... then tab to see the completion,no package but only package group can be find

◆ ~ ❯❯❯ yay -S c
chaotic-mesa-git  (Package Group)  coin-or  (Package Group)  cutefish  (Package Group)
clap-plugins      (Package Group)  coq      (Package Group) 

Offline

#2 2023-12-19 08:50:20

seth
Member
Registered: 2012-09-03
Posts: 51,608

Re: yay -S cannot complete the content

Tab completion is a feature of your shell, so it's gonna be very reelvant here…
From the prompt I assume it's fish?

There might be more, recently kitty went on the record for randomly aliasing commands to prefix sudo and breaking completion in the course.
So you wanna comment on that as well (specifically "type yay")

Offline

#3 2023-12-19 09:39:56

twelvenight
Member
Registered: 2023-10-22
Posts: 22

Re: yay -S cannot complete the content

seth wrote:

Tab completion is a feature of your shell, so it's gonna be very reelvant here…
From the prompt I assume it's fish?

There might be more, recently kitty went on the record for randomly aliasing commands to prefix sudo and breaking completion in the course.
So you wanna comment on that as well (specifically "type yay")

But my pacman works fun and I also tried in konsole,the same result.Actually,I use zsh normally,but in zsh,the completion even have nothing.Also,the other completion in yay is well,only -S broken,so I think my yay package may something wrong?I also tried reinstall it,but the problem can not be solve

◆ ~ ❯❯❯ sudo pacman -S do
docbook2x               (Package)  dosbox-x                           (Package)
docbook5-xml            (Package)  dosbox-x-debug                     (Package)
docbook-dsssl           (Package)  dosbox-x-git                       (Package)
docbook-mathml          (Package)  dosbox-x-git-debug                 (Package)
docbook-sgml            (Package)  dosemu                             (Package)
docbook-sgml31          (Package)  dosfstools                         (Package)
docbook-utils           (Package)  dot2tex                            (Package)
docbook-xml             (Package)  dotconf                            (Package)

Offline

#4 2023-12-19 09:41:28

seth
Member
Registered: 2012-09-03
Posts: 51,608

Re: yay -S cannot complete the content

The completion scripts for pacman and yay are not the same…
Please address the questions in #2

Edit: https://github.com/Jguer/yay/tree/next/completions

Last edited by seth (2023-12-19 09:42:37)

Offline

Board footer

Powered by FluxBB