-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Package Manager Integrations #17
Comments
@SigmaSquadron iirc, nixos comes with a |
The default To query certain files inside Nix Store paths, one could leverage |
I think they are doing some fuzzy searching and apparently not a HashMap based index. Anyway, it's an optional feature we can enable if |
@SigmaSquadron Does this work? Lines 78 to 87 in bf096d2
|
The command syntax should be just |
I should also note that |
pay-respects itself retrieves the suggestion in less than 50ms, so the experience should be the same as the At least I would take more than 2 second to type |
Strange, official doc show an example with I think the package can get installed like Lines 87 to 99 in 06bd676
Line 129 in 06bd676
|
|
All right, current code should be good then |
You'd want to avoid installing packages, I think. Consider using |
Consider the following coreutils.out 0 s /nix/store/k48bha2fjqzarg52picsdfwlqx75aqbb-coreutils-9.5/bin/cat It should suggest the command |
Gets a bit tricky as nix-shell creates a temporary The use case should be that the user is familiar with a command but happens to not have it installed (new machine, for example), so I think we can keep it simple to install directly. |
Then avoid using |
Should be good now. Thanks! Line 134 in 1c9302e
|
Would like to install this with brew on my mac, thanks |
@rexkyng Saw you already created a brew repo for |
Package manager integration is added along with v0.5.15. However, not all package managers are supported yet.
pacman -Fq /usr/bin/executable
command_not_found
handle by default which suggest packages to install. We can use such output to generate a suggestionRelevant file.
Progress:
pkgfile
,pacman -Fq
)apt-file
,command-not-found
)dnf provides
)e-file
)nix-locate 'bin/{}'
)yum provides
)The text was updated successfully, but these errors were encountered: