Skip to content
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

Wildcards with get? #41

Open
ckp95 opened this issue May 23, 2021 · 1 comment
Open

Wildcards with get? #41

ckp95 opened this issue May 23, 2021 · 1 comment

Comments

@ckp95
Copy link

ckp95 commented May 23, 2021

Readme says wildcards are supported, but it doesn't seem to work with get.

$ handlr list
┌───────────────────────────────────┬────────────────────────────────┐
│ application/octet-stream          │ mousepad.desktop               │
│ application/pdf                   │ org.pwmt.zathura.desktop       │
│ application/x-gettext-translation │ mousepad.desktop               │
│ application/x-wine-extension-ini  │ mousepad.desktop               │
│ application/xml                   │ mousepad.desktop               │
│ image/gif                         │ viewnior.desktop, gimp.desktop │
│ image/jpeg                        │ viewnior.desktop, gimp.desktop │
│ image/png                         │ viewnior.desktop, gimp.desktop │
│ text/plain                        │ mousepad.desktop               │
│ video/mp4                         │ mpv.desktop                    │
│ video/ogg                         │ vlc.desktop                    │
│ video/x-flv                       │ vlc.desktop                    │
│ video/x-ms-wmv                    │ vlc.desktop                    │
│ video/x-ogm+ogg                   │ vlc.desktop                    │
│ video/x-theora+ogg                │ vlc.desktop                    │
└───────────────────────────────────┴────────────────────────────────┘

So I expect when I run handlr get 'video/*' it will filter the list to just the video entries. But it doesn't:

$ handlr get 'video/*'
no handlers found for 'video/*'
@joleeee
Copy link

joleeee commented Jul 12, 2022

The wildcards means you can do handlr set 'video/*' mpv.desktop to set all video types to mpv instead of having to set it for all the video/ types individually. Quotes are just for preventing shell expansion.

You still need to provide a valid mimetype to handlr get

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants