-
Notifications
You must be signed in to change notification settings - Fork 79
Feat multiple mime types support #248
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
base: master
Are you sure you want to change the base?
Feat multiple mime types support #248
Conversation
use | as a delimiter to split mimetypes in -t option eg: ```c > wl-copy -t "x-special/gnome-copied-files|text/uri-list" file:///home/user/Videos/getvid.mp4 > wl-paste --list-types x-special/gnome-copied-files text/uri-list ```
|
As said in #244 (comment) this still does not help with |
This PR is not for adding support for individual mime-types/protocols, which there are of 700+ https://mimetype.io/all-types this adds supports for specifying multiple mimetypes for the flag '-t' which overrides the default mime types which is 'text' also for specifically |
I mean when using |
it's not something handled directly by Line 173 in 4f20741
run ❯ xdg-mime query filetype app.pdf
application/pdfidentifying and adding mime type to files is a herculean project on it's own (even xdg-mime type spec can't keep up ), so at-least currently i have no idea how to do it manually, currently wl-copy uses filename (based on anyway, it't won't comes under this pr |
Hm |
I was not advocating for manual detection, sorry if I was being unclear. My suggestion was only about automatically setting |
|
Hi, so this looks like it would always produce the exact same content no matter which data type gets requested? Please see #71 for some context. |
i am looking this for specifically for making yazi and other terminal file managers work with gui file managers and brower.. so if detection with if not a good idea, we can close this commit... |
Added multi mime type input support for -t option
use
|as a delimiter to split mimetypes in -t optioneg: